pub struct Areas {
pub state: Area,
pub status: Area,
pub input: Area,
pub purpose: Option<Area>,
pub pos_idx: usize,
pub nb_pos: usize,
}
Expand description
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: Area
status: Area
input: Area
purpose: Option<Area>
pos_idx: usize
nb_pos: usize
Implementations
sourceimpl Areas
impl Areas
sourcepub fn create(
present_panels: &mut [Panel],
insertion_idx: usize,
screen: Screen,
with_preview: bool
) -> Self
pub fn create(
present_panels: &mut [Panel],
insertion_idx: usize,
screen: Screen,
with_preview: bool
) -> Self
compute an area for a new panel which will be inserted
pub fn resize_all(panels: &mut [Panel], screen: Screen, with_preview: bool)
pub fn is_first(&self) -> bool
pub fn is_last(&self) -> bool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Areas
impl Send for Areas
impl Sync for Areas
impl Unpin for Areas
impl UnwindSafe for Areas
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more