Enum masonry::InternalLifeCycle
source · pub enum InternalLifeCycle {
RouteWidgetAdded,
RouteFocusChanged {
old: Option<WidgetId>,
new: Option<WidgetId>,
},
RouteDisabledChanged,
ParentWindowOrigin {
mouse_pos: Option<LogicalPosition<f64>>,
},
}
Expand description
Variants§
RouteWidgetAdded
Used to route the WidgetAdded
event to the required widgets.
RouteFocusChanged
Used to route the FocusChanged
event.
Fields
RouteDisabledChanged
Used to route the DisabledChanged
event to the required widgets.
ParentWindowOrigin
The parents widget origin in window coordinate space has changed.
Fields
§
mouse_pos: Option<LogicalPosition<f64>>
Implementations§
source§impl InternalLifeCycle
impl InternalLifeCycle
Whether this event should be sent to widgets which are currently not visible and not accessible.
If a widget changes which children are hidden
it must call children_changed
.
For a more detailed explanation of the hidden
state, see Event::should_propagate_to_hidden
.
Trait Implementations§
source§impl Clone for InternalLifeCycle
impl Clone for InternalLifeCycle
source§fn clone(&self) -> InternalLifeCycle
fn clone(&self) -> InternalLifeCycle
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 moreAuto Trait Implementations§
impl Freeze for InternalLifeCycle
impl RefUnwindSafe for InternalLifeCycle
impl Send for InternalLifeCycle
impl Sync for InternalLifeCycle
impl Unpin for InternalLifeCycle
impl UnwindSafe for InternalLifeCycle
Blanket Implementations§
source§impl<T> AsAny for Twhere
T: Any,
impl<T> AsAny for Twhere
T: Any,
source§fn as_dyn_any(&self) -> &(dyn Any + 'static)
fn as_dyn_any(&self) -> &(dyn Any + 'static)
Return self.
source§fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
Return self.
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