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
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
sourcefn ne(&self, other: &GlyphString) -> bool
fn ne(&self, other: &GlyphString) -> bool
This method tests for !=
.
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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
.