mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
23 lines
479 B
C++
23 lines
479 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({ 600, 100, 100, 40 });
|
|
window->set_should_exit_app_on_close(true);
|
|
|
|
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();
|
|
}
|
|
|
|
|