Struct cairo::FontOptions
source · [−]#[repr(transparent)]pub struct FontOptions { /* private fields */ }
Implementations
sourceimpl FontOptions
impl FontOptions
pub fn new() -> Result<FontOptions, Error>
pub unsafe fn from_raw_full(ptr: *mut cairo_font_options_t) -> Self
pub fn to_raw_none(&self) -> *mut cairo_font_options_t
pub fn merge(&mut self, other: &FontOptions)
pub fn set_antialias(&mut self, antialias: Antialias)
pub fn antialias(&self) -> Antialias
pub fn set_subpixel_order(&mut self, order: SubpixelOrder)
pub fn subpixel_order(&self) -> SubpixelOrder
pub fn set_hint_style(&mut self, hint_style: HintStyle)
pub fn hint_style(&self) -> HintStyle
pub fn set_hint_metrics(&mut self, hint_metrics: HintMetrics)
pub fn hint_metrics(&self) -> HintMetrics
pub fn variations(&self) -> Option<String>
pub fn set_variations(&self, variations: Option<&str>)
pub fn status(&self) -> Result<(), Error>
Trait Implementations
sourceimpl Clone for FontOptions
impl Clone for FontOptions
sourceimpl Debug for FontOptions
impl Debug for FontOptions
sourceimpl Hash for FontOptions
impl Hash for FontOptions
sourceimpl PartialEq<FontOptions> for FontOptions
impl PartialEq<FontOptions> for FontOptions
sourcefn eq(&self, other: &FontOptions) -> bool
fn eq(&self, other: &FontOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl StaticType for FontOptions
impl StaticType for FontOptions
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl Eq for FontOptions
impl Send for FontOptions
impl Sync for FontOptions
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.