:right-sidebar: True GraphicsOffload =================================================================== .. currentmodule:: gi.repository.Gtk .. versionadded:: 4.14 .. class:: GraphicsOffload(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Widget`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gtk.Accessible`, :class:`~gi.repository.Gtk.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget` :Constructors: :: GraphicsOffload(**properties) new(child:Gtk.Widget=None) -> Gtk.Widget Constructors ------------ .. rst-class:: interim-class .. class:: GraphicsOffload :no-index: .. classmethod:: new(child: ~gi.repository.Gtk.Widget | None = None) -> ~gi.repository.Gtk.Widget Creates a new GtkGraphicsOffload widget. .. versionadded:: 4.14 :param child: the child widget Methods ------- .. rst-class:: interim-class .. class:: GraphicsOffload :no-index: .. method:: get_child() -> ~gi.repository.Gtk.Widget | None Gets the child of ``self``. .. versionadded:: 4.14 .. method:: get_enabled() -> ~gi.repository.Gtk.GraphicsOffloadEnabled Returns whether offload is enabled for ``self``. .. versionadded:: 4.14 .. method:: set_child(child: ~gi.repository.Gtk.Widget | None = None) -> None Sets the child of ``self``. .. versionadded:: 4.14 :param child: the child widget .. method:: set_enabled(enabled: ~gi.repository.Gtk.GraphicsOffloadEnabled) -> None Sets whether this GtkGraphicsOffload widget will attempt to offload the content of its child widget. .. versionadded:: 4.14 :param enabled: whether to enable offload Properties ---------- .. rst-class:: interim-class .. class:: GraphicsOffload :no-index: .. attribute:: props.child :type: ~gi.repository.Gtk.Widget The child widget. .. versionadded:: 4.14 .. attribute:: props.enabled :type: ~gi.repository.Gtk.GraphicsOffloadEnabled Whether graphics offload is enabled. .. versionadded:: 4.14