Window: minWidth/minHeight/setMinSize and maxWidth/maxHeight/setMaxSize
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user