Struct fwm::Layout[][src]

pub struct Layout { /* fields omitted */ }

Implementations

impl Layout[src]

pub fn new_in_bounds(bounds: WindowBounds) -> Self[src]

pub fn windows<'a>(&'a self) -> impl Iterator<Item = &'a Window>[src]

pub fn resize(&mut self, bounds: WindowBounds) -> Vec<LayoutAction>[src]

pub fn parent_container(&self, item: ItemIdx) -> Option<usize>[src]

pub fn topological_next(&self, item: ItemIdx) -> Option<ItemIdx>[src]

pub fn topological_last(&self) -> ItemIdx[src]

pub fn destroy(&mut self, item: ItemIdx) -> Vec<LayoutAction>[src]

pub fn is_ancestor(&self, ancestor: ItemIdx, descendant: ItemIdx) -> bool[src]

pub fn alloc_window(&mut self) -> usize[src]

pub fn move_(
    &mut self,
    from: ItemIdx,
    to: ItemIdx,
    at: MoveAction
) -> Vec<LayoutAction>
[src]

pub fn navigate(
    &self,
    from: ItemIdx,
    dir: Direction,
    cursor: Option<Position>
) -> Option<ItemIdx>
[src]

pub fn children(&self, container: usize) -> &[(f64, ItemIdx)][src]

pub fn nearest_container(&self, item: ItemIdx) -> usize[src]

pub fn bounds(&self, item: ItemIdx) -> WindowBounds[src]

Trait Implementations

impl Clone for Layout[src]

impl Debug for Layout[src]

impl<'de> Deserialize<'de> for Layout[src]

impl Serialize for Layout[src]

Auto Trait Implementations

impl RefUnwindSafe for Layout

impl Send for Layout

impl Sync for Layout

impl Unpin for Layout

impl UnwindSafe for Layout

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.