This page is a Japanese translation of SDL-IM's web site ( http://sdl-im.csie.net/ ).
このページ は、SDL-IMのウェブサイト(http://sdl-im.csie.net/)の日本語訳です。
SDL -IM自体に関する質問は、オリジナルのサイトを確認の上、そちらによろしくお願いします。
翻訳に関する質問や、日本語での質問は、haramako <at> gmail.com までお願いします。

SDL_GetIMValues

Name

SDL_GetIMValues -- Get IM properties.

SDL_GetIMValues -- IMのプロパティを取得します。

Synopsis

#include “SDL.h”

char *SDL_GetIMValues(SDL_imvalue value, ...);

Description

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);

See Also

SDL_SetIMValues, SDL_imvalue