Struct ambient_ui::layout::MeasureAbsolutePosition
source · pub struct MeasureAbsolutePosition {
pub inner: Element,
pub on_change: Cb<dyn Fn(Vec3) + Sync + Send + 'static>,
}
Expand description
Measures the absolute position of its inner element and calls the callback when it changes.
Fields§
§inner: Element
The element to measure.
on_change: Cb<dyn Fn(Vec3) + Sync + Send + 'static>
The callback to call when the absolute position changes.
Implementations§
Trait Implementations§
source§impl Clone for MeasureAbsolutePosition
impl Clone for MeasureAbsolutePosition
source§fn clone(&self) -> MeasureAbsolutePosition
fn clone(&self) -> MeasureAbsolutePosition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MeasureAbsolutePosition
impl Debug for MeasureAbsolutePosition
Auto Trait Implementations§
impl !RefUnwindSafe for MeasureAbsolutePosition
impl Send for MeasureAbsolutePosition
impl Sync for MeasureAbsolutePosition
impl Unpin for MeasureAbsolutePosition
impl !UnwindSafe for MeasureAbsolutePosition
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentExt for Twhere
T: ElementComponent + 'static,
impl<T> ElementComponentExt for Twhere
T: ElementComponent + 'static,
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.