Trait RendererExt

Source
pub trait RendererExt: 'static {
Show 19 methods // Required methods fn activate(&self); fn deactivate(&self); fn draw_error_underline(&self, x: i32, y: i32, width: i32, height: i32); fn draw_glyph<P: IsA<Font>>(&self, font: &P, glyph: Glyph, x: f64, y: f64); fn draw_glyph_item( &self, text: Option<&str>, glyph_item: &mut GlyphItem, x: i32, y: i32, ); fn draw_glyphs<P: IsA<Font>>( &self, font: &P, glyphs: &mut GlyphString, x: i32, y: i32, ); fn draw_layout(&self, layout: &Layout, x: i32, y: i32); fn draw_layout_line(&self, line: &LayoutLine, x: i32, y: i32); fn draw_rectangle( &self, part: RenderPart, x: i32, y: i32, width: i32, height: i32, ); fn draw_trapezoid( &self, part: RenderPart, y1_: f64, x11: f64, x21: f64, y2: f64, x12: f64, x22: f64, ); fn get_alpha(&self, part: RenderPart) -> u16; fn get_color(&self, part: RenderPart) -> Option<Color>; fn get_layout(&self) -> Option<Layout>; fn get_layout_line(&self) -> Option<LayoutLine>; fn get_matrix(&self) -> Option<Matrix>; fn part_changed(&self, part: RenderPart); fn set_alpha(&self, part: RenderPart, alpha: u16); fn set_color(&self, part: RenderPart, color: Option<&Color>); fn set_matrix(&self, matrix: Option<&Matrix>);
}

Required Methods§

Source

fn activate(&self)

Source

fn deactivate(&self)

Source

fn draw_error_underline(&self, x: i32, y: i32, width: i32, height: i32)

Source

fn draw_glyph<P: IsA<Font>>(&self, font: &P, glyph: Glyph, x: f64, y: f64)

Source

fn draw_glyph_item( &self, text: Option<&str>, glyph_item: &mut GlyphItem, x: i32, y: i32, )

Source

fn draw_glyphs<P: IsA<Font>>( &self, font: &P, glyphs: &mut GlyphString, x: i32, y: i32, )

Source

fn draw_layout(&self, layout: &Layout, x: i32, y: i32)

Source

fn draw_layout_line(&self, line: &LayoutLine, x: i32, y: i32)

Source

fn draw_rectangle( &self, part: RenderPart, x: i32, y: i32, width: i32, height: i32, )

Source

fn draw_trapezoid( &self, part: RenderPart, y1_: f64, x11: f64, x21: f64, y2: f64, x12: f64, x22: f64, )

Source

fn get_alpha(&self, part: RenderPart) -> u16

Source

fn get_color(&self, part: RenderPart) -> Option<Color>

Source

fn get_layout(&self) -> Option<Layout>

Source

fn get_layout_line(&self) -> Option<LayoutLine>

Source

fn get_matrix(&self) -> Option<Matrix>

Source

fn part_changed(&self, part: RenderPart)

Source

fn set_alpha(&self, part: RenderPart, alpha: u16)

Source

fn set_color(&self, part: RenderPart, color: Option<&Color>)

Source

fn set_matrix(&self, matrix: Option<&Matrix>)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§