[go: up one dir, main page]

FixedExt

Trait FixedExt 

Source
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§

Source

fn child_position(&self, widget: &impl IsA<Widget>) -> (f64, f64)

Source

fn child_transform(&self, widget: &impl IsA<Widget>) -> Option<Transform>

Source

fn move_(&self, widget: &impl IsA<Widget>, x: f64, y: f64)

Source

fn put(&self, widget: &impl IsA<Widget>, x: f64, y: f64)

Source

fn remove(&self, widget: &impl IsA<Widget>)

Source

fn set_child_transform( &self, widget: &impl IsA<Widget>, transform: Option<&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.

Implementors§

Source§

impl<O: IsA<Fixed>> FixedExt for O