Wnck.Workspace¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Emitted when the name of space changes. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Wnck.Workspace(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Wnck.Workspacestruct contains only private fields and should not be directly accessed.- activate(timestamp)¶
- Parameters:
timestamp (
int) – the X server timestamp of the user interaction event that caused this call to occur.
Asks the window manager to make self the active workspace. The window manager may decide to refuse the request (to not steal the focus if there is a more recent user activity, for example).
This function existed before 2.10, but the timestamp argument was missing in earlier versions.
New in version 2.10.
- change_name(name)¶
- Parameters:
name (
str) – new name for self.
Changes the name of self.
New in version 2.2.
- get_height()¶
- Returns:
the height of self.
- Return type:
Gets the height of self.
New in version 2.4.
- get_layout_column()¶
- Returns:
the column of self in the
Wnck.Workspacelayout, or -1 on errors.- Return type:
Gets the column of self in the
Wnck.Workspacelayout. The first column has an index of 0 and is always the left column, regardless of the starting corner set for the layout and regardless of the default direction of the environment (i.e., in both Left-To-Right and Right-To-Left environments).New in version 2.20.
- get_layout_row()¶
- Returns:
the row of self in the
Wnck.Workspacelayout, or -1 on errors.- Return type:
Gets the row of self in the
Wnck.Workspacelayout. The first row has an index of 0 and is always the top row, regardless of the starting corner set for the layout.New in version 2.20.
- get_name()¶
- Returns:
the name of self.
- Return type:
Gets the human-readable name that should be used to refer to self. If the user has not set a special name, a fallback like “Workspace 3” will be used.
- get_neighbor(direction)¶
- Parameters:
direction (
Wnck.MotionDirection) – direction in which to search the neighbor.- Returns:
the neighbor
Wnck.Workspaceof self in the direction direction, orNoneif no such neighborWnck.Workspaceexists. The returnedWnck.Workspaceis owned by libwnck and must not be referenced or unreferenced.- Return type:
Gets the neighbor
Wnck.Workspaceof self in the direction direction.New in version 2.20.
- get_number()¶
- Returns:
the index of self on its
Wnck.Screen, or -1 on errors.- Return type:
Gets the index of self on the
Wnck.Screento which it belongs. The first workspace has an index of 0.
- get_screen()¶
- Returns:
the
Wnck.Screenself is on. The returnedWnck.Screenis owned by libwnck and must not be referenced or unreferenced.- Return type:
Gets the
Wnck.Screenself is on.
- get_viewport_x()¶
- Returns:
the X coordinate of the viewport in self, or 0 if self does not contain a viewport.
- Return type:
Gets the X coordinate of the viewport in self.
New in version 2.4.
- get_viewport_y()¶
- Returns:
the Y coordinate of the viewport in self, or 0 if self does not contain a viewport.
- Return type:
Gets the Y coordinate of the viewport in self.
New in version 2.4.
- get_width()¶
- Returns:
the width of self.
- Return type:
Gets the width of self.
New in version 2.4.
- is_virtual()¶
-
Gets whether self contains a viewport.
New in version 2.4.
- do_name_changed() virtual¶
Signal Details¶
- Wnck.Workspace.signals.name_changed(workspace)¶
- Signal Name:
name-changed- Flags:
- Parameters:
workspace (
Wnck.Workspace) – The object which received the signal
Emitted when the name of space changes.