[][src]Struct broot::display::Areas

pub struct Areas {
    pub state: Area,
    pub status: Area,
    pub input: Area,
    pub purpose: Option<Area>,
    pub pos_idx: usize,
    pub nb_pos: usize,
}

the areas of the various parts of a panel. It's also where a state usually checks how many panels there are, and their respective positions

Fields

state: Areastatus: Areainput: Areapurpose: Option<Area>pos_idx: usizenb_pos: usize

Implementations

impl Areas[src]

pub fn create(
    present_panels: &mut [Panel],
    mut insertion_idx: usize,
    screen: Screen,
    with_preview: bool
) -> Result<Self, ProgramError>
[src]

compute an area for a new panel which will be inserted

pub fn resize_all(
    panels: &mut [Panel],
    screen: Screen,
    with_preview: bool
) -> Result<(), ProgramError>
[src]

pub fn is_first(&self) -> bool[src]

pub fn is_last(&self) -> bool[src]

Trait Implementations

impl Clone for Areas[src]

impl Debug for Areas[src]

Auto Trait Implementations

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> Pointable for T

type Init = T

The type for initializers.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,