Struct me3_framework::overlay::epaint::text::RowVisuals
source · [−]pub struct RowVisuals {
pub mesh: Mesh,
pub mesh_bounds: Rect,
pub glyph_vertex_range: Range<usize>,
}
Expand description
The tessellated output of a row.
Fields
mesh: Mesh
The tessellated text, using non-normalized (texel) UV coordinates. That is, you need to divide the uv coordinates by the texture size.
mesh_bounds: Rect
Bounds of the mesh, and can be used for culling. Does NOT include leading or trailing whitespace glyphs!!
glyph_vertex_range: Range<usize>
The range of vertices in the mesh the contain glyphs. Before comes backgrounds (if any), and after any underlines and strikethrough.
Trait Implementations
sourceimpl Clone for RowVisuals
impl Clone for RowVisuals
sourcefn clone(&self) -> RowVisuals
fn clone(&self) -> RowVisuals
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RowVisuals
impl Debug for RowVisuals
sourceimpl Default for RowVisuals
impl Default for RowVisuals
sourcefn default() -> RowVisuals
fn default() -> RowVisuals
Returns the “default value” for a type. Read more
sourceimpl PartialEq<RowVisuals> for RowVisuals
impl PartialEq<RowVisuals> for RowVisuals
sourcefn eq(&self, other: &RowVisuals) -> bool
fn eq(&self, other: &RowVisuals) -> bool
impl StructuralPartialEq for RowVisuals
Auto Trait Implementations
impl RefUnwindSafe for RowVisuals
impl Send for RowVisuals
impl Sync for RowVisuals
impl Unpin for RowVisuals
impl UnwindSafe for RowVisuals
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more