serenity/Applications/Clock/main.cpp
2019-02-11 14:56:23 +01:00

22 lines
503 B
C++

#include <LibGUI/GApplication.h>
#include <LibGUI/GWindow.h>
#include "ClockWidget.h"
int main(int argc, char** argv)
{
GApplication app(argc, argv);
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 app.exec();
}