[]Struct pango::GlyphString

pub struct GlyphString(_);

Methods

impl GlyphString[src]

pub fn new() -> GlyphString[src]

pub fn extents<P: IsA<Font>>(&mut self, font: &P) -> (Rectangle, Rectangle)[src]

pub fn extents_range<P: IsA<Font>>(
    &mut self,
    start: i32,
    end: i32,
    font: &P
) -> (Rectangle, Rectangle)
[src]

pub fn get_width(&mut self) -> i32[src]

pub fn index_to_x(
    &mut self,
    text: &str,
    analysis: &mut Analysis,
    index_: i32,
    trailing: bool
) -> i32
[src]

pub fn set_size(&mut self, new_len: i32)[src]

pub fn x_to_index(
    &mut self,
    text: &str,
    analysis: &mut Analysis,
    x_pos: i32
) -> (i32, i32)
[src]

impl GlyphString[src]

pub fn num_glyphs(&self) -> i32[src]

pub fn glyph_info(&self) -> Vec<GlyphInfo>[src]

Trait Implementations

impl Clone for GlyphString

impl Debug for GlyphString[src]

impl Default for GlyphString[src]

impl Eq for GlyphString[src]

impl Hash for GlyphString[src]

impl Ord for GlyphString[src]

impl PartialEq<GlyphString> for GlyphString[src]

impl PartialOrd<GlyphString> for GlyphString[src]

impl StaticType for GlyphString

impl StructuralEq for GlyphString[src]

impl StructuralPartialEq for GlyphString[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.