Libxfce4windowing.WorkspaceGroup¶
- Implementations:
 None
Methods¶
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
None
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r  | 
active-workspace  | 
||
r  | 
monitors  | 
||
r/w/co  | 
screen  | 
||
r/w/co  | 
workspace-manager  | 
||
r  | 
workspaces  | 
Signals¶
Name  | 
Short Description  | 
|---|---|
Emitted when the active workspace of group changes.  | 
|
Emitted when capabilities have changed on group.  | 
|
Emitted when group is added to a new monitor.  | 
|
Emitted when group is removed from a monitor.  | 
|
Emitted when group moves to a new set of monitors.  | 
|
Emitted when group's viewport coordinates have changed.  | 
|
Emitted when workspace joins group.  | 
|
Emitted when workspace leaves group.  | 
Fields¶
None
Class Details¶
- class Libxfce4windowing.WorkspaceGroup¶
 - Bases:
 - Structure:
 
- create_workspace(name)¶
 - Parameters:
 name (
str) – a name for the new workspace.- Raises:
 - Returns:
 Trueif workspace creation succeeded,Falseotherwise. IfFalse, and error is non-None, an error will be returned that must be freed usingGLib.Error.free().- Return type:
 
Attempts to create a new workspace on self. 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.
- get_active_workspace()¶
 - Returns:
 an
Libxfce4windowing.Workspace, orNoneif there is no active workspace.- Return type:
 
Gets the active workspace on self, if there is one.
- get_capabilities()¶
 - Returns:
 an
Libxfce4windowing.WorkspaceGroupCapabilitiesbitfield.- Return type:
 
Returns a bitfield describing operations allowed on this self.
- get_monitors()¶
 - Returns:
 A list of
Libxfce4windowing.Monitor, orNoneif self is not displayed on any monitors. The list and its contents are owned by self.- Return type:
 
Lists the physical monitors that this workspace group displays on.
- get_workspace_count()¶
 - Returns:
 an unsigned integer describing the number of workspaces.
- Return type:
 
Fetches the number of workspaces in self.
- get_workspace_manager()¶
 - Returns:
 a
Libxfce4windowing.WorkspaceManager, owned by self.- Return type:
 
Fetches the
Libxfce4windowing.WorkspaceManagerinstance that owns self.
- list_workspaces()¶
 - Returns:
 the list of
Libxfce4windowing.Workspacein self, orNoneif there are no workspaces. The list and its contents are owned by self.- Return type:
 
Lists the workspaces in self.
- move_viewport(x, y)¶
 - Parameters:
 - Raises:
 - Returns:
 Trueif moving the workspace group succeeded,Falseotherwise. IfFalse, and error is non-None, an error will be returned that must be freed usingGLib.Error.free().- Return type:
 
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.
- set_layout(rows, columns)¶
 - Parameters:
 - Raises:
 - Returns:
 Trueif changing the layout of self succeede,Falseotherwise. IfFalse, and error is non-None, an error will be returned that must be freed usingGLib.Error.free().- Return type:
 
Sets the layout of self 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.
Signal Details¶
- Libxfce4windowing.WorkspaceGroup.signals.active_workspace_changed(workspace_group, previously_active_workspace)¶
 - Signal Name:
 active-workspace-changed- Flags:
 - Parameters:
 workspace_group (
Libxfce4windowing.WorkspaceGroup) – The object which received the signalpreviously_active_workspace (
Libxfce4windowing.WorkspaceorNone) – the previously activeLibxfce4windowing.Workspace, orNone.
Emitted when the active workspace of group changes.
- Libxfce4windowing.WorkspaceGroup.signals.capabilities_changed(workspace_group, changed_mask, new_capabilities)¶
 - Signal Name:
 capabilities-changed- Flags:
 - Parameters:
 workspace_group (
Libxfce4windowing.WorkspaceGroup) – The object which received the signalchanged_mask (
Libxfce4windowing.WorkspaceGroupCapabilities) – a bitfield representing the capabilities that have changed.new_capabilities (
Libxfce4windowing.WorkspaceGroupCapabilities) – a bitfield of the new capabilities.
Emitted when capabilities have changed on group.
- Libxfce4windowing.WorkspaceGroup.signals.monitor_added(workspace_group, monitor)¶
 - Signal Name:
 monitor-added- Flags:
 - Parameters:
 workspace_group (
Libxfce4windowing.WorkspaceGroup) – The object which received the signalmonitor (
Libxfce4windowing.Monitor) – aLibxfce4windowing.Monitor.
Emitted when group is added to a new monitor.
- Libxfce4windowing.WorkspaceGroup.signals.monitor_removed(workspace_group, monitor)¶
 - Signal Name:
 monitor-removed- Flags:
 - Parameters:
 workspace_group (
Libxfce4windowing.WorkspaceGroup) – The object which received the signalmonitor (
Libxfce4windowing.Monitor) – aLibxfce4windowing.Monitor.
Emitted when group is removed from a monitor.
- Libxfce4windowing.WorkspaceGroup.signals.monitors_changed(workspace_group)¶
 - Signal Name:
 monitors-changed- Flags:
 - Parameters:
 workspace_group (
Libxfce4windowing.WorkspaceGroup) – The object which received the signal
Emitted when group moves to a new set of monitors.
- Libxfce4windowing.WorkspaceGroup.signals.viewports_changed(workspace_group)¶
 - Signal Name:
 viewports-changed- Flags:
 - Parameters:
 workspace_group (
Libxfce4windowing.WorkspaceGroup) – The object which received the signal
Emitted when group's viewport coordinates have changed.
- Libxfce4windowing.WorkspaceGroup.signals.workspace_added(workspace_group, workspace)¶
 - Signal Name:
 workspace-added- Flags:
 - Parameters:
 workspace_group (
Libxfce4windowing.WorkspaceGroup) – The object which received the signalworkspace (
Libxfce4windowing.Workspace) – theLibxfce4windowing.Workspaceadded to the group.
Emitted when workspace joins group.
- Libxfce4windowing.WorkspaceGroup.signals.workspace_removed(workspace_group, workspace)¶
 - Signal Name:
 workspace-removed- Flags:
 - Parameters:
 workspace_group (
Libxfce4windowing.WorkspaceGroup) – The object which received the signalworkspace (
Libxfce4windowing.Workspace) – theLibxfce4windowing.Workspaceremoved from the group.
Emitted when workspace leaves group.
Property Details¶
- Libxfce4windowing.WorkspaceGroup.props.active_workspace¶
 - Name:
 active-workspace- Type:
 - Default Value:
 - Flags:
 
The active
Libxfce4windowing.Workspaceon thisLibxfce4windowing.WorkspaceGroup, orNone.
- Libxfce4windowing.WorkspaceGroup.props.monitors¶
 - 
The list of
Libxfce4windowing.MonitorthisLibxfce4windowing.WorkspaceGroupis displayed on. 
- Libxfce4windowing.WorkspaceGroup.props.screen¶
 - Name:
 screen- Type:
 - Default Value:
 - Flags:
 
The
Libxfce4windowing.Screenthat owns thisLibxfce4windowing.WorkspaceGroup.
- Libxfce4windowing.WorkspaceGroup.props.workspace_manager¶
 - Name:
 workspace-manager- Type:
 - Default Value:
 - Flags:
 
The
Libxfce4windowing.WorkspaceManagerinstance that manages thisLibxfce4windowing.WorkspaceGroup.
- Libxfce4windowing.WorkspaceGroup.props.workspaces¶
 - 
The list of
Libxfce4windowing.Workspacein thisLibxfce4windowing.WorkspaceGroup.