Struct pango::GlyphString [−]
pub struct GlyphString(_);
Methods
impl GlyphString
[src]
impl GlyphString
pub fn new() -> GlyphString
[src]
pub fn new() -> GlyphString
pub fn extents(&mut self, font: &Font) -> (Rectangle, Rectangle)
[src]
pub fn extents(&mut self, font: &Font) -> (Rectangle, Rectangle)
pub fn extents_range(
&mut self,
start: i32,
end: i32,
font: &Font
) -> (Rectangle, Rectangle)
[src]
pub fn extents_range(
&mut self,
start: i32,
end: i32,
font: &Font
) -> (Rectangle, Rectangle)
pub fn get_width(&mut self) -> i32
[src]
pub fn get_width(&mut self) -> i32
pub fn index_to_x(
&mut self,
text: &str,
analysis: &mut Analysis,
index_: i32,
trailing: bool
) -> i32
[src]
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)
[src]
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)
[src]
pub fn x_to_index(
&mut self,
text: &str,
analysis: &mut Analysis,
x_pos: i32
) -> (i32, i32)
Trait Implementations
impl Debug for GlyphString
[src]
impl Debug for GlyphString
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for GlyphString
[src]
impl PartialEq for GlyphString
fn eq(&self, other: &GlyphString) -> bool
[src]
fn eq(&self, other: &GlyphString) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &GlyphString) -> bool
[src]
fn ne(&self, other: &GlyphString) -> bool
This method tests for !=
.
impl Eq for GlyphString
[src]
impl Eq for GlyphString
impl PartialOrd for GlyphString
[src]
impl PartialOrd for GlyphString
fn partial_cmp(&self, other: &GlyphString) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &GlyphString) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &GlyphString) -> bool
[src]
fn lt(&self, other: &GlyphString) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &GlyphString) -> bool
[src]
fn le(&self, other: &GlyphString) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &GlyphString) -> bool
[src]
fn gt(&self, other: &GlyphString) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &GlyphString) -> bool
[src]
fn ge(&self, other: &GlyphString) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for GlyphString
[src]
impl Ord for GlyphString
fn cmp(&self, other: &GlyphString) -> Ordering
[src]
fn cmp(&self, other: &GlyphString) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for GlyphString
[src]
impl Hash for GlyphString
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for GlyphString
impl Clone for GlyphString
fn clone(&self) -> GlyphString
fn clone(&self) -> GlyphString
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl StaticType for GlyphString
impl StaticType for GlyphString
fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl Default for GlyphString
[src]
impl Default for GlyphString
Auto Trait Implementations
impl !Send for GlyphString
impl !Send for GlyphString
impl !Sync for GlyphString
impl !Sync for GlyphString