Trait nuit_core::ViewExt

source ·
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§

source

fn modifier(self, modifier: Modifier) -> Modified<Self>

source

fn padding(self, insets: Insets) -> Modified<Self>

source

fn position(self, position: Vec2<f64>) -> Modified<Self>

source

fn frame(self, frame: Frame) -> Modified<Self>

source

fn on_appear(self, action: impl Fn() + 'static) -> Handler<Self, impl Fn(Event)>

source

fn on_disappear( self, action: impl Fn() + 'static, ) -> Handler<Self, impl Fn(Event)>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> ViewExt for T
where T: View,