diff options
Diffstat (limited to 'Clock/main.cpp')
-rw-r--r-- | Clock/main.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Clock/main.cpp b/Clock/main.cpp new file mode 100644 index 0000000000..483d5cc88f --- /dev/null +++ b/Clock/main.cpp @@ -0,0 +1,21 @@ +#include <LibGUI/GEventLoop.h> +#include <LibGUI/GWindow.h> +#include "ClockWidget.h" + +int main(int, char**) +{ + GEventLoop loop; + + auto* window = new GWindow; + window->set_title("Clock"); + window->set_rect({ 100, 100, 100, 40 }); + + auto* clock_widget = new ClockWidget; + clock_widget->set_relative_rect({ 0, 0, 100, 40 }); + window->set_main_widget(clock_widget); + + window->show(); + return loop.exec(); +} + + |