[][src]Struct resvg_qt::Painter

pub struct Painter(_, _);

Methods

impl Painter[src]

pub fn new(img: &mut Image) -> Painter[src]

pub unsafe fn from_raw(ptr: *mut qtc_qpainter) -> Painter[src]

pub fn set_antialiasing(&self, flag: bool)[src]

pub fn set_smooth_pixmap_transform(&self, flag: bool)[src]

pub fn set_pen(&mut self, pen: Pen)[src]

pub fn reset_pen(&mut self)[src]

pub fn set_brush(&mut self, brush: Brush)[src]

pub fn reset_brush(&mut self)[src]

pub fn set_opacity(&mut self, opacity: f64)[src]

pub fn draw_path(&mut self, path: &PainterPath)[src]

pub fn draw_image(&mut self, x: f64, y: f64, img: &Image)[src]

pub fn draw_image_rect(&mut self, x: f64, y: f64, w: f64, h: f64, img: &Image)[src]

pub fn draw_rect(&mut self, x: f64, y: f64, w: f64, h: f64)[src]

pub fn translate(&mut self, tx: f64, ty: f64)[src]

pub fn scale(&mut self, sx: f64, sy: f64)[src]

pub fn get_transform(&self) -> Transform[src]

pub fn set_transform(&mut self, ts: &Transform)[src]

pub fn apply_transform(&mut self, ts: &Transform)[src]

pub fn set_clip_rect(&mut self, x: f64, y: f64, w: f64, h: f64)[src]

pub fn set_clip_path(&mut self, path: &PainterPath)[src]

pub fn reset_clip_path(&mut self)[src]

pub fn set_composition_mode(&mut self, mode: CompositionMode)[src]

pub fn end(&mut self)[src]

Trait Implementations

impl Drop for Painter[src]

Auto Trait Implementations

impl RefUnwindSafe for Painter

impl !Send for Painter

impl !Sync for Painter

impl Unpin for Painter

impl UnwindSafe for Painter

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.