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.Pager
struct 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.Pager
will show theWnck.Workspace
of theWnck.Screen
it 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.Pager
will show theWnck.Workspace
of theWnck.Screen
it is on.
- get_wrap_on_scroll()¶
- Returns:
True
if the self wraps workspaces on a scroll event that hits a border,False
otherwise.- 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.Workspace
on theWnck.Screen
self is watching.- Returns:
True
if the layout ofWnck.Workspace
has been successfully changed or did not need to be changed,False
otherwise.- Return type:
Tries to change the number of rows in the layout of
Wnck.Workspace
on theWnck.Screen
self is watching. Since no more than one application should set this property of aWnck.Screen
at 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.Workspace
on theWnck.Screen
self is watching.- Returns:
True
if the layout ofWnck.Workspace
has been successfully changed or did not need to be changed,False
otherwise.- Return type:
Tries to change the orientation of the layout of
Wnck.Workspace
on theWnck.Screen
self is watching. Since no more than one application should set this property of aWnck.Screen
at a time, setting the layout is not guaranteed to work.If orientation is
Gtk.Orientation.HORIZONTAL
, theWnck.Workspace
will be laid out in rows, with the firstWnck.Workspace
in the top left corner.If orientation is
Gtk.Orientation.VERTICAL
, theWnck.Workspace
will be laid out in columns, with the firstWnck.Workspace
in the top left corner.For example, if the layout contains one row, but the orientation of the layout is vertical, the
Wnck.Pager
will 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_HEIGHT
will be used as request mode; if orientation isGtk.Orientation.VERTICAL
,Gtk.SizeRequestMode.HEIGHT_FOR_WIDTH
will 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.Pager
in 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.Workspace
in self.
Sets self to display all
Wnck.Workspace
or not, according to show_all_workspaces.
Property Details¶
- Wnck.Pager.props.handle¶
- Name:
handle
- Type:
- Default Value:
- Flags:
handle