Top | ![]() |
![]() |
![]() |
![]() |
void meta_screen_get_size (MetaScreen *screen
,int *width
,int *height
);
Retrieve the size of the screen.
MetaScreen *
meta_screen_for_x_screen (Screen *xscreen
);
Gets the MetaScreen corresponding to an X screen structure.
the MetaScreen for the X screen
NULL
if Metacity is not managing the screen.
[transfer none]
GSList *
meta_screen_get_startup_sequences (MetaScreen *screen
);
[skip]
MetaWorkspace * meta_screen_get_workspace_by_index (MetaScreen *screen
,int index
);
Gets the workspace object for one of a screen's workspaces given the workspace
index. It's valid to call this function with an out-of-range index and it
will robustly return NULL
.
void meta_screen_remove_workspace (MetaScreen *screen
,MetaWorkspace *workspace
,guint32 timestamp
);
MetaWorkspace * meta_screen_append_new_workspace (MetaScreen *screen
,gboolean activate
,guint32 timestamp
);
Append a new workspace to the screen and (optionally) switch to that screen.
int
meta_screen_get_active_workspace_index
(MetaScreen *screen
);
MetaWorkspace *
meta_screen_get_active_workspace (MetaScreen *screen
);
void meta_screen_toggle_desktop (MetaScreen *screen
,guint32 timestamp
);
int
meta_screen_get_n_monitors (MetaScreen *screen
);
Gets the number of monitors that are joined together to form screen
.
int
meta_screen_get_primary_monitor (MetaScreen *screen
);
Gets the index of the primary monitor on this screen
.
int
meta_screen_get_current_monitor (MetaScreen *screen
);
Gets the index of the monitor that currently has the mouse pointer.
void meta_screen_get_monitor_geometry (MetaScreen *screen
,int monitor
,MetaRectangle *geometry
);
Stores the location and size of the indicated monitor in geometry
.
gboolean meta_screen_get_monitor_in_fullscreen (MetaScreen *screen
,int monitor
);
Determines whether there is a fullscreen window obscuring the specified monitor. If there is a fullscreen window, the desktop environment will typically hide any controls that might obscure the fullscreen window.
You can get notification when this changes by connecting to MetaScreen::in-fullscreen-changed.