const char * SDL_GetStringProperty(SDL_PropertiesID props, const char *name, const char *default_value);
SDL_PropertiesID | props | 問い合わせるプロパティグループ |
const char * | name | 問い合わせるプロパティの名前 |
void * | default_value | プロパティのデフォルト値 |
(const char *) プロパティの値を戻す.
値が設定されていない, または文字列型プロパティでない場合はdefault_value
を戻す.
この関数はどのスレッドからも安全に呼べるが, 戻されたデータは保護されておらず, 別のスレッドから同じプロパティに対してSDL_SetStringProperty()やSDL_ClearProperty()が呼ばれて解放されてしまう可能性がある. これを防ぐためには, SDL_LockProperties()とSDL_UnlockProperties()を使ってロックする必要がある.
SDL 3.2.0以降