commit 2fe9759
Michael Forney
·
2013-11-23 01:52:24 +0000 UTC
parent cf931d2
Add initial external screen interface
1 files changed,
+19,
-0
+19,
-0
1@@ -70,6 +70,24 @@ void swc_window_set_border(struct swc_window * window,
2 uint32_t color, uint32_t width);
3 /* }}} */
4
5+/* Screens {{{ */
6+enum
7+{
8+ SWC_SCREEN_GEOMETRY_CHANGED
9+};
10+
11+struct swc_screen
12+{
13+ struct wl_signal event_signal;
14+
15+ /* The total area of the screen */
16+ struct swc_rectangle total_geometry;
17+
18+ /* The area of the screen available for placing windows */
19+ struct swc_rectangle usable_geometry;
20+};
21+/* }}} */
22+
23 /* Bindings {{{ */
24 #define SWC_MOD_CTRL (1 << 0)
25 #define SWC_MOD_ALT (1 << 1)
26@@ -103,6 +121,7 @@ struct swc_event
27 struct swc_manager
28 {
29 void (* new_window)(struct swc_window * window);
30+ void (* new_screen)(struct swc_screen * screen);
31 };
32
33 bool swc_initialize(struct wl_display * display,