howm
howm
monitor.h File Reference

howm More...

#include <xcb/xproto.h>
#include "types.h"

Go to the source code of this file.

Functions

void scan_monitors (void)
 Initialise a monitor for each supported screen. More...
 
uint32_t monitor_to_index (const monitor_t *m)
 Find and return a monitor's index in the monitor list. More...
 
monitor_tindex_to_monitor (uint32_t index)
 Convert a monitor's index in a monitor list to an index. More...
 
void focus_monitor (monitor_t *m)
 Set a monitor as the focused monitor. More...
 
void remove_monitor (monitor_t *m)
 Remove a monitor and all of its workspaces. More...
 
monitor_tpoint_to_monitor (xcb_point_t point)
 Convert a point to a monitor that it is within. More...
 

Detailed Description

howm

Author
Harvey Hunt
Date
2015

Function Documentation

void focus_monitor ( monitor_t m)

Set a monitor as the focused monitor.

Parameters
mThe monitor to be focused.
monitor_t* index_to_monitor ( uint32_t  index)

Convert a monitor's index in a monitor list to an index.

Parameters
indexThe index to search for.
Returns
The monitor stored at the index of the monitors list.
uint32_t monitor_to_index ( const monitor_t m)

Find and return a monitor's index in the monitor list.

Parameters
mThe monitor to search for.
Returns
The index of the monitor in the monitor list.
monitor_t* point_to_monitor ( xcb_point_t  point)

Convert a point to a monitor that it is within.

Parameters
pointThe point to be converted to a monitor.
Returns
The monitor containing the point, or NULL.
void remove_monitor ( monitor_t m)

Remove a monitor and all of its workspaces.

Parameters
mThe monitor to be removed.
void scan_monitors ( void  )

Initialise a monitor for each supported screen.