[−][src]Struct unsegen::container::ContainerManager
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]
&self,
window: Window<'_>,
provider: &mut C,
border_style: StyleModifier,
hints: RenderingHints
)
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]
&'b mut self,
provider: &'c mut C
) -> NavigatableContainerManager<'b, 'c, 'a, C>
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]
&'b mut self,
provider: &'c mut C,
parameters: &'d mut C::Parameters
) -> ActiveContainerBehavior<'b, 'c, 'd, 'a, C>
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,
<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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,