pub trait FixedExt: IsA<Fixed> + '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>
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.