Struct cairo::ScaledFont [−]
pub struct ScaledFont(_);
Methods
impl ScaledFont
[src]
impl ScaledFont
pub fn new(
font_face: &FontFace,
font_matrix: &Matrix,
ctm: &Matrix,
options: &FontOptions
) -> ScaledFont
[src]
pub fn new(
font_face: &FontFace,
font_matrix: &Matrix,
ctm: &Matrix,
options: &FontOptions
) -> ScaledFont
pub fn to_raw_none(&self) -> *mut cairo_scaled_font_t
[src]
pub fn to_raw_none(&self) -> *mut cairo_scaled_font_t
pub unsafe fn from_raw_full(ptr: *mut cairo_scaled_font_t) -> ScaledFont
[src]
pub unsafe fn from_raw_full(ptr: *mut cairo_scaled_font_t) -> ScaledFont
pub unsafe fn from_raw_none(ptr: *mut cairo_scaled_font_t) -> ScaledFont
[src]
pub unsafe fn from_raw_none(ptr: *mut cairo_scaled_font_t) -> ScaledFont
pub fn ensure_status(&self)
[src]
pub fn ensure_status(&self)
pub fn get_type(&self) -> FontType
[src]
pub fn get_type(&self) -> FontType
pub fn get_reference_count(&self) -> usize
[src]
pub fn get_reference_count(&self) -> usize
pub fn extents(&self) -> FontExtents
[src]
pub fn extents(&self) -> FontExtents
pub fn text_extents(&self, text: &str) -> TextExtents
[src]
pub fn text_extents(&self, text: &str) -> TextExtents
pub fn glyph_extents(&self, glyphs: &[Glyph]) -> TextExtents
[src]
pub fn glyph_extents(&self, glyphs: &[Glyph]) -> TextExtents
pub fn text_to_glyphs(
&self,
x: f64,
y: f64,
text: &str
) -> (Vec<Glyph>, Vec<TextCluster>)
[src]
pub fn text_to_glyphs(
&self,
x: f64,
y: f64,
text: &str
) -> (Vec<Glyph>, Vec<TextCluster>)
pub fn get_font_face(&self) -> FontFace
[src]
pub fn get_font_face(&self) -> FontFace
pub fn get_font_options(&self) -> FontOptions
[src]
pub fn get_font_options(&self) -> FontOptions
pub fn get_font_matrix(&self) -> Matrix
[src]
pub fn get_font_matrix(&self) -> Matrix
pub fn get_ctm(&self) -> Matrix
[src]
pub fn get_ctm(&self) -> Matrix
pub fn get_scale_matrix(&self) -> Matrix
[src]
pub fn get_scale_matrix(&self) -> Matrix
Trait Implementations
impl Debug for ScaledFont
[src]
impl Debug for ScaledFont
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 Clone for ScaledFont
impl Clone for ScaledFont
fn clone(&self) -> ScaledFont
fn clone(&self) -> ScaledFont
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl StaticType for ScaledFont
impl StaticType for ScaledFont
fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
Auto Trait Implementations
impl !Send for ScaledFont
impl !Send for ScaledFont
impl !Sync for ScaledFont
impl !Sync for ScaledFont