pub trait RendererExt: 'static {
Show 19 methods
fn activate(&self);
fn deactivate(&self);
fn draw_error_underline(&self, x: i32, y: i32, width: i32, height: i32);
fn draw_glyph(&self, font: &impl IsA<Font>, 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(
&self,
font: &impl IsA<Font>,
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 alpha(&self, part: RenderPart) -> u16;
fn color(&self, part: RenderPart) -> Option<Color>;
fn layout(&self) -> Option<Layout>;
fn layout_line(&self) -> Option<LayoutLine>;
fn 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>);
}