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§
source§impl 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