Struct 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 that contain glyphs (as opposed to background, underlines, strikethorugh, etc).
The glyph vertices comes before backgrounds (if any), and after any underlines and strikethrough.
Trait Implementations§
source§impl Clone for RowVisuals
impl Clone for RowVisuals
source§fn clone(&self) -> RowVisuals
fn clone(&self) -> RowVisuals
Returns a copy 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 moresource§impl Debug for RowVisuals
impl Debug for RowVisuals
source§impl Default for RowVisuals
impl Default for RowVisuals
source§impl PartialEq for RowVisuals
impl PartialEq for RowVisuals
source§fn eq(&self, other: &RowVisuals) -> bool
fn eq(&self, other: &RowVisuals) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RowVisuals
impl StructuralEq for RowVisuals
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§
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