Libxfce4windowing.Window¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r  | 
application  | 
||
r  | 
capabilities  | 
||
[  | 
r  | 
class-ids  | 
|
r  | 
gicon  | 
||
r  | 
monitors  | 
||
r  | 
name  | 
||
r/w/co  | 
screen  | 
||
r  | 
state  | 
||
r  | 
type  | 
||
r  | 
workspace  | 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Emitted when window's capabilities change.  | 
|
Emitted when at least one of the window's class ids changes.  | 
|
Emitted when window is closed.  | 
|
Emitted when window's position or size changes.  | 
|
Emitted when window's icon changes.  | 
|
Emitted when window's name/title changes.  | 
|
Emitted when window's state changes.  | 
|
Emitted when window's type changes.  | 
|
Emitted when window is moved to a different worksapce.  | 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
Class Details¶
- class Libxfce4windowing.Window(**kwargs)¶
 - Bases:
 - Abstract:
 Yes
- Structure:
 
- activate(seat, event_timestamp)¶
 - Parameters:
 seat (
Libxfce4windowing.Seat) –event_timestamp (
int) –
- Raises:
 - Return type:
 
- get_application()¶
 - Returns:
 An
Libxfce4windowing.Applicationinstance, with a reference owned by self.- Return type:
 
Fetches self's application.
- get_capabilities()¶
 - Returns:
 a bitfield with zero or more bits from
Libxfce4windowing.WindowCapabilitiesset.- Return type:
 
Fetches self's capabilities bitfield.
- get_class_ids()¶
 - Returns:
 a
None-terminated array of strings owned by theLibxfce4windowing.Window.- Return type:
 [
str]
Fetches self's class ids. On X11 this should contain the class and instance names of the WM_CLASS property. On Wayland, it’s likely to be limited to the application ID, which should correspond to the basename of the application’s desktop file.
New in version 4.19.3.
- get_geometry()¶
 - Returns:
 A
Gdk.Rectanglerepresenting self's geometry, which should not be modified or freed.- Return type:
 
Fetches self's position and size.
- 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.Window.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.Window.icon_is_fallback().
- get_monitors()¶
 - Returns:
 A list of
Libxfce4windowing.Monitorinstances, orNone. The list and its contents are owned by self and should not be modified or freed.- Return type:
 
Fetches the list of monitors self is displayed on, if any.
- get_name()¶
 - Returns:
 a window title, or
Noneif there is no title. The returned title should not be modified or freed.- Return type:
 
Fetches self's name/title.
- get_screen()¶
 - Returns:
 A
Libxfce4windowing.Screeninstance, with a reference owned by self.- Return type:
 
Fetches the
Libxfce4windowing.Screeninstance that owns self.
- get_state()¶
 - Returns:
 a bitfield with zero or more bits from
Libxfce4windowing.WindowStateset.- Return type:
 
Fetches self's state bitfield.
- get_window_type()¶
 - Return type:
 
- get_workspace()¶
 - Returns:
 A
Libxfce4windowing.Workspaceinstance, with a reference owned by self, orNone.- Return type:
 
Fetches self's workspace, if any. This may return
Noneif self is not on a workspace, or is pinned to all workspaces.
- icon_is_fallback()¶
 - 
Determines if self does not have an icon, and thus a fallback icon will be returned from
Libxfce4windowing.Window.get_icon() andLibxfce4windowing.Window.get_gicon().New in version 4.19.1.
 
- is_in_viewport(workspace)¶
 - Parameters:
 workspace (
Libxfce4windowing.Workspace) –- Return type:
 
- is_on_workspace(workspace)¶
 - Parameters:
 workspace (
Libxfce4windowing.Workspace) –- Return type:
 
- move_to_workspace(workspace)¶
 - Parameters:
 workspace (
Libxfce4windowing.Workspace) –- Raises:
 - Return type:
 
- set_button_geometry(relative_to, rect)¶
 - Parameters:
 relative_to (
Gdk.Window) –rect (
Gdk.Rectangle) –
- Raises:
 - Return type:
 
- set_geometry(rect)¶
 - Parameters:
 rect (
Gdk.Rectangle) –- Raises:
 - Return type:
 
- start_move()¶
 - Raises:
 - Return type:
 
- start_resize()¶
 - Raises:
 - Return type:
 
Signal Details¶
- Libxfce4windowing.Window.signals.capabilities_changed(window, changed_mask, new_state)¶
 - Signal Name:
 capabilities-changed- Flags:
 - Parameters:
 window (
Libxfce4windowing.Window) – The object which received the signalchanged_mask (
Libxfce4windowing.WindowCapabilities) – bitfield representing which state bits have changed.new_state (
Libxfce4windowing.WindowCapabilities) – the new state bitfield.
Emitted when window's capabilities change.
- Libxfce4windowing.Window.signals.class_changed(window)¶
 - Signal Name:
 class-changed- Flags:
 - Parameters:
 window (
Libxfce4windowing.Window) – The object which received the signal
Emitted when at least one of the window's class ids changes.
New in version 4.19.3.
- Libxfce4windowing.Window.signals.closed(window)¶
 - Signal Name:
 closed- Flags:
 - Parameters:
 window (
Libxfce4windowing.Window) – The object which received the signal
Emitted when window is closed.
- Libxfce4windowing.Window.signals.geometry_changed(window)¶
 - Signal Name:
 geometry-changed- Flags:
 - Parameters:
 window (
Libxfce4windowing.Window) – The object which received the signal
Emitted when window's position or size changes.
- Libxfce4windowing.Window.signals.icon_changed(window)¶
 - Signal Name:
 icon-changed- Flags:
 - Parameters:
 window (
Libxfce4windowing.Window) – The object which received the signal
Emitted when window's icon changes.
- Libxfce4windowing.Window.signals.name_changed(window)¶
 - Signal Name:
 name-changed- Flags:
 - Parameters:
 window (
Libxfce4windowing.Window) – The object which received the signal
Emitted when window's name/title changes.
- Libxfce4windowing.Window.signals.state_changed(window, changed_mask, new_state)¶
 - Signal Name:
 state-changed- Flags:
 - Parameters:
 window (
Libxfce4windowing.Window) – The object which received the signalchanged_mask (
Libxfce4windowing.WindowState) – bitfield representing which state bits have changed.new_state (
Libxfce4windowing.WindowState) – the new state bitfield.
Emitted when window's state changes.
- Libxfce4windowing.Window.signals.type_changed(window, old_type)¶
 - Signal Name:
 type-changed- Flags:
 - Parameters:
 window (
Libxfce4windowing.Window) – The object which received the signalold_type (
Libxfce4windowing.WindowType) – the previous window type.
Emitted when window's type changes.
- Libxfce4windowing.Window.signals.workspace_changed(window)¶
 - Signal Name:
 workspace-changed- Flags:
 - Parameters:
 window (
Libxfce4windowing.Window) – The object which received the signal
Emitted when window is moved to a different worksapce.
Property Details¶
- Libxfce4windowing.Window.props.application¶
 - Name:
 application- Type:
 - Default Value:
 - Flags:
 
The
Libxfce4windowing.Applicationthat owns this window.
- Libxfce4windowing.Window.props.capabilities¶
 - Name:
 capabilities- Type:
 - Default Value:
 - Flags:
 
The window’s capabilities bitfield.
- Libxfce4windowing.Window.props.class_ids¶
 - 
The window’s class ids.
New in version 4.19.3.
 
- Libxfce4windowing.Window.props.monitors¶
 - 
The list of
Libxfce4windowing.Monitors (if any) that the window is displayed on. 
- Libxfce4windowing.Window.props.name¶
 - 
The window’s name or title.
 
- Libxfce4windowing.Window.props.screen¶
 - Name:
 screen- Type:
 - Default Value:
 - Flags:
 
The
Libxfce4windowing.Screeninstances that owns this window.
- Libxfce4windowing.Window.props.state¶
 - Name:
 state- Type:
 - Default Value:
 - Flags:
 
The window’s state bitfield.
- Libxfce4windowing.Window.props.type¶
 - Name:
 type- Type:
 - Default Value:
 - Flags:
 
The window’s type or function.
- Libxfce4windowing.Window.props.workspace¶
 - Name:
 workspace- Type:
 - Default Value:
 - Flags:
 
workspace