Struct cairo::ScaledFont [−]
pub struct ScaledFont(_);
Methods
impl ScaledFont[src]
impl ScaledFontpub 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
) -> ScaledFontpub fn to_raw_none(&self) -> *mut cairo_scaled_font_t[src]
pub fn to_raw_none(&self) -> *mut cairo_scaled_font_tpub 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) -> ScaledFontpub 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) -> ScaledFontpub fn ensure_status(&self)[src]
pub fn ensure_status(&self)pub fn get_type(&self) -> FontType[src]
pub fn get_type(&self) -> FontTypepub fn get_reference_count(&self) -> usize[src]
pub fn get_reference_count(&self) -> usizepub fn extents(&self) -> FontExtents[src]
pub fn extents(&self) -> FontExtentspub fn text_extents(&self, text: &str) -> TextExtents[src]
pub fn text_extents(&self, text: &str) -> TextExtentspub fn glyph_extents(&self, glyphs: &[Glyph]) -> TextExtents[src]
pub fn glyph_extents(&self, glyphs: &[Glyph]) -> TextExtentspub 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) -> FontFacepub fn get_font_options(&self) -> FontOptions[src]
pub fn get_font_options(&self) -> FontOptionspub fn get_font_matrix(&self) -> Matrix[src]
pub fn get_font_matrix(&self) -> Matrixpub fn get_ctm(&self) -> Matrix[src]
pub fn get_ctm(&self) -> Matrixpub fn get_scale_matrix(&self) -> Matrix[src]
pub fn get_scale_matrix(&self) -> MatrixTrait Implementations
impl Debug for ScaledFont[src]
impl Debug for ScaledFontfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for ScaledFont
impl Clone for ScaledFontfn clone(&self) -> ScaledFont
fn clone(&self) -> ScaledFontReturns 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 ScaledFontfn static_type() -> Type
fn static_type() -> TypeReturns the type identifier of Self.
Auto Trait Implementations
impl !Send for ScaledFont
impl !Send for ScaledFontimpl !Sync for ScaledFont
impl !Sync for ScaledFont