summaryrefslogtreecommitdiff
path: root/Clock/main.cpp
blob: 483d5cc88f974df6ef0910bedc36abe1802a3da6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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();
}