Wnck.Handle¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
client-type |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Wnck.Handle(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(client_type)¶
- Parameters:
client_type (
Wnck.ClientType
) – a role for the client- Returns:
newly created
Wnck.Handle
.- Return type:
Creates a new
Wnck.Handle
object with a given client_type.
- get_application(xwindow)¶
- Parameters:
xwindow (
int
) – the X window ID of a group leader.- Returns:
the
Wnck.Application
corresponding to xwindow, orNone
if there no suchWnck.Application
could be found. The returnedWnck.Application
is owned by libwnck and must not be referenced or unreferenced.- Return type:
Gets the
Wnck.Application
corresponding to the group leader with xwindow as X window ID.
- get_class_group(id)¶
- Parameters:
id (
str
) – identifier name of the sought resource class.- Returns:
the
Wnck.ClassGroup
corresponding to id, orNone
if there is noWnck.ClassGroup
with the specified id. The returnedWnck.ClassGroup
is owned by libwnck and must not be referenced or unreferenced.- Return type:
Gets the
Wnck.ClassGroup
corresponding to id.
- get_default_screen()¶
- Returns:
the default
Wnck.Screen
. The returnedWnck.Screen
is owned byWnck.Handle
and must not be referenced or unreferenced. This can returnNone
if not on X11.- Return type:
Wnck.Screen
orNone
Gets the default
Wnck.Screen
on the default display.
- get_screen(index)¶
- Parameters:
index (
int
) – screen number, starting from 0.- Returns:
the
Wnck.Screen
for screen index, orNone
if no such screen exists. The returnedWnck.Screen
is owned byWnck.Handle
and must not be referenced or unreferenced.- Return type:
Gets the
Wnck.Screen
for a given screen on the default display.
- get_screen_for_root(root_window_id)¶
- Parameters:
root_window_id (
int
) – an X window ID.- Returns:
the
Wnck.Screen
for the root window at root_window_id, orNone
. The returnedWnck.Screen
is owned byWnck.Handle
and must not be referenced or unreferenced.- Return type:
Gets the
Wnck.Screen
for the root window at root_window_id, orNone
if noWnck.Screen
exists for this root window.This function does not work if
Wnck.Handle.get_screen
() was not called for the soughtWnck.Screen
before, and returnsNone
.
- get_window(xwindow)¶
- Parameters:
xwindow (
int
) – an X window ID.- Returns:
the
Wnck.Window
for xwindow. The returnedWnck.Window
is owned by libwnck and must not be referenced or unreferenced.- Return type:
Gets a preexisting
Wnck.Window
for the X window xwindow. This will not create aWnck.Window
if none exists. The function is robust against bogus window IDs.
- set_default_icon_size(icon_size)¶
- Parameters:
icon_size (
int
) – the default size for windows and application standard icons.
The default main icon size is
Wnck.DEFAULT_ICON_SIZE
. This function allows to change this value.
- set_default_mini_icon_size(icon_size)¶
- Parameters:
icon_size (
int
) – the default size for windows and application mini icons.
The default main icon size is
Wnck.DEFAULT_MINI_ICON_SIZE
. This function allows to change this value.
Property Details¶
- Wnck.Handle.props.client_type¶
- Name:
client-type
- Type:
- Default Value:
- Flags:
client-type