pub struct Renderer<'library> { /* private fields */ }
Implementations§
Source§impl<'library> Renderer<'library>
impl<'library> Renderer<'library>
pub fn render_frame( &mut self, track: Track<'_>, now: i64, ) -> (Option<Image<'_>>, Change)
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, )
pub fn set_frame_size(&mut self, width: i32, height: i32)
pub fn set_storage_size(&mut self, width: i32, height: i32)
pub fn set_shaper(&mut self, level: ShapingLevel)
pub fn set_margins(&mut self, top: i32, bottom: i32, left: i32, right: i32)
pub fn use_margins(&mut self, use_: bool)
pub fn set_pixel_aspect_ratio(&mut self, par: f64)
pub fn set_aspect_ratio(&mut self, dar: f64, sar: f64)
pub fn set_font_scale(&mut self, font_scale: f64)
pub fn set_hinting(&mut self, font_hinting: Hinting)
pub fn set_line_spacing(&mut self, line_spacing: f64)
pub fn set_line_position(&mut self, line_position: f64)
pub fn set_cache_limits(&mut self, glyph_max: i32, bitmap_max_size: i32)
pub fn set_selective_style_override(&mut self, style: &Style)
pub fn set_selective_style_override_enabled(&mut self, bits: OverrideBits)
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more