pub struct Wrapper<Message, Content, L, R>{ /* private fields */ }Expand description
Adds to a Widget padding and border.
Implementations§
Trait Implementations§
Source§impl<Message, Content, L, R> Widget<Message> for Wrapper<Message, Content, L, R>
impl<Message, Content, L, R> Widget<Message> for Wrapper<Message, Content, L, R>
type LayoutInfo = WrapperLayout<L>
type RenderInfo = R
Source§fn render(
&self,
position: Position,
layout: &Self::LayoutInfo,
context: &mut dyn RenderContext,
) -> Result<Self::RenderInfo>
fn render( &self, position: Position, layout: &Self::LayoutInfo, context: &mut dyn RenderContext, ) -> Result<Self::RenderInfo>
Renders itself to the given context
based on the state.
Source§fn layout(&self, available_size: Size) -> Self::LayoutInfo
fn layout(&self, available_size: Size) -> Self::LayoutInfo
Calculates and returns layout information
based on the available size.
Source§fn on_event(
&mut self,
event: &Event,
render_info: &Self::RenderInfo,
event_context: &mut dyn EventContext<Message>,
) -> EventStatus
fn on_event( &mut self, event: &Event, render_info: &Self::RenderInfo, event_context: &mut dyn EventContext<Message>, ) -> EventStatus
Handled the given event.
Auto Trait Implementations§
impl<Message, Content, L, R> Freeze for Wrapper<Message, Content, L, R>where
Content: Freeze,
impl<Message, Content, L, R> RefUnwindSafe for Wrapper<Message, Content, L, R>where
Content: RefUnwindSafe,
Message: RefUnwindSafe,
impl<Message, Content, L, R> Send for Wrapper<Message, Content, L, R>
impl<Message, Content, L, R> Sync for Wrapper<Message, Content, L, R>
impl<Message, Content, L, R> Unpin for Wrapper<Message, Content, L, R>
impl<Message, Content, L, R> UnwindSafe for Wrapper<Message, Content, L, R>where
Content: UnwindSafe,
Message: UnwindSafe,
Blanket Implementations§
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