Wnck.Pager¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co/en |
handle |
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Wnck.Pager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Wnck.Pagerstruct contains only private fields and should not be directly accessed.- classmethod new()¶
- Returns:
a newly created
Wnck.Pager.- Return type:
Creates a new
Wnck.Pager. TheWnck.Pagerwill show theWnck.Workspaceof theWnck.Screenit is on.
- classmethod new_with_handle(handle)¶
- Parameters:
handle (
Wnck.Handle) – aWnck.Handle- Returns:
a newly created
Wnck.Pager.- Return type:
Creates a new
Wnck.Pager. TheWnck.Pagerwill show theWnck.Workspaceof theWnck.Screenit is on.
- get_wrap_on_scroll()¶
- Returns:
Trueif the self wraps workspaces on a scroll event that hits a border,Falseotherwise.- Return type:
New in version 3.24.0.
- set_display_mode(mode)¶
- Parameters:
mode (
Wnck.PagerDisplayMode) – a display mode.
Sets the display mode for self to mode.
- set_n_rows(n_rows)¶
- Parameters:
n_rows (
int) – the number of rows to use for the layout ofWnck.Workspaceon theWnck.Screenself is watching.- Returns:
Trueif the layout ofWnck.Workspacehas been successfully changed or did not need to be changed,Falseotherwise.- Return type:
Tries to change the number of rows in the layout of
Wnck.Workspaceon theWnck.Screenself is watching. Since no more than one application should set this property of aWnck.Screenat a time, setting the layout is not guaranteed to work.If self has not been added to a widget hierarchy, the call will fail because self can’t know the screen on which to modify the layout.
- set_orientation(orientation)¶
- Parameters:
orientation (
Gtk.Orientation) – orientation to use for the layout ofWnck.Workspaceon theWnck.Screenself is watching.- Returns:
Trueif the layout ofWnck.Workspacehas been successfully changed or did not need to be changed,Falseotherwise.- Return type:
Tries to change the orientation of the layout of
Wnck.Workspaceon theWnck.Screenself is watching. Since no more than one application should set this property of aWnck.Screenat a time, setting the layout is not guaranteed to work.If orientation is
Gtk.Orientation.HORIZONTAL, theWnck.Workspacewill be laid out in rows, with the firstWnck.Workspacein the top left corner.If orientation is
Gtk.Orientation.VERTICAL, theWnck.Workspacewill be laid out in columns, with the firstWnck.Workspacein the top left corner.For example, if the layout contains one row, but the orientation of the layout is vertical, the
Wnck.Pagerwill display a column ofWnck.Workspace.Note that setting the orientation will have an effect on the geometry management: if orientation is
Gtk.Orientation.HORIZONTAL,Gtk.SizeRequestMode.WIDTH_FOR_HEIGHTwill be used as request mode; if orientation isGtk.Orientation.VERTICAL,Gtk.SizeRequestMode.HEIGHT_FOR_WIDTHwill be used instead.If self has not been added to a widget hierarchy, the call will fail because self can’t know the screen on which to modify the orientation.
- set_scroll_mode(scroll_mode)¶
- Parameters:
scroll_mode (
Wnck.PagerScrollMode) – a scroll mode.
Sets self to react to input device scrolling in one of the available scroll modes.
New in version 3.36.
- set_shadow_type(shadow_type)¶
- Parameters:
shadow_type (
Gtk.ShadowType) – a shadow type.
Sets the shadow type for self to shadow_type. The main use of this function is proper integration of
Wnck.Pagerin panels with non-system backgrounds.New in version 2.2.
- set_show_all(show_all_workspaces)¶
- Parameters:
show_all_workspaces (
bool) – whether to display allWnck.Workspacein self.
Sets self to display all
Wnck.Workspaceor not, according to show_all_workspaces.
Property Details¶
- Wnck.Pager.props.handle¶
- Name:
handle- Type:
- Default Value:
- Flags:
handle