1// LAF Library
2// Copyright (c) 2020 Igara Studio S.A.
3//
4// This file is released under the terms of the MIT license.
5// Read LICENSE.txt for more information.
6
7#include "os/os.h"
8
9#include <cstdio>
10
11int app_main(int argc, char* argv[])
12{
13 os::SystemRef system = os::make_system();
14 system->setAppMode(os::AppMode::CLI);
15
16 os::ScreenList screens;
17 system->listScreens(screens);
18
19 int i = 0;
20 for (auto screen : screens) {
21 auto rc = screen->bounds();
22 auto wa = screen->workarea();
23 std::printf("%sscreen=%d bounds=(%d %d %d %d) workarea=(%d %d %d %d)\n",
24 screen->isMainScreen() ? "main ": "",
25 i++, rc.x, rc.y, rc.w, rc.h,
26 wa.x, wa.y, wa.w, wa.h);
27 }
28 return 0;
29}
30