Window: minWidth/minHeight/setMinSize and maxWidth/maxHeight/setMaxSize

This commit is contained in:
Josh Tynjala
2023-04-11 09:46:10 -07:00
parent f43173b942
commit f07e94708b
10 changed files with 214 additions and 0 deletions

View File

@@ -745,6 +745,20 @@ namespace lime {
}
void SDLWindow::SetMinimumSize (int width, int height) {
SDL_SetWindowMinimumSize (sdlWindow, width, height);
}
void SDLWindow::SetMaximumSize (int width, int height) {
SDL_SetWindowMaximumSize (sdlWindow, width, height);
}
bool SDLWindow::SetBorderless (bool borderless) {
if (borderless) {

View File

@@ -42,6 +42,8 @@ namespace lime {
virtual void Move (int x, int y);
virtual void ReadPixels (ImageBuffer *buffer, Rectangle *rect);
virtual void Resize (int width, int height);
virtual void SetMinimumSize (int width, int height);
virtual void SetMaximumSize (int width, int height);
virtual bool SetBorderless (bool borderless);
virtual void SetCursor (Cursor cursor);
virtual void SetDisplayMode (DisplayMode* displayMode);