| Top |
One currently connected monitor, as reported by the window manager. Obtained
from cinnamon_bg_list_get_monitor_infos().
The model is matched to stored entries on connector
and index
; x
is the
position in the layout, already sorted left-to-right. display_name
is for
labelling in a UI.
CinnamonBgMonitorInfo *
cinnamon_bg_monitor_info_copy (CinnamonBgMonitorInfo *self);
[skip]
void
cinnamon_bg_monitor_info_free (CinnamonBgMonitorInfo *self);
[skip]
typedef struct {
char *connector;
char *display_name;
int x;
int y;
int width;
int height;
int index;
gboolean primary;
} CinnamonBgMonitorInfo;
the monitor's connector, for example |
||
a human-readable name for the monitor: its own name where it
has one, else its model, else |
||
the monitor's x position in the layout. |
||
the monitor's y position in the layout. |
||
the monitor's width in the layout, with its scale and rotation already applied. |
||
the monitor's height in the layout. |
||
the window manager's logical-monitor index. |
||
whether this is the primary monitor. |