Struct epaint::text::text_layout::Paragraph
source · struct Paragraph {
pub cursor_x: f32,
pub section_index_at_start: u32,
pub glyphs: Vec<Glyph>,
pub empty_paragraph_height: f32,
}
Expand description
Temporary storage before line-wrapping.
Fields§
§cursor_x: f32
Start of the next glyph to be added.
section_index_at_start: u32
This is included in case there are no glyphs
glyphs: Vec<Glyph>
§empty_paragraph_height: f32
In case of an empty paragraph (“\n”), use this as height.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Paragraph
impl RefUnwindSafe for Paragraph
impl Send for Paragraph
impl Sync for Paragraph
impl Unpin for Paragraph
impl UnwindSafe for Paragraph
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)