Struct termit::widget::PlacedWidget
source · pub struct PlacedWidget<W> {
pub content: W,
pub placement: AnchorPlacement,
}Expand description
Placement widget decorator
Constrains the placed_widgets’s scope.
Wraps widgets that implement AnchorPlacementEnabled.
Fields§
§content: W§placement: AnchorPlacementImplementations§
source§impl<W> PlacedWidget<W>
impl<W> PlacedWidget<W>
pub fn new(content: W) -> PlacedWidget<W>
Trait Implementations§
source§impl<W> AnchorPlaced for PlacedWidget<W>
impl<W> AnchorPlaced for PlacedWidget<W>
type Placed = PlacedWidget<W>
source§impl<W: Default> Default for PlacedWidget<W>
impl<W: Default> Default for PlacedWidget<W>
source§fn default() -> PlacedWidget<W>
fn default() -> PlacedWidget<W>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<W> RefUnwindSafe for PlacedWidget<W>where W: RefUnwindSafe,
impl<W> Send for PlacedWidget<W>where W: Send,
impl<W> Sync for PlacedWidget<W>where W: Sync,
impl<W> Unpin for PlacedWidget<W>where W: Unpin,
impl<W> UnwindSafe for PlacedWidget<W>where W: 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
source§impl<'a, T, M, A> WidgetExt<M, A> for Twhere
A: AppEvent,
T: Widget<M, A>,
impl<'a, T, M, A> WidgetExt<M, A> for Twhere A: AppEvent, T: Widget<M, A>,
source§fn bind_with(
self,
loader: impl Fn(&mut T, &M) + 'static,
saver: impl Fn(&T, &mut M) + 'static
) -> WidgetBinder<T, M, A>
fn bind_with( self, loader: impl Fn(&mut T, &M) + 'static, saver: impl Fn(&T, &mut M) + 'static ) -> WidgetBinder<T, M, A>
Decorate the given widget with a loader and saver. Read more
fn replace_with( self, loader: impl Fn(T, &M) -> T + 'static ) -> WidgetBinder<T, M, A>where T: Default,
source§fn load_with(
self,
loader: impl Fn(&mut T, &M) + 'static
) -> WidgetBinder<T, M, A>
fn load_with( self, loader: impl Fn(&mut T, &M) + 'static ) -> WidgetBinder<T, M, A>
A variation on
bind_with, only a loader