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
Required methods
Retrieves the transformation for widget
set using
set_child_transform()
.
widget
a Widget
, child of self
Returns
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