Luna/apps/gclient.cpp

25 lines
510 B
C++
Raw Normal View History

2023-08-14 18:15:38 +02:00
#include <os/File.h>
#include <ui/App.h>
#include <ui/Color.h>
#include <ui/Window.h>
2023-08-14 18:15:38 +02:00
Result<void> handle_ipc_client_event(os::LocalClient&, u8)
{
todo();
}
2023-08-07 22:45:00 +02:00
Result<int> luna_main(int argc, char** argv)
{
ui::App app;
TRY(app.init(argc, argv));
auto window = TRY(ui::Window::create(ui::Rect { 200, 200, 400, 300 }));
os::println("gclient: Created new window!");
window->set_title("Example Window");
window->canvas().fill(ui::CYAN);
window->update();
2023-08-07 22:45:00 +02:00
return app.run();
2023-08-07 22:45:00 +02:00
}