[][src]Struct unsegen::container::ContainerManager

pub struct ContainerManager<'a, C: ContainerProvider> { /* fields omitted */ }

Stores the layout of containers and manages and has a concept of an active container.

In some sense this is the analogon of a "window manager" for containers.

Implementations

impl<'a, C: ContainerProvider> ContainerManager<'a, C>[src]

pub fn from_layout(layout_root: Box<dyn Layout<C> + 'a>) -> Self[src]

Create a ContainerManager from a given Layout. Initially, the default container is active.

pub fn draw(
    &self,
    window: Window<'_>,
    provider: &mut C,
    border_style: StyleModifier,
    hints: RenderingHints
)
[src]

Draw all containers and separating lines onto the provided window.

Use border_style to change how the lines will be drawn.

hints will be passed on to containers, with the exception that only the currently active container can have an active hint.

pub fn navigatable<'b, 'c>(
    &'b mut self,
    provider: &'c mut C
) -> NavigatableContainerManager<'b, 'c, 'a, C>
[src]

Allow the active container to be changed using a NavigateBehavior.

pub fn active_container_behavior<'b, 'c, 'd>(
    &'b mut self,
    provider: &'c mut C,
    parameters: &'d mut C::Parameters
) -> ActiveContainerBehavior<'b, 'c, 'd, 'a, C>
[src]

Behavior that passes all input to the currently active container.

pub fn active(&self) -> C::Index[src]

Get the index of the currently active container.

pub fn set_active(&mut self, i: C::Index)[src]

Set the currently active container using its Index.

Auto Trait Implementations

impl<'a, C> !RefUnwindSafe for ContainerManager<'a, C>

impl<'a, C> !Send for ContainerManager<'a, C>

impl<'a, C> !Sync for ContainerManager<'a, C>

impl<'a, C> Unpin for ContainerManager<'a, C> where
    <C as ContainerProvider>::Index: Unpin

impl<'a, C> !UnwindSafe for ContainerManager<'a, C>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.