LibGUI+Minesweeper: Add GWindow::set_resizable().

This commit is contained in:
Andreas Kling 2019-04-20 21:24:02 +02:00
parent a0633c298b
commit 0dcb7a234e
Notes: sideshowbarker 2024-07-19 14:37:58 +09:00
2 changed files with 4 additions and 0 deletions

View file

@ -13,6 +13,7 @@ int main(int argc, char** argv)
GApplication app(argc, argv);
auto* window = new GWindow;
window->set_resizable(false);
window->set_title("Minesweeper");
window->set_rect(100, 100, 139, 175);

View file

@ -28,6 +28,9 @@ public:
bool is_modal() const { return m_modal; }
void set_modal(bool);
bool is_resizable() const { return m_resizable; }
void set_resizable(bool resizable) { m_resizable = resizable; }
void set_double_buffering_enabled(bool);
void set_has_alpha_channel(bool);
void set_opacity(float);