Enum conrod::Place [] [src]

pub enum Place {
    Middle,
    TopLeft,
    TopRight,
    BottomLeft,
    BottomRight,
    MidTop,
    MidBottom,
    MidLeft,
    MidRight,
}

Place the widget at a position on some other widget.

Variants

Middle

Centre of the Widget.

TopLeft

Top left of the Widget - pad_top + pad_left.

TopRight

Top right of the Widget - pad_top - pad_right.

BottomLeft

Bottom left of the Widget + pad_bottom + pad_left.

BottomRight

Bottom right of the Widget + pad_bottom - pad_right.

MidTop

Top centre of the Widget - pad_top.

MidBottom

Bottom centre of the Widget + pad_bottom.

MidLeft

Left centre of the Widget + pad_left.

MidRight

Right centre of the Widget - pad_right.

Methods

impl Place
[src]

fn within(&self, target_dim: Dimensions, dim: Dimensions) -> Point

Place the given dim within the target_dim.

Trait Implementations

impl Eq for Place
[src]

impl PartialEq for Place
[src]

fn eq(&self, __arg_0: &Place) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Decodable for Place
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Place, __D::Error>

impl Encodable for Place
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Debug for Place
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Place
[src]

fn clone(&self) -> Place

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for Place
[src]