Enum egui::containers::popup::PopupCloseBehavior
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)