pub struct LabelDraw<'a> {
pub key: u32,
pub text: &'a str,
pub pos: [f32; 2],
pub opacity: f32,
pub color: [f32; 3],
pub anchor: LabelAnchor,
}Expand description
One label the caller selected for drawing this frame (LOD survivor).
key is the interned LabelId; text is only read on cache miss.
Fields§
§key: u32§text: &'a str§pos: [f32; 2]§opacity: f32§color: [f32; 3]RGB only; alpha comes from cam.fade * opacity, so a caller cannot
accidentally defeat the global fade.
anchor: LabelAnchorAuto Trait Implementations§
impl<'a> Freeze for LabelDraw<'a>
impl<'a> RefUnwindSafe for LabelDraw<'a>
impl<'a> Send for LabelDraw<'a>
impl<'a> Sync for LabelDraw<'a>
impl<'a> Unpin for LabelDraw<'a>
impl<'a> UnsafeUnpin for LabelDraw<'a>
impl<'a> UnwindSafe for LabelDraw<'a>
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> 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