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:
The
Wnck.Handlestruct contains only private fields and should not be directly accessed.- 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.Handleobject with a given client_type.
- get_application(xwindow)¶
- Parameters:
xwindow (
int) – the X window ID of a group leader.- Returns:
the
Wnck.Applicationcorresponding to xwindow, orNoneif there no suchWnck.Applicationcould be found. The returnedWnck.Applicationis owned by libwnck and must not be referenced or unreferenced.- Return type:
Gets the
Wnck.Applicationcorresponding 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.ClassGroupcorresponding to id, orNoneif there is noWnck.ClassGroupwith the specified id. The returnedWnck.ClassGroupis owned by libwnck and must not be referenced or unreferenced.- Return type:
Gets the
Wnck.ClassGroupcorresponding to id.
- get_default_screen()¶
- Returns:
the default
Wnck.Screen. The returnedWnck.Screenis owned byWnck.Handleand must not be referenced or unreferenced. This can returnNoneif not on X11.- Return type:
Wnck.ScreenorNone
Gets the default
Wnck.Screenon the default display.
- get_screen(index)¶
- Parameters:
index (
int) – screen number, starting from 0.- Returns:
the
Wnck.Screenfor screen index, orNoneif no such screen exists. The returnedWnck.Screenis owned byWnck.Handleand must not be referenced or unreferenced.- Return type:
Gets the
Wnck.Screenfor 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.Screenfor the root window at root_window_id, orNone. The returnedWnck.Screenis owned byWnck.Handleand must not be referenced or unreferenced.- Return type:
Gets the
Wnck.Screenfor the root window at root_window_id, orNoneif noWnck.Screenexists for this root window.This function does not work if
Wnck.Handle.get_screen() was not called for the soughtWnck.Screenbefore, and returnsNone.
- get_window(xwindow)¶
- Parameters:
xwindow (
int) – an X window ID.- Returns:
the
Wnck.Windowfor xwindow. The returnedWnck.Windowis owned by libwnck and must not be referenced or unreferenced.- Return type:
Gets a preexisting
Wnck.Windowfor the X window xwindow. This will not create aWnck.Windowif 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