Struct native_windows_gui::PopupMenuFlags [−][src]
pub struct PopupMenuFlags { /* fields omitted */ }
Expand description
Menu flags to use with the Menu::popup_with_flags
function.
Using PopupMenuFlags::empty
is the same as ALIGN_LEFT|ALIGN_TOP|LEFT_BUTTON
Aligment flags:
- ALIGN_LEFT: Positions the shortcut menu so that its left side is aligned with the coordinate specified by the x parameter.
- ALIGN_H_CENTER: Centers the shortcut menu horizontally relative to the coordinate specified by the x parameter.
- ALIGN_RIGHT: Positions the shortcut menu so that its right side is aligned with the coordinate specified by the x parameter.
- ALIGN_BOTTOM: Positions the shortcut menu so that its bottom side is aligned with the coordinate specified by the y parameter.
- ALIGN_TOP: Positions the shortcut menu so that its top side is aligned with the coordinate specified by the y parameter.
- ALIGN_V_CENTER: Centers the shortcut menu vertically relative to the coordinate specified by the y parameter.
Button flags:
- LEFT_BUTTON: The user can select menu items with only the left mouse button.
- RIGHT_BUTTON: The user can select menu items with both the left AND right mouse buttons.
Animations flags:
- ANIMATE_NONE: Displays menu without animation.
- ANIMATE_RIGHT_TO_LEFT: Animates the menu from right to left.
- ANIMATE_LEFT_TO_RIGHT: Animates the menu from left to right.
- ANIMATE_BOTTOM_TO_TOP: Animates the menu from bottom to top.
- ANIMATE_TOP_TO_BOTTOM: Animates the menu from top to bottom.
Implementations
Returns an empty set of flags
Returns the set containing all flags.
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Returns true
if there are flags common to both self
and other
.
Returns true
all of the flags in other
are contained within self
.
Inserts the specified flags in-place.
Removes the specified flags in-place.
Toggles the specified flags in-place.
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
Returns the intersection between the two sets of flags.
type Output = PopupMenuFlags
type Output = PopupMenuFlags
The resulting type after applying the &
operator.
Disables all flags disabled in the set.
Returns the union of the two sets of flags.
type Output = PopupMenuFlags
type Output = PopupMenuFlags
The resulting type after applying the |
operator.
Adds the set of flags.
Returns the left flags, but with all the right flags toggled.
type Output = PopupMenuFlags
type Output = PopupMenuFlags
The resulting type after applying the ^
operator.
Toggles the set of flags.
Extends a collection with the contents of an iterator. Read more
extend_one
)Extends a collection with exactly one element.
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Creates a value from an iterator. Read more
Returns the complement of this set of flags.
type Output = PopupMenuFlags
type Output = PopupMenuFlags
The resulting type after applying the !
operator.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the set difference of the two sets of flags.
type Output = PopupMenuFlags
type Output = PopupMenuFlags
The resulting type after applying the -
operator.
Disables all flags enabled in the set.
Auto Trait Implementations
impl RefUnwindSafe for PopupMenuFlags
impl Send for PopupMenuFlags
impl Sync for PopupMenuFlags
impl Unpin for PopupMenuFlags
impl UnwindSafe for PopupMenuFlags
Blanket Implementations
Mutably borrows from an owned value. Read more