Struct Renderer

Source
pub struct Renderer<'library> { /* private fields */ }

Implementations§

Source§

impl<'library> Renderer<'library>

Source

pub fn render_frame( &mut self, track: Track<'_>, now: i64, ) -> (Option<Image<'_>>, Change)

Source

pub fn set_fonts<'a>( &mut self, default_font: impl Into<Option<&'a str>>, default_family: impl Into<Option<&'a str>>, default_font_provider: DefaultFontProvider, fontconfig_config_path: impl Into<Option<&'a str>>, update_fontconfig_cache: bool, )

Source

pub fn set_frame_size(&mut self, width: i32, height: i32)

Source

pub fn set_storage_size(&mut self, width: i32, height: i32)

Source

pub fn set_shaper(&mut self, level: ShapingLevel)

Source

pub fn set_margins(&mut self, top: i32, bottom: i32, left: i32, right: i32)

Source

pub fn use_margins(&mut self, use_: bool)

Source

pub fn set_pixel_aspect_ratio(&mut self, par: f64)

Source

pub fn set_aspect_ratio(&mut self, dar: f64, sar: f64)

Source

pub fn set_font_scale(&mut self, font_scale: f64)

Source

pub fn set_hinting(&mut self, font_hinting: Hinting)

Source

pub fn set_line_spacing(&mut self, line_spacing: f64)

Source

pub fn set_line_position(&mut self, line_position: f64)

Source

pub fn set_cache_limits(&mut self, glyph_max: i32, bitmap_max_size: i32)

Source

pub fn set_selective_style_override(&mut self, style: &Style)

Source

pub fn set_selective_style_override_enabled(&mut self, bits: OverrideBits)

Trait Implementations§

Source§

impl<'library> Drop for Renderer<'library>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<'library> Freeze for Renderer<'library>

§

impl<'library> RefUnwindSafe for Renderer<'library>

§

impl<'library> !Send for Renderer<'library>

§

impl<'library> !Sync for Renderer<'library>

§

impl<'library> Unpin for Renderer<'library>

§

impl<'library> !UnwindSafe for Renderer<'library>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.