:right-sidebar: True Fixed =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: Fixed(**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: :: Fixed(**properties) new() -> Gtk.Widget Constructors ------------ .. rst-class:: interim-class .. class:: Fixed :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.Widget Creates a new ``GtkFixed``. Methods ------- .. rst-class:: interim-class .. class:: Fixed :no-index: .. method:: get_child_position(widget: ~gi.repository.Gtk.Widget) -> tuple[float, float] Retrieves the translation transformation of the given child ``GtkWidget`` in the ``GtkFixed``. See also: :obj:`~gi.repository.Gtk.Fixed.get_child_transform`. :param widget: a child of ``fixed`` .. method:: get_child_transform(widget: ~gi.repository.Gtk.Widget) -> ~gi.repository.Gsk.Transform | None Retrieves the transformation for ``widget`` set using :func:`~gi.repository.Gtk.Fixed.set_child_transform`. :param widget: a ``GtkWidget``, child of ``fixed`` .. method:: move(widget: ~gi.repository.Gtk.Widget, x: float, y: float) -> None Sets a translation transformation to the given ``x`` and ``y`` coordinates to the child ``widget`` of the ``GtkFixed``. :param widget: the child widget :param x: the horizontal position to move the widget to :param y: the vertical position to move the widget to .. method:: put(widget: ~gi.repository.Gtk.Widget, x: float, y: float) -> None Adds a widget to a ``GtkFixed`` at the given position. :param widget: the widget to add :param x: the horizontal position to place the widget at :param y: the vertical position to place the widget at .. method:: remove(widget: ~gi.repository.Gtk.Widget) -> None Removes a child from ``fixed``. :param widget: the child widget to remove .. method:: set_child_transform(widget: ~gi.repository.Gtk.Widget, transform: ~gi.repository.Gsk.Transform | None = None) -> None Sets the transformation for ``widget``. This is a convenience function that retrieves the :obj:`~gi.repository.Gtk.FixedLayoutChild` instance associated to ``widget`` and calls :obj:`~gi.repository.Gtk.FixedLayoutChild.set_transform`. :param widget: a ``GtkWidget``, child of ``fixed`` :param transform: the transformation assigned to ``widget`` to reset ``widget``'s transform Fields ------ .. rst-class:: interim-class .. class:: Fixed :no-index: .. attribute:: parent_instance