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]
&mut self,
from: ItemIdx,
to: ItemIdx,
at: MoveAction
) -> Vec<LayoutAction>
pub fn navigate(
&self,
from: ItemIdx,
dir: Direction,
cursor: Option<Position>
) -> Option<ItemIdx>
[src]
&self,
from: ItemIdx,
dir: Direction,
cursor: Option<Position>
) -> Option<ItemIdx>
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,