pub trait FixedExt: IsA<Fixed> + Sealed + 'static {
// Provided methods
fn child_position(&self, widget: &impl IsA<Widget>) -> (f64, f64) { ... }
fn child_transform(&self, widget: &impl IsA<Widget>) -> Option<Transform> { ... }
fn move_(&self, widget: &impl IsA<Widget>, x: f64, y: f64) { ... }
fn put(&self, widget: &impl IsA<Widget>, x: f64, y: f64) { ... }
fn remove(&self, widget: &impl IsA<Widget>) { ... }
fn set_child_transform(
&self,
widget: &impl IsA<Widget>,
transform: Option<&Transform>
) { ... }
}
Provided Methods§
sourcefn child_transform(&self, widget: &impl IsA<Widget>) -> Option<Transform>
fn child_transform(&self, widget: &impl IsA<Widget>) -> Option<Transform>
fn move_(&self, widget: &impl IsA<Widget>, x: f64, y: f64)
sourcefn set_child_transform(
&self,
widget: &impl IsA<Widget>,
transform: Option<&Transform>
)
fn set_child_transform( &self, widget: &impl IsA<Widget>, transform: Option<&Transform> )
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
Object Safety§
This trait is not object safe.