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 the contain glyphs. Before comes 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<'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§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 ==
.source§impl Serialize for RowVisuals
impl Serialize for RowVisuals
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