Trait gtk4::prelude::FixedExt[][src]

pub trait FixedExt: 'static {
    fn child_position<P: IsA<Widget>>(&self, widget: &P) -> (f64, f64);
fn child_transform<P: IsA<Widget>>(&self, widget: &P) -> Option<Transform>;
fn move_<P: IsA<Widget>>(&self, widget: &P, x: f64, y: f64);
fn put<P: IsA<Widget>>(&self, widget: &P, x: f64, y: f64);
fn remove<P: IsA<Widget>>(&self, widget: &P);
fn set_child_transform<P: IsA<Widget>>(
        &self,
        widget: &P,
        transform: Option<&Transform>
    ); }
Expand description

Trait containing all Fixed methods.

Implementors

Fixed

Required methods

Retrieves the translation transformation of the given child Widget in the Fixed.

See also: child_transform().

widget

a child of self

Returns
x

the horizontal position of the widget

y

the vertical position of the widget

Retrieves the transformation for widget set using set_child_transform().

widget

a Widget, child of self

Returns

a gsk::Transform

Adds a widget to a Fixed at the given position.

widget

the widget to add

x

the horizontal position to place the widget at

y

the vertical position to place the widget at

Removes a child from self.

widget

the child widget to remove

Sets the transformation for widget.

This is a convenience function that retrieves the FixedLayoutChild instance associated to widget and calls FixedLayoutChild::set_transform().

widget

a Widget, child of self

transform

the transformation assigned to widget to reset widget’s transform

Implementors