pub enum PopupCloseBehavior {
CloseOnClick,
CloseOnClickOutside,
IgnoreClicks,
}
Expand description
Determines popup’s close behavior
Variants§
CloseOnClick
Popup will be closed on click anywhere, inside or outside the popup.
It is used in crate::ComboBox
and in crate::containers::menu
s.
CloseOnClickOutside
Popup will be closed if the click happened somewhere else but in the popup’s body
IgnoreClicks
Clicks will be ignored. Popup might be closed manually by calling crate::Memory::close_all_popups
or by pressing the escape button
Trait Implementations§
Source§impl Clone for PopupCloseBehavior
impl Clone for PopupCloseBehavior
Source§fn clone(&self) -> PopupCloseBehavior
fn clone(&self) -> PopupCloseBehavior
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PopupCloseBehavior
impl Debug for PopupCloseBehavior
Source§impl Default for PopupCloseBehavior
impl Default for PopupCloseBehavior
Source§fn default() -> PopupCloseBehavior
fn default() -> PopupCloseBehavior
Returns the “default value” for a type. Read more
Source§impl PartialEq for PopupCloseBehavior
impl PartialEq for PopupCloseBehavior
impl Copy for PopupCloseBehavior
impl Eq for PopupCloseBehavior
impl StructuralPartialEq for PopupCloseBehavior
Auto Trait Implementations§
impl Freeze for PopupCloseBehavior
impl RefUnwindSafe for PopupCloseBehavior
impl Send for PopupCloseBehavior
impl Sync for PopupCloseBehavior
impl Unpin for PopupCloseBehavior
impl UnwindSafe for PopupCloseBehavior
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more