Libxfce4windowing.Application¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
class-id |
||
r |
gicon |
||
r |
instances |
||
r |
name |
||
r |
windows |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Emitted when app's icon changes. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Libxfce4windowing.Application(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- get_class_id()¶
- Returns:
A UTF-8 formatted string, owned by self.
- Return type:
Fetches this application’s class id. On X11 this should be the class name of the WM_CLASS property. On Wayland, it’s the application ID, which should correspond to the basename of the application’s desktop file.
New in version 4.19.3.
- get_gicon()¶
-
Fetches self's icon as a size-independent
Gio.Icon. If an icon cannot be found, aGio.Iconrepresenting a fallback icon will be returned. Whether or not the returned icon is a fallback icon can be determined usingLibxfce4windowing.Application.icon_is_fallback().New in version 4.19.1.
- get_icon(size, scale)¶
- Parameters:
- Returns:
a
GdkPixbuf.Pixbuf, owned by self, orNoneif self has no icon and a fallback cannot be rendered.- Return type:
Fetches self's icon. If self has no icon, a fallback icon may be returned. Whether or not the returned icon is a fallback icon can be determined using
Libxfce4windowing.Application.icon_is_fallback().
- get_instance(window)¶
- Parameters:
window (
Libxfce4windowing.Window) – the application window you want to get the instance of.- Returns:
The
Libxfce4windowing.ApplicationInstanceto which window belongs, orNoneif window does not belong to self, or if listing instances is not supported on the windowing environment in use. The returnedLibxfce4windowing.ApplicationInstanceis owned by self.- Return type:
Finds the
Libxfce4windowing.ApplicationInstanceto which window belongs.
- get_instances()¶
- Returns:
The list of
Libxfce4windowing.ApplicationInstanceof self, orNoneif listing instances is not supported on the windowing environment in use. The list and its contents are owned by self.- Return type:
Lists all instances of the application.
- get_name()¶
- Returns:
A UTF-8 formatted string, owned by self.
- Return type:
Fetches this application’s human-readable name.
- get_windows()¶
- Returns:
The list of
Libxfce4windowing.Windowbelonging to self. The list and its contents are owned by self.- Return type:
Lists all windows belonging to the application.
- icon_is_fallback()¶
-
Determines if self does not have an icon, and thus a fallback icon will be returned from
Libxfce4windowing.Application.get_icon() andLibxfce4windowing.Application.get_gicon().New in version 4.19.1.
Signal Details¶
- Libxfce4windowing.Application.signals.icon_changed(application)¶
- Signal Name:
icon-changed- Flags:
- Parameters:
application (
Libxfce4windowing.Application) – The object which received the signal
Emitted when app's icon changes.
Property Details¶
- Libxfce4windowing.Application.props.class_id¶
-
The application class id.
New in version 4.19.3.
- Libxfce4windowing.Application.props.instances¶
-
The list of
Libxfce4windowing.ApplicationInstancebelonging to the application.
- Libxfce4windowing.Application.props.name¶
-
The application name.
- Libxfce4windowing.Application.props.windows¶
-
The list of
Libxfce4windowing.Windowbelonging to the application.