pub struct RenderCommandOutputElement<Custom> {
pub bounds: BoundingBox,
pub z_index: i32,
pub text: Option<TextDrawPayload>,
pub custom: Custom,
}Expand description
Render data for one layout element.
The custom field carries the user’s config type (T from RenderCommandOutput<T>).
When the element is a text leaf, text holds the substring and typography to draw.
Fields§
§bounds: BoundingBoxFinal axis-aligned bounds in screen space.
z_index: i32Draw order relative to siblings (higher draws on top).
text: Option<TextDrawPayload>Text fragment when this element is a synthetic text leaf; None for non-text nodes.
custom: CustomUser config payload (e.g. ElementConfig).
Trait Implementations§
Source§impl<Custom: Clone> Clone for RenderCommandOutputElement<Custom>
impl<Custom: Clone> Clone for RenderCommandOutputElement<Custom>
Source§fn clone(&self) -> RenderCommandOutputElement<Custom>
fn clone(&self) -> RenderCommandOutputElement<Custom>
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 moreAuto Trait Implementations§
impl<Custom> Freeze for RenderCommandOutputElement<Custom>where
Custom: Freeze,
impl<Custom> RefUnwindSafe for RenderCommandOutputElement<Custom>where
Custom: RefUnwindSafe,
impl<Custom> Send for RenderCommandOutputElement<Custom>where
Custom: Send,
impl<Custom> Sync for RenderCommandOutputElement<Custom>where
Custom: Sync,
impl<Custom> Unpin for RenderCommandOutputElement<Custom>where
Custom: Unpin,
impl<Custom> UnsafeUnpin for RenderCommandOutputElement<Custom>where
Custom: UnsafeUnpin,
impl<Custom> UnwindSafe for RenderCommandOutputElement<Custom>where
Custom: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
impl<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
Source§fn embed(self) -> RenderTList<H, TailTarget>
fn embed(self) -> RenderTList<H, TailTarget>
Converts
self into Target.