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
.
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_popup
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 moreimpl Copy 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