Fixed
Superclasses: Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Buildable
, ConstraintTarget
- Constructors:
Fixed(**properties)
new() -> Gtk.Widget
Constructors
Methods
- class Fixed
- get_child_position(widget: Widget) tuple[float, float]
Retrieves the translation transformation of the given child
GtkWidget
in theGtkFixed
.See also:
get_child_transform
.- Parameters:
widget – a child of
fixed
- get_child_transform(widget: Widget) Transform | None
Retrieves the transformation for
widget
set usingset_child_transform()
.- Parameters:
widget – a
GtkWidget
, child offixed
- move(widget: Widget, x: float, y: float) None
Sets a translation transformation to the given
x
andy
coordinates to the childwidget
of theGtkFixed
.- Parameters:
widget – the child widget
x – the horizontal position to move the widget to
y – the vertical position to move the widget to
- put(widget: Widget, x: float, y: float) None
Adds a widget to a
GtkFixed
at the given position.- Parameters:
widget – the widget to add
x – the horizontal position to place the widget at
y – the vertical position to place the widget at
- remove(widget: Widget) None
Removes a child from
fixed
.- Parameters:
widget – the child widget to remove
- set_child_transform(widget: Widget, transform: Transform | None = None) None
Sets the transformation for
widget
.This is a convenience function that retrieves the
FixedLayoutChild
instance associated towidget
and callsset_transform
.- Parameters:
widget – a
GtkWidget
, child offixed
transform – the transformation assigned to
widget
to resetwidget
’s transform
Fields
- class Fixed
- parent_instance