pub struct MessageRenderInstance {
pub text: String,
pub font: u32,
pub size_px: f32,
pub x: f32,
pub y: f32,
pub rgba: [f32; 4],
pub burn: bool,
}Expand description
Per-frame snapshot of one active message, fed to the renderer.
Mirrors a tiny subset of MessageDef — the renderer only needs
positioning + size + colour + the current fade alpha.
Fields§
§text: String§font: u32§size_px: f32§x: f32Centre [0, 1] screen coords (top-left origin).
y: f32§rgba: [f32; 4]Final RGBA after fade. a is the fade phase × the def’s
authored alpha (always 1.0 for now).
burn: booltrue on the one frame a burn=1 message is finishing.
Currently treated identically to a regular emit — the text
pipeline renders into the display texture either way, so
“burning into the background” reduces to “draw once then
drop”. Kept for future fence work.
Trait Implementations§
Source§impl Clone for MessageRenderInstance
impl Clone for MessageRenderInstance
Source§fn clone(&self) -> MessageRenderInstance
fn clone(&self) -> MessageRenderInstance
Returns a duplicate of the value. Read more
1.0.0 · 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 MessageRenderInstance
impl RefUnwindSafe for MessageRenderInstance
impl Send for MessageRenderInstance
impl Sync for MessageRenderInstance
impl Unpin for MessageRenderInstance
impl UnwindSafe for MessageRenderInstance
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,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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