Top | ![]() |
![]() |
![]() |
![]() |
void | in-fullscreen-changed | Run Last |
void | monitors-changed | Run Last |
void | restacked | Run Last |
void | startup-sequence-changed | Run Last |
void | window-entered-monitor | Run Last |
void | window-left-monitor | Run Last |
void | workareas-changed | Run Last |
void | workspace-added | Run Last |
void | workspace-removed | Run Last |
void | workspace-switched | Run Last |
MetaDisplay *
meta_screen_get_display (MetaScreen *screen
);
Retrieve the display associated with screen.
void meta_screen_get_size (MetaScreen *screen
,int *width
,int *height
);
Retrieve the size of the screen.
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
.
the workspace object with specified index, or NULL
if the index is out of range.
[transfer none]
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.
screen |
||
activate |
|
|
timestamp |
if switching to a new workspace, timestamp to be used when focusing a window on the new workspace. (Doesn't hurt to pass a valid timestamp when available even if not switching workspaces.) |
int
meta_screen_get_active_workspace_index
(MetaScreen *screen
);
MetaWorkspace *
meta_screen_get_active_workspace (MetaScreen *screen
);
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
.
int meta_screen_get_monitor_index_for_rect (MetaScreen *screen
,MetaRectangle *rect
);
void meta_screen_focus_default_window (MetaScreen *screen
,guint32 timestamp
);
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
|
“n-workspaces”
property“n-workspaces” gint
Number of workspaces.
Flags: Read
Allowed values: >= 1
Default value: 1
“in-fullscreen-changed”
signalvoid user_function (MetaScreen *metascreen, gpointer user_data)
Flags: Run Last
“monitors-changed”
signalvoid user_function (MetaScreen *metascreen, gpointer user_data)
Flags: Run Last
“restacked”
signalvoid user_function (MetaScreen *metascreen, gpointer user_data)
Flags: Run Last
“startup-sequence-changed”
signalvoid user_function (MetaScreen *metascreen, gpointer arg1, gpointer user_data)
Flags: Run Last
“window-entered-monitor”
signalvoid user_function (MetaScreen *metascreen, gint arg1, MetaWindow *arg2, gpointer user_data)
Flags: Run Last
“window-left-monitor”
signalvoid user_function (MetaScreen *metascreen, gint arg1, MetaWindow *arg2, gpointer user_data)
Flags: Run Last
“workareas-changed”
signalvoid user_function (MetaScreen *metascreen, gpointer user_data)
Flags: Run Last
“workspace-added”
signalvoid user_function (MetaScreen *metascreen, gint arg1, gpointer user_data)
Flags: Run Last
“workspace-removed”
signalvoid user_function (MetaScreen *metascreen, gint arg1, gpointer user_data)
Flags: Run Last
“workspace-switched”
signalvoid user_function (MetaScreen *metascreen, gint arg1, gint arg2, MetaMotionDirection arg3, gpointer user_data)
Flags: Run Last