Struct UiLayoutNode
pub struct UiLayoutNode {
pub widget_id: u32,
pub parent: u16,
pub first_child: u16,
pub next_sibling: u16,
pub style: UiLayoutStyle,
pub intrinsic_size: [f32; 2],
pub measured_size: [f32; 2],
pub computed: ComputedUiRect,
}Expand description
Single node in the zero-heap intrusive UI layout tree.
Fields§
§widget_id: u32External widget ID in ZeroHeapUiCanvas.
parent: u16Intrusive parent index (NO_UI_NODE for roots).
first_child: u16First child index (NO_UI_NODE if leaf).
next_sibling: u16Next sibling index (NO_UI_NODE if last child).
style: UiLayoutStyleLayout style constraints.
intrinsic_size: [f32; 2]Intrinsic content measurement (e.g., from shaped MSDF text run).
measured_size: [f32; 2]Bottom-up measured desired size [width, height] (excluding outer margins).
computed: ComputedUiRectFinal top-down resolved screen-space rectangle and clip rect.
Trait Implementations§
§impl Clone for UiLayoutNode
impl Clone for UiLayoutNode
§fn clone(&self) -> UiLayoutNode
fn clone(&self) -> UiLayoutNode
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 moreimpl Copy for UiLayoutNode
§impl Debug for UiLayoutNode
impl Debug for UiLayoutNode
§impl Default for UiLayoutNode
impl Default for UiLayoutNode
§fn default() -> UiLayoutNode
fn default() -> UiLayoutNode
Returns the “default value” for a type. Read more
§impl PartialEq for UiLayoutNode
impl PartialEq for UiLayoutNode
impl StructuralPartialEq for UiLayoutNode
Auto Trait Implementations§
impl Freeze for UiLayoutNode
impl RefUnwindSafe for UiLayoutNode
impl Send for UiLayoutNode
impl Sync for UiLayoutNode
impl Unpin for UiLayoutNode
impl UnsafeUnpin for UiLayoutNode
impl UnwindSafe for UiLayoutNode
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.