Enum droom_ui::dialog::DialogPos [] [src]

pub enum DialogPos {
    At(i32),
    Current,
    Center,
    CenterParent,
    MousePos,
    Left,
    Right,
    Top,
    Bottom,
}

The position a dialog should be positioned.

Variants

Positions the element at the specified coordinate.

Use the current position of the dialog. Not valid for menus. This should be used most of the time.

Centers the element on the screen

Centralizes the dialog relative to its parent.

Positions the element on the mouse cursor.

Positions the element on the left corner of the screen. Valid only for the x axis.

Positions the element on the right corner of the screen. Valid only for the x axis.

Positions the element on the top of the screen. Valid only for the y axis.

Positions the element on the bottom of the screen. Valid only for the y axis.

Trait Implementations

impl Debug for DialogPos
[src]

Formats the value using the given formatter.

impl Copy for DialogPos
[src]

impl Clone for DialogPos
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for DialogPos
[src]

impl PartialEq for DialogPos
[src]

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

This method tests for !=.