Add API: GetPreeditCursorRectangle

This is for GLFW3: glfwGetPreeditCursorRectangle
This commit is contained in:
Daijiro Fukuda 2022-08-26 17:18:55 +09:00 committed by Takuro Ashie
parent b63d0eb162
commit 6c7e13e1b0
7 changed files with 37 additions and 0 deletions

View File

@ -613,6 +613,12 @@ void SetPreeditCursorRectangle(int x, int y, int w, int h)
TRACELOG(LOG_WARNING, "SetPreeditCursorRectangle() not implemented on target platform");
}
// Get the preedit cursor area
void GetPreeditCursorRectangle(int *x, int *y, int *w, int *h)
{
TRACELOG(LOG_WARNING, "GetPreeditCursorRectangle() not implemented on target platform");
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -1049,6 +1049,12 @@ void SetPreeditCursorRectangle(int x, int y, int w, int h)
glfwSetPreeditCursorRectangle(platform.handle, x, y, w, h);
}
// Get the preedit cursor area
void GetPreeditCursorRectangle(int *x, int *y, int *w, int *h)
{
glfwGetPreeditCursorRectangle(platform.handle, x, y, w, h);
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -934,6 +934,12 @@ void SetPreeditCursorRectangle(int x, int y, int w, int h)
TRACELOG(LOG_WARNING, "SetPreeditCursorRectangle() not implemented on target platform");
}
// Get the preedit cursor area
void GetPreeditCursorRectangle(int *x, int *y, int *w, int *h)
{
TRACELOG(LOG_WARNING, "GetPreeditCursorRectangle() not implemented on target platform");
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -609,6 +609,12 @@ void SetPreeditCursorRectangle(int x, int y, int w, int h)
TRACELOG(LOG_WARNING, "SetPreeditCursorRectangle() not implemented on target platform");
}
// Get the preedit cursor area
void GetPreeditCursorRectangle(int *x, int *y, int *w, int *h)
{
TRACELOG(LOG_WARNING, "GetPreeditCursorRectangle() not implemented on target platform");
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -371,6 +371,12 @@ void SetPreeditCursorRectangle(int x, int y, int w, int h)
TRACELOG(LOG_WARNING, "SetPreeditCursorRectangle() not implemented on target platform");
}
// Get the preedit cursor area
void GetPreeditCursorRectangle(int *x, int *y, int *w, int *h)
{
TRACELOG(LOG_WARNING, "GetPreeditCursorRectangle() not implemented on target platform");
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -855,6 +855,12 @@ void SetPreeditCursorRectangle(int x, int y, int w, int h)
glfwSetPreeditCursorRectangle(platform.handle, x, y, w, h);
}
// Get the preedit cursor area
void GetPreeditCursorRectangle(int *x, int *y, int *w, int *h)
{
glfwGetPreeditCursorRectangle(platform.handle, x, y, w, h);
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -1172,6 +1172,7 @@ RLAPI int GetCharPressed(void); // Get char presse
RLAPI void SetExitKey(int key); // Set a custom key to exit program (default is ESC)
RLAPI void SetPreeditCallback(PreeditCallback callback); // Set a callback for preedit
RLAPI void SetPreeditCursorRectangle(int x, int y, int w, int h); // Set the preedit cursor area that is used to decide the position of the candidate window
RLAPI void GetPreeditCursorRectangle(int *x, int *y, int *w, int *h); // Get the preedit cursor area
// Input-related functions: gamepads
RLAPI bool IsGamepadAvailable(int gamepad); // Check if a gamepad is available