Struct components::Backend[][src]

pub struct Backend(_, _);

Implementations

impl Backend[src]

pub fn get_font_options(&self) -> Option<FontOptions>[src]

Retrieves the font options for self.

Returns

the font options of the Backend. The returned cairo::FontOptions is owned by the backend and should not be modified or freed

pub fn get_resolution(&self) -> f64[src]

Gets the resolution for font handling on the screen.

The resolution is a scale factor between points specified in a pango::FontDescription and cairo units. The default value is 96.0, meaning that a 10 point font will be 13 units high (10 * 96. / 72. = 13.3).

will set the resolution using the current backend when initializing; the resolution is also stored in the Settings:font-dpi property.

Returns

the current resolution, or -1 if no resolution has been set.

pub fn set_font_options(&self, options: &FontOptions)[src]

Sets the new font options for self. The Backend will copy the cairo::FontOptions.

If options is None, the first following call to Backend::get_font_options will return the default font options for self.

This function is intended for actors creating a Pango layout using the PangoCairo API.

options

Cairo font options for the backend, or None

pub fn connect_font_changed<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Backend), 
[src]

The ::font-changed signal is emitted each time the font options have been changed through Settings.

pub fn connect_resolution_changed<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Backend), 
[src]

The ::resolution-changed signal is emitted each time the font resolutions has been changed through Settings.

pub fn connect_settings_changed<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&Backend), 
[src]

The ::settings-changed signal is emitted each time the Settings properties have been changed.

Trait Implementations

impl Clone for Backend[src]

impl Debug for Backend[src]

impl Display for Backend[src]

impl Eq for Backend[src]

impl Hash for Backend[src]

impl Ord for Backend[src]

impl<T> PartialEq<T> for Backend where
    T: ObjectType
[src]

impl<T> PartialOrd<T> for Backend where
    T: ObjectType
[src]

impl StaticType for Backend[src]

Auto Trait Implementations

impl RefUnwindSafe for Backend

impl !Send for Backend

impl !Sync for Backend

impl Unpin for Backend

impl UnwindSafe for Backend

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,