Merge branch 'openfl:develop' into submodules
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user