pub struct UiLabel {
pub text: String,
pub position: Vec3,
pub color: Vec4,
pub char_scale: f32,
pub char_spacing: f32,
pub emission: f32,
pub glow_color: Vec3,
pub glow_radius: f32,
pub emission_fn: Option<MathFunction>,
pub color_fn: Option<MathFunction>,
pub visible: bool,
}Expand description
A static or dynamically-updated text label.
Fields§
§text: String§position: Vec3§color: Vec4§char_scale: f32§char_spacing: f32§emission: f32§glow_color: Vec3§glow_radius: f32§emission_fn: Option<MathFunction>Optional animation: applies to emission over time.
color_fn: Option<MathFunction>Optional color pulse animation.
visible: boolImplementations§
Auto Trait Implementations§
impl Freeze for UiLabel
impl RefUnwindSafe for UiLabel
impl Send for UiLabel
impl Sync for UiLabel
impl Unpin for UiLabel
impl UnsafeUnpin for UiLabel
impl UnwindSafe for UiLabel
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> 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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.