pub struct GlyphString(/* private fields */);
Implementations§
Source§impl GlyphString
impl GlyphString
pub fn new() -> GlyphString
pub fn extents<P: IsA<Font>>(&mut self, font: &P) -> (Rectangle, Rectangle)
pub fn extents_range<P: IsA<Font>>( &mut self, start: i32, end: i32, font: &P, ) -> (Rectangle, Rectangle)
pub fn get_width(&mut self) -> i32
pub fn index_to_x( &mut self, text: &str, analysis: &mut Analysis, index_: i32, trailing: bool, ) -> i32
pub fn set_size(&mut self, new_len: i32)
pub fn x_to_index( &mut self, text: &str, analysis: &mut Analysis, x_pos: i32, ) -> (i32, i32)
Trait Implementations§
Source§impl Clone for GlyphString
impl Clone for GlyphString
Source§fn clone(&self) -> GlyphString
fn clone(&self) -> GlyphString
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 GlyphString
impl Debug for GlyphString
Source§impl Default for GlyphString
impl Default for GlyphString
Source§impl Hash for GlyphString
impl Hash for GlyphString
Source§impl Ord for GlyphString
impl Ord for GlyphString
Source§fn cmp(&self, other: &GlyphString) -> Ordering
fn cmp(&self, other: &GlyphString) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GlyphString
impl PartialEq for GlyphString
Source§impl PartialOrd for GlyphString
impl PartialOrd for GlyphString
Source§impl StaticType for GlyphString
impl StaticType for GlyphString
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for GlyphString
impl StructuralPartialEq for GlyphString
Auto Trait Implementations§
impl Freeze for GlyphString
impl RefUnwindSafe for GlyphString
impl !Send for GlyphString
impl !Sync for GlyphString
impl Unpin for GlyphString
impl UnwindSafe for GlyphString
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