1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 16:05:08 +00:00
serenity/Clock/main.cpp
Andreas Kling d0078b6574 Clock: Turns the clock window from guitest2 into a separate program.
We can't not have a desktop clock app. :^)
2019-02-05 09:44:13 +01:00

21 lines
431 B
C++

#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();
}