pub struct RowVisuals {
pub mesh: Mesh,
pub mesh_bounds: Rect,
pub glyph_index_start: usize,
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_index_start: usize
The number of triangle indices added before the first glyph triangle.
This can be used to insert more triangles after the background but before the glyphs, i.e. for text selection visualization.
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 after backgrounds (if any), but before 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<'de> Deserialize<'de> for RowVisuals
impl<'de> Deserialize<'de> for RowVisuals
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RowVisuals
impl PartialEq for RowVisuals
Source§impl Serialize for RowVisuals
impl Serialize for RowVisuals
impl Eq for RowVisuals
impl StructuralPartialEq for RowVisuals
Auto Trait Implementations§
impl Freeze for RowVisuals
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