Struct resvg_qt::Painter
[−]
[src]
pub struct Painter(_, _);
pub struct Painter(_, _);
impl Painter
[src]pub fn new(img: &Image) -> Painter
[src]pub unsafe fn from_raw(ptr: *mut qtc_qpainter) -> Painter
[src]pub fn set_font(&self, font: &Font)
[src]pub fn font_metrics(&self) -> FontMetricsF
[src]pub fn set_pen(&self, pen: Pen)
[src]pub fn reset_pen(&self)
[src]pub fn set_brush(&self, brush: Brush)
[src]pub fn reset_brush(&self)
[src]pub fn set_opacity(&self, opacity: f64)
[src]pub fn draw_path(&self, path: &PainterPath)
[src]pub fn draw_image(&self, x: f64, y: f64, img: &Image)
[src]pub fn draw_text(&self, x: f64, y: f64, text: &str)
[src]pub fn draw_rect(&self, x: f64, y: f64, w: f64, h: f64)
[src]pub fn translate(&self, tx: f64, ty: f64)
[src]pub fn scale(&self, sx: f64, sy: f64)
[src]pub fn get_transform(&self) -> Transform
[src]pub fn set_transform(&self, ts: &Transform)
[src]pub fn apply_transform(&self, ts: &Transform)
[src]pub fn set_clip_rect(&self, x: f64, y: f64, w: f64, h: f64)
[src]pub fn set_clip_path(&self, path: &PainterPath)
[src]pub fn reset_clip_path(&self)
[src]pub fn set_composition_mode(&self, mode: CompositionMode)
[src]pub fn end(&self)
[src]