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_SetIMValues

Name

SDL_SetIMValues -- Set IM properties.

SDL_SetIMValues -- IM のプロパティを設定します.

Synopsis

#include “SDL.h”

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

Description

Set IM properties. Using enum type SDL_imvalue to specify to set property.

The SDL_Malues function returns NULL if no error occurred; other-wise, 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 enum を使用します。

SDL_GetMValues()関数は、エラーが発生しな かった場合、NULLを返します。そうでない場合、セットされていない最初の引数の名前を返します。

セットされるべきそれぞれの値は、引数で指定された適切な データ型である必要があります

Examples

/* enable IM */

SDL_SetIMValues(SDL_IM_ENABLE, 1, NULL);


/* enable to flip or show IM window in OnTheSpot or Root mode */

SDL_SetIMValues(SDL_IM_FLIP, 1, NULL);


/* disable to flip IM window, but enable it. */

char *ret;

if (ret = SDL_SetIMValues(SDL_IM_FLIP, 0, SDL_IM_ENABLE, 1, NULL))

printf(“Which is wrong: %s\n”, ret);

See Also

SDL_GetIMValues, SDL_imvalue