Struct qmetaobject::QPainter

source ·
#[repr(C)]
pub struct QPainter { /* private fields */ }
Expand description

Wrapper around QPainter class.

Implementations§

source§

impl QPainter

source

pub fn draw_arc(&mut self, rectangle: QRectF, start_angle: i32, span_angle: i32)

source

pub fn draw_chord( &mut self, rectangle: QRectF, start_angle: i32, span_angle: i32 )

source

pub fn draw_convex_polygon(&mut self, points: &[QPointF])

source

pub fn draw_ellipse(&mut self, rectangle: QRectF)

source

pub fn draw_ellipse_with_center(&mut self, center: QPointF, rx: f64, ry: f64)

source

pub fn draw_image_fit_rect(&mut self, rectangle: QRectF, image: QImage)

source

pub fn draw_image_at_point(&mut self, point: QPointF, image: QImage)

source

pub fn draw_image_fit_rect_with_source( &mut self, rectangle: QRectF, image: QImage, source_rect: QRectF )

source

pub fn draw_image_at_point_with_source( &mut self, point: QPointF, image: QImage, source_rect: QRectF )

source

pub fn draw_line(&mut self, line: QLineF)

source

pub fn draw_lines(&mut self, lines: &[QLineF])

source

pub fn draw_lines_from_points(&mut self, point_pairs: &[QPointF])

source

pub fn draw_pie(&mut self, rectangle: QRectF, start_angle: i32, span_angle: i32)

source

pub fn draw_point(&mut self, point: QPointF)

source

pub fn draw_points(&mut self, points: &[QPointF])

source

pub fn draw_polygon(&mut self, points: &[QPointF])

source

pub fn draw_polyline(&mut self, points: &[QPointF])

source

pub fn draw_rect(&mut self, rectangle: QRectF)

source

pub fn draw_rects(&mut self, rects: &[QRectF])

source

pub fn draw_rounded_rect(&mut self, rect: QRectF, x_radius: f64, y_radius: f64)

source

pub fn draw_text(&mut self, position: QPointF, text: QString)

source

pub fn draw_text_in_rect( &mut self, rectangle: QRectF, flags: u32, text: QString ) -> QRectF

source

pub fn erase_rect(&mut self, rectangle: QRectF)

source

pub fn fill_rect(&mut self, rectangle: QRectF, brush: QBrush)

source

pub fn reset_transform(&mut self)

source

pub fn restore(&mut self)

source

pub fn rotate(&mut self, angle: f64)

source

pub fn save(&mut self)

source

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

source

pub fn set_background(&mut self, brush: QBrush)

source

pub fn set_brush(&mut self, brush: QBrush)

source

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

source

pub fn set_pen(&mut self, pen: QPen)

source

pub fn translate(&mut self, offset: QPointF)

source

pub fn set_render_hint(&mut self, hint: QPainterRenderHint, on: bool)

Trait Implementations§

source§

impl Default for QPainter

source§

fn default() -> QPainter

Returns the “default value” for a type. Read more
source§

impl Drop for QPainter

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.