Top |
XfwWorkspaceGroupCapabilities | xfw_workspace_group_get_capabilities () |
guint | xfw_workspace_group_get_workspace_count () |
GList * | xfw_workspace_group_list_workspaces () |
XfwWorkspace * | xfw_workspace_group_get_active_workspace () |
GList * | xfw_workspace_group_get_monitors () |
struct _XfwWorkspaceManager * | xfw_workspace_group_get_workspace_manager () |
gboolean | xfw_workspace_group_create_workspace () |
gboolean | xfw_workspace_group_move_viewport () |
gboolean | xfw_workspace_group_set_layout () |
XfwWorkspace * | active-workspace | Read |
gpointer | monitors | Read |
XfwScreen * | screen | Read / Write / Construct Only |
XfwWorkspaceManager * | workspace-manager | Read / Write / Construct Only |
gpointer | workspaces | Read |
void | active-workspace-changed | Run Last |
void | capabilities-changed | Run Last |
void | monitor-added | Run Last |
void | monitor-removed | Run Last |
void | monitors-changed | Run Last |
void | viewports-changed | Run Last |
void | workspace-added | Run Last |
void | workspace-removed | Run Last |
Workspaces may be arranged in groups, and groups may be present on different monitors. The XfwWorkspaceGroup can create and enumerate workspaces, as well as provide notifications when workspaces are created and destroyed.
Each workspace group may have an active workspace.
Workspace groups are displayed on a list of zero or more monitors, and have viewport coordinates.
Note that XfwWorkspaceGroup is actually an interface; when obtaining an instance, an instance of a windowing-environment-specific object that implements this interface will be returned.
XfwWorkspaceGroupCapabilities
xfw_workspace_group_get_capabilities (XfwWorkspaceGroup *group
);
Returns a bitfield describing operations allowed on this group
.
guint
xfw_workspace_group_get_workspace_count
(XfwWorkspaceGroup *group
);
Fetches the number of workspaces in group
.
GList *
xfw_workspace_group_list_workspaces (XfwWorkspaceGroup *group
);
Lists the workspaces in group
.
the list of XfwWorkspace in group
, or NULL
if there are no workspaces.
The list and its contents are owned by group
.
[nullable][element-type XfwWorkspace][transfer none]
XfwWorkspace *
xfw_workspace_group_get_active_workspace
(XfwWorkspaceGroup *group
);
Gets the active workspace on group
, if there is one.
GList *
xfw_workspace_group_get_monitors (XfwWorkspaceGroup *group
);
Lists the physical monitors that this workspace group displays on.
A list of XfwMonitor, or NULL
if group
is not displayed on any
monitors. The list and its contents are owned by group
.
[nullable][element-type XfwMonitor][transfer none]
struct _XfwWorkspaceManager *
xfw_workspace_group_get_workspace_manager
(XfwWorkspaceGroup *group
);
Fetches the XfwWorkspaceManager instance that owns group
.
gboolean xfw_workspace_group_create_workspace (XfwWorkspaceGroup *group
,const gchar *name
,GError **error
);
Attempts to create a new workspace on group
. Typically, the new workspace
will be appended to the existing list of workspaces.
On failure, error
(if provided) will be set to a description of the error
that occurred.
gboolean xfw_workspace_group_move_viewport (XfwWorkspaceGroup *group
,gint x
,gint y
,GError **error
);
Moves the workspace group to a new location, and possibly a new monitor.
On failure, error
(if provided) will be set to a description of the error
that occurred.
gboolean xfw_workspace_group_set_layout (XfwWorkspaceGroup *group
,gint rows
,gint columns
,GError **error
);
Sets the layout of group
to rows
by columns
.
Note that this will not change the number of workspaces if the new layout implies a larger number of workspaces than currently exists.
On failure, error
(if provided) will be set to a description of the error
that occurred.
Flags enum representing a bitfield of actions that can be performed on this workspace group.
“active-workspace”
property“active-workspace” XfwWorkspace *
The active XfwWorkspace on this XfwWorkspaceGroup, or NULL
.
Owner: XfwWorkspaceGroup
Flags: Read
“monitors”
property “monitors” gpointer
The list of XfwMonitor this XfwWorkspaceGroup is displayed on.
Owner: XfwWorkspaceGroup
Flags: Read
“screen”
property“screen” XfwScreen *
The XfwScreen that owns this XfwWorkspaceGroup.
Owner: XfwWorkspaceGroup
Flags: Read / Write / Construct Only
“workspace-manager”
property“workspace-manager” XfwWorkspaceManager *
The XfwWorkspaceManager instance that manages this XfwWorkspaceGroup.
Owner: XfwWorkspaceGroup
Flags: Read / Write / Construct Only
“workspaces”
property “workspaces” gpointer
The list of XfwWorkspace in this XfwWorkspaceGroup.
Owner: XfwWorkspaceGroup
Flags: Read
“active-workspace-changed”
signalvoid user_function (XfwWorkspaceGroup *group, XfwWorkspace *previously_active_workspace, gpointer user_data)
Emitted when the active workspace of group
changes.
group |
the object which received the signal. |
|
previously_active_workspace |
the previously active
XfwWorkspace, or |
[nullable] |
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“capabilities-changed”
signalvoid user_function (XfwWorkspaceGroup *group, XfwWorkspaceGroupCapabilities changed_mask, XfwWorkspaceGroupCapabilities new_capabilities, gpointer user_data)
Emitted when capabilities have changed on group
.
group |
the object which received the signal. |
|
changed_mask |
a bitfield representing the capabilities that have changed. |
|
new_capabilities |
a bitfield of the new capabilities. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“monitor-added”
signalvoid user_function (XfwWorkspaceGroup *group, XfwMonitor *monitor, gpointer user_data)
Emitted when group
is added to a new monitor.
group |
the object which received the signal. |
|
monitor |
a XfwMonitor. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“monitor-removed”
signalvoid user_function (XfwWorkspaceGroup *group, XfwMonitor *monitor, gpointer user_data)
Emitted when group
is removed from a monitor.
group |
the object which received the signal. |
|
monitor |
a XfwMonitor. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“monitors-changed”
signalvoid user_function (XfwWorkspaceGroup *group, gpointer user_data)
Emitted when group
moves to a new set of monitors.
group |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“viewports-changed”
signalvoid user_function (XfwWorkspaceGroup *group, gpointer user_data)
Emitted when group
's viewport coordinates have changed.
group |
the object which recieved the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“workspace-added”
signalvoid user_function (XfwWorkspaceGroup *group, XfwWorkspace *workspace, gpointer user_data)
Emitted when workspace
joins group
.
group |
the object which received the signal. |
|
workspace |
the XfwWorkspace added to the group. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“workspace-removed”
signalvoid user_function (XfwWorkspaceGroup *group, XfwWorkspace *workspace, gpointer user_data)
Emitted when workspace
leaves group
.
group |
the object which received the signal. |
|
workspace |
the XfwWorkspace removed from the group. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last