Top | ![]() |
![]() |
![]() |
![]() |
WnckHandle *
wnck_handle_new (WnckClientType client_type
);
Creates a new WnckHandle object with a given client_type
.
WnckScreen *
wnck_handle_get_default_screen (WnckHandle *self
);
Gets the default WnckScreen on the default display.
the default WnckScreen. The
returned WnckScreen is owned by WnckHandle and must not be referenced
or unreferenced. This can return NULL
if not on X11.
[transfer none][nullable]
WnckScreen * wnck_handle_get_screen (WnckHandle *self
,int index
);
Gets the WnckScreen for a given screen on the default display.
the WnckScreen for screen index
, or NULL
if no such screen exists. The returned WnckScreen is owned by WnckHandle
and must not be referenced or unreferenced.
[transfer none]
WnckScreen * wnck_handle_get_screen_for_root (WnckHandle *self
,gulong root_window_id
);
Gets the WnckScreen for the root window at root_window_id
, or
NULL
if no WnckScreen exists for this root window.
This function does not work if wnck_handle_get_screen()
was not called
for the sought WnckScreen before, and returns NULL
.
the WnckScreen for the root window at
root_window_id
, or NULL
. The returned WnckScreen is owned by
WnckHandle and must not be referenced or unreferenced.
[transfer none]
void wnck_handle_set_default_icon_size (WnckHandle *self
,gsize icon_size
);
The default main icon size is WNCK_DEFAULT_ICON_SIZE
. This function allows
to change this value.
void wnck_handle_set_default_mini_icon_size (WnckHandle *self
,gsize icon_size
);
The default main icon size is WNCK_DEFAULT_MINI_ICON_SIZE
. This function
allows to change this value.
WnckClassGroup * wnck_handle_get_class_group (WnckHandle *self
,const char *id
);
Gets the WnckClassGroup corresponding to id
.
the WnckClassGroup corresponding to
id
, or NULL
if there is no WnckClassGroup with the specified
id
. The returned WnckClassGroup is owned by libwnck and must not be
referenced or unreferenced.
[transfer none]
WnckApplication * wnck_handle_get_application (WnckHandle *self
,gulong xwindow
);
Gets the WnckApplication corresponding to the group leader with xwindow
as X window ID.
the WnckApplication corresponding to
xwindow
, or NULL
if there no such WnckApplication could be found. The
returned WnckApplication is owned by libwnck and must not be referenced or
unreferenced.
[transfer none]
WnckWindow * wnck_handle_get_window (WnckHandle *self
,gulong xwindow
);
Gets a preexisting WnckWindow for the X window xwindow
. This will not
create a WnckWindow if none exists. The function is robust against bogus
window IDs.
the WnckWindow for xwindow
. The returned
WnckWindow is owned by libwnck and must not be referenced or unreferenced.
[transfer none]
typedef struct _WnckHandle WnckHandle;
The WnckHandle struct contains only private fields and should not be directly accessed.
“client-type”
property“client-type” WnckClientType
client-type.
Owner: WnckHandle
Flags: Read / Write / Construct
Default value: WNCK_CLIENT_TYPE_APPLICATION