pub enum SizedAtomKind<'a> {
Empty {
size: Option<Vec2>,
},
Text(Arc<Galley>),
Image {
image: Image<'a>,
size: Vec2,
},
Paint {
paint: Arc<dyn Fn(&Ui, AtomPaintArgs) + 'a>,
size: Vec2,
},
Container(Box<SizedContainerAtom<'a>>),
Widget(Box<SizedWidgetAtom<'a>>),
}Available on crate feature
egui only.Expand description
A sized crate::AtomKind.
Variants§
Empty
Text(Arc<Galley>)
Image
Paint
Container(Box<SizedContainerAtom<'a>>)
Widget(Box<SizedWidgetAtom<'a>>)
Implementations§
Trait Implementations§
Source§impl<'a> Clone for SizedAtomKind<'a>
impl<'a> Clone for SizedAtomKind<'a>
Source§fn clone(&self) -> SizedAtomKind<'a>
fn clone(&self) -> SizedAtomKind<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SizedAtomKind<'_>
impl Debug for SizedAtomKind<'_>
Source§impl Default for SizedAtomKind<'_>
impl Default for SizedAtomKind<'_>
Source§fn default() -> SizedAtomKind<'_>
fn default() -> SizedAtomKind<'_>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SizedAtomKind<'a>
impl<'a> !Send for SizedAtomKind<'a>
impl<'a> !Sync for SizedAtomKind<'a>
impl<'a> !UnwindSafe for SizedAtomKind<'a>
impl<'a> Forget for SizedAtomKind<'a>
impl<'a> Freeze for SizedAtomKind<'a>where
*const ArcInner<Galley> is !null: Freeze,
PhantomData<ArcInner<Galley>>: Freeze,
&'a str: Freeze,
String: Freeze,
&'static str: Freeze,
&'static [u8]: Freeze,
*const ArcInner<[u8]> is !null: Freeze,
PhantomData<ArcInner<[u8]>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<dyn Fn(&Ui, AtomPaintArgs) + 'a> is !null: Freeze,
PhantomData<ArcInner<dyn Fn(&Ui, AtomPaintArgs) + 'a>>: Freeze,
*const SizedContainerAtom<'a> is !null: Freeze,
PhantomData<SizedContainerAtom<'a>>: Freeze,
*const SizedWidgetAtom<'a> is !null: Freeze,
PhantomData<SizedWidgetAtom<'a>>: Freeze,
impl<'a> Move for SizedAtomKind<'a>
impl<'a> Unpin for SizedAtomKind<'a>
impl<'a> UnsafeUnpin for SizedAtomKind<'a>where
*const ArcInner<Galley> is !null: UnsafeUnpin,
PhantomData<ArcInner<Galley>>: UnsafeUnpin,
&'a str: UnsafeUnpin,
String: UnsafeUnpin,
&'static str: UnsafeUnpin,
&'static [u8]: UnsafeUnpin,
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<dyn Fn(&Ui, AtomPaintArgs) + 'a> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Fn(&Ui, AtomPaintArgs) + 'a>>: UnsafeUnpin,
*const SizedContainerAtom<'a> is !null: UnsafeUnpin,
PhantomData<SizedContainerAtom<'a>>: UnsafeUnpin,
*const SizedWidgetAtom<'a> is !null: UnsafeUnpin,
PhantomData<SizedWidgetAtom<'a>>: UnsafeUnpin,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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