Struct pango::GlyphString
source · [−]pub struct GlyphString(_);Implementations
sourceimpl 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
sourceimpl Clone for GlyphString
impl Clone for GlyphString
sourcefn clone(&self) -> GlyphString
fn clone(&self) -> GlyphString
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for GlyphString
impl Debug for GlyphString
sourceimpl Default for GlyphString
impl Default for GlyphString
sourceimpl Hash for GlyphString
impl Hash for GlyphString
sourceimpl Ord for GlyphString
impl Ord for GlyphString
sourcefn cmp(&self, other: &GlyphString) -> Ordering
fn cmp(&self, other: &GlyphString) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<GlyphString> for GlyphString
impl PartialEq<GlyphString> for GlyphString
sourcefn eq(&self, other: &GlyphString) -> bool
fn eq(&self, other: &GlyphString) -> bool
sourceimpl PartialOrd<GlyphString> for GlyphString
impl PartialOrd<GlyphString> for GlyphString
sourcefn partial_cmp(&self, other: &GlyphString) -> Option<Ordering>
fn partial_cmp(&self, other: &GlyphString) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for GlyphString
impl StaticType for GlyphString
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for GlyphString
impl StructuralEq for GlyphString
impl StructuralPartialEq for GlyphString
Auto Trait Implementations
impl RefUnwindSafe for GlyphString
impl !Send for GlyphString
impl !Sync for GlyphString
impl Unpin for GlyphString
impl UnwindSafe for GlyphString
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more