opuntiaOS - an operating system targeting x86 and ARMv7
1#include "AppListView.h"
2#include "AppListViewController.h"
3#include "AppListWindow.h"
4#include <libui/AppDelegate.h>
5
6class AppDelegate : public UI::AppDelegate {
7public:
8 AppDelegate() = default;
9 virtual ~AppDelegate() = default;
10
11 LG::Size preferred_desktop_window_size() const override { return LG::Size(320, 400); }
12
13 bool application() override
14 {
15 auto& window = std::opuntiaos::construct<AppListWindow>(window_size());
16 window.set_bitmap_format(LG::PixelBitmapFormat::RGBA);
17 auto& dock_view = window.create_superview<AppListView, AppListViewController>();
18 return true;
19 }
20
21private:
22};
23
24SET_APP_DELEGATE(AppDelegate);