include/SDL_video.h
branchgsoc2009_IME
changeset 3135 f4e553ec6a62
parent 3130 fef1a835af43
child 3136 962357f325e1
     1.1 --- a/include/SDL_video.h	Thu Aug 06 08:53:00 2009 +0000
     1.2 +++ b/include/SDL_video.h	Thu Aug 06 08:56:48 2009 +0000
     1.3 @@ -1468,11 +1468,32 @@
     1.4  extern DECLSPEC void SDLCALL SDL_GL_DeleteContext(SDL_GLContext context);
     1.5  
     1.6  /**
     1.7 - * \fn void SDL_StartTextInput(SDL_rect *rect)
     1.8 + * \fn void SDL_StartTextInput(SDL_WindowID windowID)
     1.9   *
    1.10 - * \brief Start Unicode text input within the given rectangle.
    1.11 + * \brief Start accepting Unicode text input events in given window.
    1.12 + *
    1.13 + * \sa SDL_StopTextInput()
    1.14 + * \sa SDL_SetTextInputRect()
    1.15   */
    1.16 -extern DECLSPEC void SDLCALL SDL_StartTextInput(SDL_Rect *rect);
    1.17 +extern DECLSPEC void SDLCALL SDL_StartTextInput(SDL_WindowID windowID);
    1.18 +
    1.19 +/**
    1.20 + * \fn void SDL_StopTextInput(void)
    1.21 + *
    1.22 + * \brief Stop receiving any text input events.
    1.23 + *
    1.24 + * \sa SDL_StartTextInput()
    1.25 + */
    1.26 +extern DECLSPEC void SDLCALL SDL_StopTextInput(void);
    1.27 +
    1.28 +/**
    1.29 + * \fn void SDL_SetTextInputRect(SDL_Rect *rect)
    1.30 + *
    1.31 + * \brief Set the rectangle used to type Unicode text inputs.
    1.32 + *
    1.33 + * \sa SDL_StartTextInput()
    1.34 + */
    1.35 +extern DECLSPEC void SDLCALL SDL_SetTextInputRect(SDL_Rect *rect);
    1.36  
    1.37  /* Ends C function definitions when using C++ */
    1.38  #ifdef __cplusplus