Trait ElementExt

Source
pub trait ElementExt: Any {
Show 16 methods // Provided methods fn into_element(self) -> Element where Self: Sized + Into<Element> { ... } fn changed(&self, _other: &Rc<dyn ElementExt>) -> bool { ... } fn diff(&self, _other: &Rc<dyn ElementExt>) -> DiffModifies { ... } fn layout(&self) -> Cow<'_, LayoutData> { ... } fn accessibility(&self) -> Cow<'_, AccessibilityData> { ... } fn effect(&self) -> Option<Cow<'_, EffectData>> { ... } fn style(&self) -> Cow<'_, StyleState> { ... } fn text_style(&self) -> Cow<'_, TextStyleData> { ... } fn layer(&self) -> Layer { ... } fn events_handlers( &self, ) -> Option<Cow<'_, FxHashMap<EventName, EventHandlerType>>> { ... } fn measure( &self, _context: LayoutContext<'_>, ) -> Option<(Size2D, Rc<dyn Any>)> { ... } fn should_hook_measurement(&self) -> bool { ... } fn should_measure_inner_children(&self) -> bool { ... } fn is_point_inside(&self, context: EventMeasurementContext<'_>) -> bool { ... } fn clip(&self, _context: ClipContext<'_>) { ... } fn render(&self, _context: RenderContext<'_>) { ... }
}

Provided Methods§

Source

fn into_element(self) -> Element
where Self: Sized + Into<Element>,

Source

fn changed(&self, _other: &Rc<dyn ElementExt>) -> bool

Source

fn diff(&self, _other: &Rc<dyn ElementExt>) -> DiffModifies

Source

fn layout(&self) -> Cow<'_, LayoutData>

Source

fn accessibility(&self) -> Cow<'_, AccessibilityData>

Source

fn effect(&self) -> Option<Cow<'_, EffectData>>

Source

fn style(&self) -> Cow<'_, StyleState>

Source

fn text_style(&self) -> Cow<'_, TextStyleData>

Source

fn layer(&self) -> Layer

Source

fn events_handlers( &self, ) -> Option<Cow<'_, FxHashMap<EventName, EventHandlerType>>>

Source

fn measure(&self, _context: LayoutContext<'_>) -> Option<(Size2D, Rc<dyn Any>)>

Source

fn should_hook_measurement(&self) -> bool

Source

fn should_measure_inner_children(&self) -> bool

Source

fn is_point_inside(&self, context: EventMeasurementContext<'_>) -> bool

Source

fn clip(&self, _context: ClipContext<'_>)

Source

fn render(&self, _context: RenderContext<'_>)

Implementors§