Fields
rows: Vec<(Point, Row)>
Rows together with their offsets from the top left
size: Size
Total size of the view
Implementations
sourceimpl View
impl View
pub fn new(rows: Vec<(f64, Row)>) -> View
Finds the first button that covers the specified point relative to view’s position’s origin. Returns also (row, column) index.
pub fn get_size(&self) -> Size
sourcepub fn get_rows(&self) -> &Vec<(Point, Row)>
pub fn get_rows(&self) -> &Vec<(Point, Row)>
Returns positioned rows, with appropriate x offsets (centered)
sourcepub fn calculate_super_size(views: Vec<&View>) -> Size
pub fn calculate_super_size(views: Vec<&View>) -> Size
Returns a size which contains all the views if they are all centered on the same point.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnwindSafe for View
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