Libxfce4windowing.Workspace¶
- Implementations:
 None
Methods¶
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
None
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/c  | 
capabilities  | 
||
r  | 
group  | 
||
r  | 
id  | 
||
r  | 
layout-column  | 
||
r  | 
layout-row  | 
||
r/w/c  | 
name  | 
||
r/w/co  | 
number  | 
||
r/w/c  | 
state  | 
Signals¶
Name  | 
Short Description  | 
|---|---|
Emitted when workspace's capabilities change.  | 
|
Emitted when workspace is assigned to an   | 
|
Emitted when workspace's name changes.  | 
|
Emitted when workspace's state changes.  | 
Fields¶
None
Class Details¶
- class Libxfce4windowing.Workspace¶
 - Bases:
 - Structure:
 
- activate()¶
 - Raises:
 - Returns:
 Trueif workspace activation succeeded,Falseotherwise. IfFalse, and error is non-None, an error will be returned that must be freed usingGLib.Error.free().- Return type:
 
Attempts to set self as the active workspace in its group.
On failure, error (if provided) will be set to a description of the error that occurred.
- assign_to_workspace_group(group)¶
 - Parameters:
 group (
objectorNone) – anLibxfce4windowing.WorkspaceGroup.- Raises:
 - Returns:
 Trueif workspace assignment succeeded,Falseotherwise. IfFalse, and error is non-None, an error will be returned that must be freed usingGLib.Error.free().- Return type:
 
Attempts to assign self to group.
On failure, error (if provided) will be set to a description of the error that occurred.
- get_capabilities()¶
 - Returns:
 a
Libxfce4windowing.WorkspaceCapabilitiesbitfield.- Return type:
 
Fetches this workspace’s capabilities bitfield.
The bitfield describes what operations are available on this workspace.
- get_geometry()¶
 - Returns:
 a
Gdk.Rectangle, owned by self.- Return type:
 
Fetches the position and size of the workspace in screen coordinates.
The values in the returned
Gdk.Rectangleare owned by self and should not be modified.
- get_id()¶
 - Returns:
 A UTF-8 formatted string, owned by self.
- Return type:
 
Fetches this workspace’s opaque ID.
- get_layout_column()¶
 - Returns:
 a non-negative, 0-indexed integer.
- Return type:
 
Fetches the column this workspace belongs to in the workspace’s group.
This information can be used to lay out workspaces in a grid in a pager UI, for example.
- get_layout_row()¶
 - Returns:
 a non-negative, 0-indexed integer.
- Return type:
 
Fetches the row this workspace belongs to in the workspace’s group.
This information can be used to lay out workspaces in a grid in a pager UI, for example.
- get_name()¶
 - Returns:
 A UTF-8 formatted string, owned by self.
- Return type:
 
Fetches this workspace’s human-readable name.
- get_neighbor(direction)¶
 - Parameters:
 direction (
Libxfce4windowing.Direction) – anLibxfce4windowing.Direction.- Returns:
 a
Libxfce4windowing.Workspace, owned by the parent group, orNoneif no workspace exists in direction.- Return type:
 
Fetches the workspace that resides in direction from the self, if any. If workspace is on the edge of the layout, and direction points off the edge of the layout, will return
None.
- get_number()¶
 - Returns:
 a non-negative, 0-indexed integer.
- Return type:
 
Fetches the ordinal number of this workspace.
The number can be used to order workspaces in a UI representation.
On X11, this number should be stable across runs of your application.
On Wayland, this number depends on the order in which the compositor advertises the workspaces. This order may be stable, but may not be.
- get_state()¶
 - Returns:
 a
Libxfce4windowing.WorkspaceStatebitfield.- Return type:
 
Fetches this workspace’s state bitfield.
- get_workspace_group()¶
 - Returns:
 a
Libxfce4windowing.WorkspaceGroupinstance, owned by self, orNoneif the workspace is not a member of any groups.- Return type:
 
Fetches the group this workspace belongs to, if any.
- remove()¶
 - Raises:
 - Returns:
 Trueif workspace removal succeeded,Falseotherwise. IfFalse, and error is non-None, an error will be returned that must be freed usingGLib.Error.free().- Return type:
 
Attempts to remove self from its group.
On failure, error (if provided) will be set to a description of the error that occurred.
Signal Details¶
- Libxfce4windowing.Workspace.signals.capabilities_changed(workspace, changed_mask, new_capabilities)¶
 - Signal Name:
 capabilities-changed- Flags:
 - Parameters:
 workspace (
Libxfce4windowing.Workspace) – The object which received the signalchanged_mask (
Libxfce4windowing.WorkspaceCapabilities) – a bitfield representing the capabilities that have changed.new_capabilities (
Libxfce4windowing.WorkspaceCapabilities) – a bitfield of the new capabilities.
Emitted when workspace's capabilities change.
- Libxfce4windowing.Workspace.signals.group_changed(workspace, previous_group)¶
 - Signal Name:
 group-changed- Flags:
 - Parameters:
 workspace (
Libxfce4windowing.Workspace) – The object which received the signalprevious_group (
Libxfce4windowing.WorkspaceGroup) – the group workspace was previously in, orNone.
Emitted when workspace is assigned to an
Libxfce4windowing.WorkspaceGroup.
- Libxfce4windowing.Workspace.signals.name_changed(workspace)¶
 - Signal Name:
 name-changed- Flags:
 - Parameters:
 workspace (
Libxfce4windowing.Workspace) – The object which received the signal
Emitted when workspace's name changes.
- Libxfce4windowing.Workspace.signals.state_changed(workspace, changed_mask, new_state)¶
 - Signal Name:
 state-changed- Flags:
 - Parameters:
 workspace (
Libxfce4windowing.Workspace) – The object which received the signalchanged_mask (
Libxfce4windowing.WorkspaceState) – a bitfield representing the state bits that have changed.new_state (
Libxfce4windowing.WorkspaceState) – a bitfield of the new state.
Emitted when workspace's state changes.
Property Details¶
- Libxfce4windowing.Workspace.props.capabilities¶
 - Name:
 capabilities- Type:
 - Default Value:
 - Flags:
 
The
Libxfce4windowing.WorkspaceCapabilitiesbitfield for this workspace.
- Libxfce4windowing.Workspace.props.group¶
 - Name:
 group- Type:
 - Default Value:
 - Flags:
 
The
Libxfce4windowing.WorkspaceGroupthat this workspace is a member of, if any.
- Libxfce4windowing.Workspace.props.id¶
 - 
The opaque ID of this workspace.
 
- Libxfce4windowing.Workspace.props.layout_column¶
 - 
The y-coordinate of the workspace on a 2D grid.
 
- Libxfce4windowing.Workspace.props.layout_row¶
 - 
The x-coordinate of the workspace on a 2D grid.
 
- Libxfce4windowing.Workspace.props.name¶
 - 
The human-readable name of this workspace.
 
- Libxfce4windowing.Workspace.props.number¶
 - Name:
 number- Type:
 - Default Value:
 0- Flags:
 
The ordinal number of this workspace.
- Libxfce4windowing.Workspace.props.state¶
 - Name:
 state- Type:
 - Default Value:
 - Flags:
 
The
Libxfce4windowing.WorkspaceStatebitfield for this workspace.