Struct pango::GlyphString
source · [−]#[repr(transparent)]pub struct GlyphString { /* private fields */ }
Implementations
sourceimpl GlyphString
impl GlyphString
pub fn as_ptr(&self) -> *mut PangoGlyphString
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(&self) -> i32
pub fn index_to_x(
&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(
&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]
pub fn log_clusters(&self) -> &[i32]
pub fn log_clusters_mut(&mut self) -> &mut [i32]
pub fn logical_widths(&self, text: &str, rtl: bool) -> Vec<i32>
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 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const 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 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 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 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
sourceimpl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.