pub struct ClosableTag {
pub close: Atomic<bool>,
}Available on crate feature
egui only.Expand description
A tag to mark a container as closable.
Usually set via UiBuilder::closable.
Ui::close will find the closest parent ClosableTag and set its close field to true.
Use Ui::should_close to check if close has been called.
Fields§
§close: Atomic<bool>Implementations§
Source§impl ClosableTag
impl ClosableTag
pub const NAME: &'static str = "egui_close_tag"
Sourcepub fn should_close(&self) -> bool
pub fn should_close(&self) -> bool
Returns true if ClosableTag::set_close has been called.
Trait Implementations§
Source§impl Debug for ClosableTag
impl Debug for ClosableTag
Source§impl Default for ClosableTag
impl Default for ClosableTag
Source§fn default() -> ClosableTag
fn default() -> ClosableTag
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ClosableTag
impl Forget for ClosableTag
impl Move for ClosableTag
impl RefUnwindSafe for ClosableTag
impl Send for ClosableTag
impl Sync for ClosableTag
impl Unpin for ClosableTag
impl UnsafeUnpin for ClosableTagwhere
Align1<u8>: UnsafeUnpin,
impl UnwindSafe for ClosableTagwhere
Align1<u8>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more