pub struct RenderDebugInfo {
pub calculated_font_size: f32,
pub scaled_font_size: f32,
pub play_res_x: u32,
pub play_res_y: u32,
pub render_width: u32,
pub render_height: u32,
pub color_bbggrr: String,
pub color_rgba: [u8; 4],
pub font_metrics: FontMetricsDebug,
pub text_bbox: BoundingBoxDebug,
pub animation_progress: Option<f32>,
}Expand description
Visual debug info for rendering comparison
Fields§
§calculated_font_size: f32Font size as calculated
scaled_font_size: f32Font size after PlayRes scaling
play_res_x: u32PlayResX value
play_res_y: u32PlayResY value
render_width: u32Render resolution
render_height: u32§color_bbggrr: StringColor in BBGGRR format (as hex string)
color_rgba: [u8; 4]Converted RGBA values
font_metrics: FontMetricsDebugFont metrics
text_bbox: BoundingBoxDebugText bounding box
animation_progress: Option<f32>Animation progress
Trait Implementations§
Source§impl Clone for RenderDebugInfo
impl Clone for RenderDebugInfo
Source§fn clone(&self) -> RenderDebugInfo
fn clone(&self) -> RenderDebugInfo
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 moreSource§impl Debug for RenderDebugInfo
impl Debug for RenderDebugInfo
Auto Trait Implementations§
impl Freeze for RenderDebugInfo
impl RefUnwindSafe for RenderDebugInfo
impl Send for RenderDebugInfo
impl Sync for RenderDebugInfo
impl Unpin for RenderDebugInfo
impl UnsafeUnpin for RenderDebugInfo
impl UnwindSafe for RenderDebugInfo
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,
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