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.
int meta_screen_get_monitor_index_for_rect (MetaScreen *screen
,MetaRectangle *rect
);
MetaWindow * meta_screen_get_mouse_window (MetaScreen *screen
,MetaWindow *not_this_one
);
Gets the MetaWindow pointed by the mouse
void meta_screen_override_workspace_layout (MetaScreen *screen
,MetaScreenCorner starting_corner
,gboolean vertical_layout
,int n_rows
,int n_columns
);
Explicitly set the layout of workspaces. Once this has been called, the contents of the _NET_DESKTOP_LAYOUT property on the root window are completely ignored.
screen |
||
starting_corner |
the corner at which the first workspace is found |
|
vertical_layout |
if |
|
n_rows |
number of rows of workspaces, or -1 to determine the number of rows from
|
|
n_columns |
number of columns of workspaces, or -1 to determine the number of columns from
|