[][src]Enum glerminal::menu_systems::MenuPosition

pub enum MenuPosition {
    Relative(i32i32),
    RelativeToLast(i32i32),
    Absolute(u32u32),
}

Represents the position of a menu item in the menu

Variants

Relative(i32i32)

Relative to the menu's default positioning. (Relative(0, 0) = default position)

RelativeToLast(i32i32)

(Default) Relative to the last item in the menu (RelativeToLast(0, 0) = next to last item)

Absolute(u32u32)

Absolute position for the menu item (Absolute(0, 0) = top-left corner of the screen)

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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