pub trait Modifiers: View + Sized {
Show 16 methods fn padding(self, param: impl Into<PaddingParam>) -> Padding<Self> { ... } fn tap<F: Fn(&mut Context) + 'static>(self, f: F) -> Tap<Self, F> { ... } fn background<BG: View>(self, background: BG) -> Background<Self, BG> { ... } fn geom<F: Fn(&mut Context, LocalSize) + 'static>(
        self,
        f: F
    ) -> Geom<Self, F> { ... } fn drag<F: Fn(&mut Context, LocalOffset, GestureState, Option<MouseButton>) + 'static>(
        self,
        f: F
    ) -> Drag<Self, F> { ... } fn offset<Off: Into<LocalOffset>>(self, offset: Off) -> Offset<Self> { ... } fn size<Sz: Into<LocalSize>>(self, size: Sz) -> Size<Self> { ... } fn command<F: Fn(&mut Context) + 'static>(
        self,
        name: &str,
        key: Option<HotKey>,
        f: F
    ) -> Command<Self, F> { ... } fn command_group<T: CommandTuple>(self, cmds: T) -> CommandGroup<Self, T> { ... } fn key<F: Fn(&mut Context, Key) + 'static>(self, f: F) -> KeyView<Self, F> { ... } fn role(self, role: Role) -> RoleView<Self> { ... } fn window_title(self, title: &str) -> TitleView<Self> { ... } fn fullscreen(self) -> FullscreenView<Self> { ... } fn env<E: Clone + 'static>(self, value: E) -> SetenvView<Self, E> { ... } fn anim<F: Fn(&mut Context, f32) + 'static>(
        self,
        func: F
    ) -> AnimView<Self, F> { ... } fn flex(self) -> Flex<Self> { ... }
}

Provided Methods

Adds space around a view. Can be either Auto or Px(number_of_pixels)

Calls a function in response to a tap.

Puts a view behind another. The background view inherits the size of the view.

Calls a function with the view’s geometry after layout runs. Currently only the view’s size is returned.

Calls a function in response to a drag.

Applies an offset to the view in local space.

Constrains the size of a view.

Adds a menu command.

Adds a group of menu commands.

Responds to keyboard events

Specify an accessiblity role.

Specify the title of the window.

Make the window full screen.

Add an environment value.

Calls a closure after rendering with context and delta time.

Indicates that this item can expand within a stack.

Implementors