Struct qmetaobject::QPainter
source · #[repr(C)]pub struct QPainter { /* private fields */ }
Expand description
Wrapper around QPainter
class.
Implementations§
source§impl QPainter
impl QPainter
pub fn draw_arc(&mut self, rectangle: QRectF, start_angle: i32, span_angle: i32)
pub fn draw_chord( &mut self, rectangle: QRectF, start_angle: i32, span_angle: i32 )
pub fn draw_convex_polygon(&mut self, points: &[QPointF])
pub fn draw_ellipse(&mut self, rectangle: QRectF)
pub fn draw_ellipse_with_center(&mut self, center: QPointF, rx: f64, ry: f64)
pub fn draw_image_fit_rect(&mut self, rectangle: QRectF, image: QImage)
pub fn draw_image_at_point(&mut self, point: QPointF, image: QImage)
pub fn draw_image_fit_rect_with_source( &mut self, rectangle: QRectF, image: QImage, source_rect: QRectF )
pub fn draw_image_at_point_with_source( &mut self, point: QPointF, image: QImage, source_rect: QRectF )
pub fn draw_line(&mut self, line: QLineF)
pub fn draw_lines(&mut self, lines: &[QLineF])
pub fn draw_lines_from_points(&mut self, point_pairs: &[QPointF])
pub fn draw_pie(&mut self, rectangle: QRectF, start_angle: i32, span_angle: i32)
pub fn draw_point(&mut self, point: QPointF)
pub fn draw_points(&mut self, points: &[QPointF])
pub fn draw_polygon(&mut self, points: &[QPointF])
pub fn draw_polyline(&mut self, points: &[QPointF])
pub fn draw_rect(&mut self, rectangle: QRectF)
pub fn draw_rects(&mut self, rects: &[QRectF])
pub fn draw_rounded_rect(&mut self, rect: QRectF, x_radius: f64, y_radius: f64)
pub fn draw_text(&mut self, position: QPointF, text: QString)
pub fn draw_text_in_rect( &mut self, rectangle: QRectF, flags: u32, text: QString ) -> QRectF
pub fn erase_rect(&mut self, rectangle: QRectF)
pub fn fill_rect(&mut self, rectangle: QRectF, brush: QBrush)
pub fn reset_transform(&mut self)
pub fn restore(&mut self)
pub fn rotate(&mut self, angle: f64)
pub fn save(&mut self)
pub fn scale(&mut self, sx: f64, sy: f64)
pub fn set_background(&mut self, brush: QBrush)
pub fn set_brush(&mut self, brush: QBrush)
pub fn set_opacity(&mut self, opacity: f64)
pub fn set_pen(&mut self, pen: QPen)
pub fn translate(&mut self, offset: QPointF)
pub fn set_render_hint(&mut self, hint: QPainterRenderHint, on: bool)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for QPainter
impl Send for QPainter
impl Sync for QPainter
impl Unpin for QPainter
impl UnwindSafe for QPainter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more