Struct cairo::ScaledFont [−][src]
Implementations
impl ScaledFont[src]
pub fn new(
font_face: &FontFace,
font_matrix: &Matrix,
ctm: &Matrix,
options: &FontOptions
) -> ScaledFont[src]
font_face: &FontFace,
font_matrix: &Matrix,
ctm: &Matrix,
options: &FontOptions
) -> ScaledFont
pub fn to_raw_none(&self) -> *mut cairo_scaled_font_t[src]
pub unsafe fn from_raw_full(ptr: *mut cairo_scaled_font_t) -> ScaledFont[src]
pub unsafe fn from_raw_none(ptr: *mut cairo_scaled_font_t) -> ScaledFont[src]
pub fn ensure_status(&self)[src]
pub fn get_type(&self) -> FontType[src]
pub fn get_reference_count(&self) -> usize[src]
pub fn extents(&self) -> FontExtents[src]
pub fn text_extents(&self, text: &str) -> TextExtents[src]
pub fn glyph_extents(&self, glyphs: &[Glyph]) -> TextExtents[src]
pub fn text_to_glyphs(
&self,
x: f64,
y: f64,
text: &str
) -> (Vec<Glyph>, Vec<TextCluster>)[src]
&self,
x: f64,
y: f64,
text: &str
) -> (Vec<Glyph>, Vec<TextCluster>)
pub fn get_font_face(&self) -> FontFace[src]
pub fn get_font_options(&self) -> FontOptions[src]
pub fn get_font_matrix(&self) -> Matrix[src]
pub fn get_ctm(&self) -> Matrix[src]
pub fn get_scale_matrix(&self) -> Matrix[src]
Trait Implementations
impl Clone for ScaledFont[src]
fn clone(&self) -> ScaledFont[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ScaledFont[src]
impl StaticType for ScaledFont[src]
fn static_type() -> Type[src]
Auto Trait Implementations
impl RefUnwindSafe for ScaledFont
impl !Send for ScaledFont
impl !Sync for ScaledFont
impl Unpin for ScaledFont
impl UnwindSafe for ScaledFont
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToValue for T where
T: SetValue + ?Sized, [src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,