pub trait ViewExt: Sized {
// Provided methods
fn modifier(self, modifier: Modifier) -> Modified<Self> { ... }
fn padding(self, insets: Insets) -> Modified<Self> { ... }
fn position(self, position: Vec2<f64>) -> Modified<Self> { ... }
fn frame(self, frame: Frame) -> Modified<Self> { ... }
fn on_appear(
self,
action: impl Fn() + 'static,
) -> Handler<Self, impl Fn(Event)> { ... }
fn on_disappear(
self,
action: impl Fn() + 'static,
) -> Handler<Self, impl Fn(Event)> { ... }
}Provided Methods§
fn modifier(self, modifier: Modifier) -> Modified<Self>
fn padding(self, insets: Insets) -> Modified<Self>
fn position(self, position: Vec2<f64>) -> Modified<Self>
fn frame(self, frame: Frame) -> Modified<Self>
fn on_appear(self, action: impl Fn() + 'static) -> Handler<Self, impl Fn(Event)>
fn on_disappear( self, action: impl Fn() + 'static, ) -> Handler<Self, impl Fn(Event)>
Object Safety§
This trait is not object safe.