Struct pango::GlyphString
source · [−]#[repr(transparent)]pub struct GlyphString { /* private fields */ }
Implementations
sourceimpl GlyphString
impl GlyphString
pub fn new() -> GlyphString
pub fn extents(&mut self, font: &impl IsA<Font>) -> (Rectangle, Rectangle)
pub fn extents_range(
&mut self,
start: i32,
end: i32,
font: &impl IsA<Font>
) -> (Rectangle, Rectangle)
pub fn 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)
sourceimpl GlyphString
impl GlyphString
pub fn num_glyphs(&self) -> i32
pub fn glyph_info(&self) -> &[GlyphInfo]
pub fn glyph_info_mut(&mut self) -> &mut [GlyphInfo]
Trait Implementations
sourceimpl Clone for GlyphString
impl Clone for GlyphString
sourceimpl 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) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl 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 Send for GlyphString
impl StructuralEq for GlyphString
impl StructuralPartialEq for GlyphString
impl Sync for GlyphString
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.