Skip to content

Commit b44c05d

Browse files
committed
rcore_desktop_rgfw: Add skeleton of IME functions
1 parent e56841f commit b44c05d

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

src/platforms/rcore_desktop_rgfw.c

+38
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,44 @@ void OpenURL(const char *url)
736736
// Module Functions Definition: Inputs
737737
//----------------------------------------------------------------------------------
738738

739+
// Set the preedit cursor area.
740+
// This is used to decide the position of the candidate window.
741+
void SetPreeditCursorRectangle(int x, int y, int w, int h)
742+
{
743+
TRACELOG(LOG_WARNING, "SetPreeditCursorRectangle() not implemented on target platform");
744+
}
745+
746+
// Get the preedit cursor area
747+
void GetPreeditCursorRectangle(int *x, int *y, int *w, int *h)
748+
{
749+
TRACELOG(LOG_WARNING, "GetPreeditCursorRectangle() not implemented on target platform");
750+
}
751+
752+
// Check if IME is ON
753+
bool IsImeOn(void)
754+
{
755+
TRACELOG(LOG_WARNING, "IsImeOn() not implemented on target platform");
756+
return false;
757+
}
758+
759+
// Set IME status
760+
void SetImeStatus(bool on)
761+
{
762+
TRACELOG(LOG_WARNING, "SetImeStatus() not implemented on target platform");
763+
}
764+
765+
// Reset preedit text
766+
void ResetPreedit(void)
767+
{
768+
TRACELOG(LOG_WARNING, "ResetPreedit() not implemented on target platform");
769+
}
770+
771+
// Get the text of the preedie candidate
772+
int *GetPreeditCandidate(int index, int *textCount)
773+
{
774+
TRACELOG(LOG_WARNING, "GetPreeditCandidate() not implemented on target platform");
775+
}
776+
739777
// Set internal gamepad mappings
740778
int SetGamepadMappings(const char *mappings)
741779
{

0 commit comments

Comments
 (0)