howm
howm
monitor.h
Go to the documentation of this file.
1 #ifndef MONITOR_H
2 #define MONITOR_H
3 
4 #include <xcb/xproto.h>
5 
6 #include "types.h"
17 void scan_monitors(void);
18 uint32_t monitor_to_index(const monitor_t *m);
19 monitor_t *index_to_monitor(uint32_t index);
20 void focus_monitor(monitor_t *m);
21 void remove_monitor(monitor_t *m);
22 monitor_t *point_to_monitor(xcb_point_t point);
23 
24 #endif
void remove_monitor(monitor_t *m)
Remove a monitor and all of its workspaces.
Definition: monitor.c:59
howm
uint32_t monitor_to_index(const monitor_t *m)
Find and return a monitor&#39;s index in the monitor list.
Definition: monitor.c:117
monitor_t * point_to_monitor(xcb_point_t point)
Convert a point to a monitor that it is within.
Definition: monitor.c:228
monitor_t * index_to_monitor(uint32_t index)
Convert a monitor&#39;s index in a monitor list to an index.
Definition: monitor.c:135
void scan_monitors(void)
Initialise a monitor for each supported screen.
Definition: monitor.c:245
void focus_monitor(monitor_t *m)
Set a monitor as the focused monitor.
Definition: monitor.c:92
Definition: types.h:73