Merge branch 'openfl:develop' into submodules

This commit is contained in:
player-03
2022-12-01 11:58:25 -05:00
committed by GitHub
43 changed files with 527 additions and 322 deletions

View File

@@ -1050,6 +1050,23 @@ namespace lime {
}
void SDLWindow::SetTextInputRect (Rectangle * rect) {
SDL_Rect bounds = { 0, 0, 0, 0 };
if (rect) {
bounds.x = rect->x;
bounds.y = rect->y;
bounds.w = rect->width;
bounds.h = rect->height;
}
SDL_SetTextInputRect(&bounds);
}
const char* SDLWindow::SetTitle (const char* title) {
SDL_SetWindowTitle (sdlWindow, title);

View File

@@ -51,6 +51,7 @@ namespace lime {
virtual void SetMouseLock (bool mouseLock);
virtual bool SetResizable (bool resizable);
virtual void SetTextInputEnabled (bool enabled);
virtual void SetTextInputRect (Rectangle *rect);
virtual const char* SetTitle (const char* title);
virtual void WarpMouse (int x, int y);