Skip to content

Commit 2053699

Browse files
committed
Add API: GetPreeditCursorRectangle
This is for GLFW3: glfwGetPreeditCursorRectangle
1 parent 0c18e43 commit 2053699

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/raylib.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,6 +1111,7 @@ RLAPI int GetKeyPressed(void); // Get key pressed
11111111
RLAPI int GetCharPressed(void); // Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty
11121112
RLAPI void SetPreeditCallback(PreeditCallback callback); // Set a callback for preedit
11131113
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
1114+
RLAPI void GetPreeditCursorRectangle(int *x, int *y, int *w, int *h); // Get the preedit cursor area
11141115

11151116
// Input-related functions: gamepads
11161117
RLAPI bool IsGamepadAvailable(int gamepad); // Check if a gamepad is available

src/rcore.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3564,6 +3564,12 @@ void SetPreeditCursorRectangle(int x, int y, int w, int h)
35643564
glfwSetPreeditCursorRectangle(CORE.Window.handle, x, y, w, h);
35653565
}
35663566

3567+
// Get the preedit cursor area
3568+
void GetPreeditCursorRectangle(int *x, int *y, int *w, int *h)
3569+
{
3570+
glfwGetPreeditCursorRectangle(CORE.Window.handle, x, y, w, h);
3571+
}
3572+
35673573
// Set a custom key to exit program
35683574
// NOTE: default exitKey is ESCAPE
35693575
void SetExitKey(int key)

0 commit comments

Comments
 (0)