SDL_GetIMValues -- Get IM properties.
SDL_GetIMValues -- IMのプロパティを取得します。
#include “SDL.h”
char *SDL_GetIMValues(SDL_imvalue value, ...);
Get IM properties. Using enum type SDL_imvalue to specify to get property.
The SDL_GetMValues function returns NULL if no error occurred; otherwise, it returns the name of the first argument that could not be set.
Each value to be set must be an appropriate datum, matching the data type imposed by the semantics of the argument.
IMのプロパティを取得します。どのプロパティを取得するか を指定するためにSDL_imvalue を利用します。
SDL_GetMValues()関数は、エラーが発生しな かった場合、NULLを返します。そうでない場合、セットされていない最初の引数の名前を返します。
セットされるべきそれぞれの値は、引数で指定された適切な データ型である必要があります。
Examples
int isIMenable, isIMflip;
/* To know if IM is enable. */
SDL_GetIMValues(SDL_IM_ENABLE, &isIMenable, NULL);
/* If IM is enable to flip or show window in OnTheSpot or Root mode */
SDL_GetIMValues(SDL_IM_FLIP, &isIMflip, NULL);
/* Get both properties */
char *ret;
if (ret = SDL_SetIMValues(SDL_IM_FLIP, &isIMflip, SDL_IM_ENABLE, &isIMenable, NULL))
printf(“Which is wrong: %s\n”, ret);