Fixed

class Fixed(**properties: Any)

Superclasses: Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ConstraintTarget

Constructors:

Fixed(**properties)
new() -> Gtk.Widget

Constructors

class Fixed
classmethod new() Widget

Creates a new GtkFixed.

Methods

class Fixed
get_child_position(widget: Widget) tuple[float, float]

Retrieves the translation transformation of the given child GtkWidget in the GtkFixed.

See also: get_child_transform.

Parameters:

widget – a child of fixed

get_child_transform(widget: Widget) Transform | None

Retrieves the transformation for widget set using set_child_transform().

Parameters:

widget – a GtkWidget, child of fixed

move(widget: Widget, x: float, y: float) None

Sets a translation transformation to the given x and y coordinates to the child widget of the GtkFixed.

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 to widget and calls set_transform.

Parameters:
  • widget – a GtkWidget, child of fixed

  • transform – the transformation assigned to widget to reset widget’s transform

Fields

class Fixed
parent_instance