Struct pushrod::core::layout_manager::LayoutManagerCoordinates
source · pub struct LayoutManagerCoordinates {
pub widget_origins: Vec<Point>,
pub widget_sizes: Vec<Size>,
pub widget_positions: Vec<Point>,
}Expand description
This structure is sent to the LayoutManager at the time do_layout is called. This
structure contains the layout of all of the Widgets by origin, the sizes of each of the
Widgets, and their positions relative to the layout manager. The widget_positions do not
need to be actual positions in points - they can be used to denote the positions within the
layout they are to occur - for instance, 0x0, 0x1, 1x0 and 1x1 in a layout, if the layout were
a grid layout.
Fields§
§widget_origins: Vec<Point>§widget_sizes: Vec<Size>§widget_positions: Vec<Point>Trait Implementations§
source§impl Clone for LayoutManagerCoordinates
impl Clone for LayoutManagerCoordinates
source§fn clone(&self) -> LayoutManagerCoordinates
fn clone(&self) -> LayoutManagerCoordinates
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for LayoutManagerCoordinates
impl Debug for LayoutManagerCoordinates
source§impl Default for LayoutManagerCoordinates
impl Default for LayoutManagerCoordinates
source§fn default() -> LayoutManagerCoordinates
fn default() -> LayoutManagerCoordinates
Returns the “default value” for a type. Read more
source§impl PartialEq for LayoutManagerCoordinates
impl PartialEq for LayoutManagerCoordinates
source§fn eq(&self, other: &LayoutManagerCoordinates) -> bool
fn eq(&self, other: &LayoutManagerCoordinates) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for LayoutManagerCoordinates
Auto Trait Implementations§
impl Freeze for LayoutManagerCoordinates
impl RefUnwindSafe for LayoutManagerCoordinates
impl Send for LayoutManagerCoordinates
impl Sync for LayoutManagerCoordinates
impl Unpin for LayoutManagerCoordinates
impl UnwindSafe for LayoutManagerCoordinates
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more