GraphicsOffload

Added in version 4.14.

class GraphicsOffload(**properties: Any)

Superclasses: Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ConstraintTarget

Constructors:

GraphicsOffload(**properties)
new(child:Gtk.Widget=None) -> Gtk.Widget

Constructors

class GraphicsOffload
classmethod new(child: Widget | None = None) Widget

Creates a new GtkGraphicsOffload widget.

Added in version 4.14.

Parameters:

child – the child widget

Methods

class GraphicsOffload
get_child() Widget | None

Gets the child of self.

Added in version 4.14.

get_enabled() GraphicsOffloadEnabled

Returns whether offload is enabled for self.

Added in version 4.14.

set_child(child: Widget | None = None) None

Sets the child of self.

Added in version 4.14.

Parameters:

child – the child widget

set_enabled(enabled: GraphicsOffloadEnabled) None

Sets whether this GtkGraphicsOffload widget will attempt to offload the content of its child widget.

Added in version 4.14.

Parameters:

enabled – whether to enable offload

Properties

class GraphicsOffload
props.child: Widget

The child widget.

Added in version 4.14.

props.enabled: GraphicsOffloadEnabled

Whether graphics offload is enabled.

Added in version 4.14.