pub struct ExtractedUiText {
pub pos: Vec2,
pub layout: Arc<dyn TextLayout>,
pub color: Vec4,
pub z_index: i32,
}Expand description
Extracted text data for rendering.
Fields§
§pos: Vec2Screen-space position.
layout: Arc<dyn TextLayout>Pre-computed text layout. Arc (immutable, shared) rather than
Box so the containing UiScene view is cheaply clonable.
color: Vec4Text color RGBA.
z_index: i32Z-index for sorting.
Trait Implementations§
Source§impl Clone for ExtractedUiText
impl Clone for ExtractedUiText
Source§fn clone(&self) -> ExtractedUiText
fn clone(&self) -> ExtractedUiText
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 Freeze for ExtractedUiText
impl !RefUnwindSafe for ExtractedUiText
impl Send for ExtractedUiText
impl Sync for ExtractedUiText
impl Unpin for ExtractedUiText
impl UnsafeUnpin for ExtractedUiText
impl !UnwindSafe for ExtractedUiText
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