pub struct SizedAtom<'a> {
pub id: Option<IdSalt>,
pub size: Vec2,
pub intrinsic_size: Vec2,
pub align: Align2,
pub kind: SizedAtomKind<'a>,
/* private fields */
}Available on crate feature
egui only.Expand description
A crate::Atom which has been sized.
Fields§
§id: Option<IdSalt>§size: Vec2The size of the atom.
Used for placing this atom in a crate::ContainerAtom, the cursor will advance by
size.x + gap.
intrinsic_size: Vec2Intrinsic size of the atom. This is used to calculate Response::intrinsic_size.
align: Align2How will the atom be aligned in its available space?
kind: SizedAtomKind<'a>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SizedAtom<'a>
impl<'a> !Send for SizedAtom<'a>
impl<'a> !Sync for SizedAtom<'a>
impl<'a> !UnwindSafe for SizedAtom<'a>
impl<'a> Forget for SizedAtom<'a>
impl<'a> Freeze for SizedAtom<'a>where
NonZero<u64>: Freeze,
*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 SizedAtom<'a>
impl<'a> Unpin for SizedAtom<'a>
impl<'a> UnsafeUnpin for SizedAtom<'a>where
NonZeroU64Inner: UnsafeUnpin,
*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