UI: Improve GTK GUI Abstractions for Linux

This commit is contained in:
Doug Johnson
2018-01-08 02:57:55 -07:00
committed by Sandy Carter
parent 31a8d189f0
commit cdf77d21bc
4 changed files with 141 additions and 71 deletions

View File

@@ -172,8 +172,9 @@ class Window {
Loop* loop_ = nullptr;
std::unique_ptr<MenuItem> main_menu_;
std::string title_;
int32_t width_ = 0;
int32_t height_ = 0;
// GTK must have a default value here that isn't 0
int32_t width_ = 1280;
int32_t height_ = 720;
bool has_focus_ = true;
bool is_cursor_visible_ = true;
bool is_imgui_input_enabled_ = false;