pub struct ResolvedScreenText { /* private fields */ }Expand description
One prepared screen label retained by a complete CPU snapshot.
Text and its immutable font are shared with the component; extraction does not reshape strings, copy font bytes, or hold a renderer resource. Positions use current logical pixels, independently of fixed-step interpolation.
Implementations§
Source§impl ResolvedScreenText
impl ResolvedScreenText
Sourcepub const fn source(&self) -> LogicEntity
pub const fn source(&self) -> LogicEntity
Returns the managed entity that produced this label.
Sourcepub fn font(&self) -> &TextFont
pub fn font(&self) -> &TextFont
Returns the immutable application-registered font used for preparation.
Sourcepub fn metrics(&self) -> TextMetrics
pub fn metrics(&self) -> TextMetrics
Returns shaping metrics already calculated when the label was prepared.
Sourcepub fn position(&self) -> LogicalScreenPosition
pub fn position(&self) -> LogicalScreenPosition
Returns the requested baseline anchor in logical screen pixels.
Sourcepub fn baseline_origin(&self) -> LogicalScreenPosition
pub fn baseline_origin(&self) -> LogicalScreenPosition
Returns the left baseline origin after horizontal alignment is applied.
Sourcepub fn draw_order_depth(&self) -> f32
pub fn draw_order_depth(&self) -> f32
Returns secondary mixed-screen painter order, not geometric camera depth.
Sourcepub const fn visual(&self) -> &ScreenTextVisual
pub const fn visual(&self) -> &ScreenTextVisual
Returns the complete immutable snapshot value, including shared preparation.
Trait Implementations§
Source§impl Clone for ResolvedScreenText
impl Clone for ResolvedScreenText
Source§impl Debug for ResolvedScreenText
impl Debug for ResolvedScreenText
Source§impl PartialEq for ResolvedScreenText
impl PartialEq for ResolvedScreenText
impl StructuralPartialEq for ResolvedScreenText
Auto Trait Implementations§
impl Freeze for ResolvedScreenText
impl RefUnwindSafe for ResolvedScreenText
impl Send for ResolvedScreenText
impl Sync for ResolvedScreenText
impl Unpin for ResolvedScreenText
impl UnsafeUnpin for ResolvedScreenText
impl UnwindSafe for ResolvedScreenText
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
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> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.