[][src]Struct pushrod::core::layout_manager::LayoutManagerCoordinates

pub struct LayoutManagerCoordinates {
    pub widget_origins: Vec<Point>,
    pub widget_sizes: Vec<Size>,
    pub widget_positions: Vec<Point>,
}

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

impl PartialEq<LayoutManagerCoordinates> for LayoutManagerCoordinates[src]

impl Default for LayoutManagerCoordinates[src]

impl Clone for LayoutManagerCoordinates[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for LayoutManagerCoordinates[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.