pub enum MenuPosition {
Relative(i32, i32),
RelativeToLast(i32, i32),
Absolute(u32, u32),
}
Represents the position of a menu item in the menu
Relative to the menu's default positioning. (Relative(0, 0) = default position)
(Default) Relative to the last item in the menu (RelativeToLast(0, 0) = next to last item)
Absolute position for the menu item (Absolute(0, 0) = top-left corner of the screen)
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static