pub struct GridLayout {
pub index: usize,
pub rect: BBox,
pub x_axes: Vec<AxisLayout>,
pub y_axes: Vec<AxisLayout>,
}Expand description
The layout of one cartesian grid.
Fields§
§index: usizeThe index of the grid in the option.
rect: BBoxThe rectangle the grid occupies, in canvas pixels.
x_axes: Vec<AxisLayout>The x-axes of the grid.
y_axes: Vec<AxisLayout>The y-axes of the grid.
Implementations§
Source§impl GridLayout
Inherent implementation of GridLayout.
impl GridLayout
Inherent implementation of GridLayout.
Sourcepub fn x_axis(&self, index: usize) -> Option<&AxisLayout>
pub fn x_axis(&self, index: usize) -> Option<&AxisLayout>
Source§impl GridLayout
impl GridLayout
pub fn get_index(&self) -> usize
pub fn get_mut_index(&mut self) -> &mut usize
pub fn set_index(&mut self, val: usize) -> &mut Self
pub fn get_rect(&self) -> BBox
pub fn get_mut_rect(&mut self) -> &mut BBox
pub fn set_rect(&mut self, val: BBox) -> &mut Self
pub fn get_x_axes(&self) -> &Vec<AxisLayout>
pub fn get_mut_x_axes(&mut self) -> &mut Vec<AxisLayout>
pub fn set_x_axes(&mut self, val: Vec<AxisLayout>) -> &mut Self
pub fn get_y_axes(&self) -> &Vec<AxisLayout>
pub fn get_mut_y_axes(&mut self) -> &mut Vec<AxisLayout>
pub fn set_y_axes(&mut self, val: Vec<AxisLayout>) -> &mut Self
Trait Implementations§
Source§impl Clone for GridLayout
impl Clone for GridLayout
Source§impl Debug for GridLayout
impl Debug for GridLayout
Source§impl PartialEq for GridLayout
impl PartialEq for GridLayout
impl StructuralPartialEq for GridLayout
Auto Trait Implementations§
impl Freeze for GridLayout
impl RefUnwindSafe for GridLayout
impl Send for GridLayout
impl Sync for GridLayout
impl Unpin for GridLayout
impl UnsafeUnpin for GridLayout
impl UnwindSafe for GridLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more