Reorganize main and sub-window initial position properties.

This commit is contained in:
bruvzg 2023-01-19 10:28:53 +02:00
parent cd0a9ccdfd
commit aade5abd4f
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
6 changed files with 76 additions and 62 deletions

View file

@ -90,14 +90,16 @@ public:
enum WindowInitialPosition {
WINDOW_INITIAL_POSITION_ABSOLUTE,
WINDOW_INITIAL_POSITION_CENTER_SCREEN,
WINDOW_INITIAL_POSITION_CENTER_PRIMARY_SCREEN,
WINDOW_INITIAL_POSITION_CENTER_MAIN_WINDOW_SCREEN,
WINDOW_INITIAL_POSITION_CENTER_OTHER_SCREEN,
};
private:
DisplayServer::WindowID window_id = DisplayServer::INVALID_WINDOW_ID;
String title;
mutable int current_screen = DisplayServer::SCREEN_PRIMARY;
mutable int current_screen = 0;
mutable Vector2i position;
mutable Size2i size = Size2i(DEFAULT_WINDOW_SIZE, DEFAULT_WINDOW_SIZE);
mutable Size2i min_size;