Struct iced_graphics::text::paragraph::Paragraph
source · pub struct Paragraph(/* private fields */);
Expand description
A bunch of text.
Implementations§
Trait Implementations§
source§impl Paragraph for Paragraph
impl Paragraph for Paragraph
source§fn horizontal_alignment(&self) -> Horizontal
fn horizontal_alignment(&self) -> Horizontal
Returns the horizontal alignment of the
Paragraph
.source§fn vertical_alignment(&self) -> Vertical
fn vertical_alignment(&self) -> Vertical
Returns the vertical alignment of the
Paragraph
.source§fn min_bounds(&self) -> Size
fn min_bounds(&self) -> Size
Returns the minimum boundaries that can fit the contents of the
Paragraph
.source§fn hit_test(&self, point: Point) -> Option<Hit>
fn hit_test(&self, point: Point) -> Option<Hit>
Tests whether the provided point is within the boundaries of the
Paragraph
, returning information about the nearest character.source§fn grapheme_position(&self, line: usize, index: usize) -> Option<Point>
fn grapheme_position(&self, line: usize, index: usize) -> Option<Point>
Returns the distance to the given grapheme index in the
Paragraph
.source§fn min_width(&self) -> f32
fn min_width(&self) -> f32
Returns the minimum width that can fit the contents of the
Paragraph
.source§fn min_height(&self) -> f32
fn min_height(&self) -> f32
Returns the minimum height that can fit the contents of the
Paragraph
.source§impl PartialEq for Paragraph
impl PartialEq for Paragraph
impl StructuralPartialEq for Paragraph
Auto Trait Implementations§
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.