mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-25 19:02:07 -05:00
22 lines
503 B
C++
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();
|
|
}
|
|
|
|
|