Skip to main content

QPaintEngine

Struct QPaintEngine 

Source
pub struct QPaintEngine { /* private fields */ }
Expand description

C++ class: QPaintEngine.

Implementations§

Source§

impl QPaintEngine

Source

pub unsafe fn begin(&self, pdev: impl CastInto<Ptr<QPaintDevice>>) -> bool

Calls C++ function: pure virtual bool QPaintEngine::begin(QPaintDevice* pdev).

Source

pub unsafe fn clear_dirty(&self, df: QFlags<DirtyFlag>)

Calls C++ function: void QPaintEngine::clearDirty(QFlags<QPaintEngine::DirtyFlag> df).

Source

pub unsafe fn coordinate_offset(&self) -> CppBox<QPoint>

Calls C++ function: virtual QPoint QPaintEngine::coordinateOffset() const.

Source

pub unsafe fn draw_ellipse_q_rect_f(&self, r: impl CastInto<Ref<QRectF>>)

Calls C++ function: virtual void QPaintEngine::drawEllipse(const QRectF& r).

Source

pub unsafe fn draw_ellipse_q_rect(&self, r: impl CastInto<Ref<QRect>>)

Calls C++ function: virtual void QPaintEngine::drawEllipse(const QRect& r).

Source

pub unsafe fn draw_image_4a( &self, r: impl CastInto<Ref<QRectF>>, pm: impl CastInto<Ref<QImage>>, sr: impl CastInto<Ref<QRectF>>, flags: QFlags<ImageConversionFlag>, )

Calls C++ function: virtual void QPaintEngine::drawImage(const QRectF& r, const QImage& pm, const QRectF& sr, QFlags<Qt::ImageConversionFlag> flags = …).

Source

pub unsafe fn draw_image_3a( &self, r: impl CastInto<Ref<QRectF>>, pm: impl CastInto<Ref<QImage>>, sr: impl CastInto<Ref<QRectF>>, )

Calls C++ function: virtual void QPaintEngine::drawImage(const QRectF& r, const QImage& pm, const QRectF& sr).

Source

pub unsafe fn draw_lines_q_line_int( &self, lines: impl CastInto<Ptr<QLine>>, line_count: c_int, )

Calls C++ function: virtual void QPaintEngine::drawLines(const QLine* lines, int lineCount).

Source

pub unsafe fn draw_lines_q_line_f_int( &self, lines: impl CastInto<Ptr<QLineF>>, line_count: c_int, )

Calls C++ function: virtual void QPaintEngine::drawLines(const QLineF* lines, int lineCount).

Source

pub unsafe fn draw_path(&self, path: impl CastInto<Ref<QPainterPath>>)

Calls C++ function: virtual void QPaintEngine::drawPath(const QPainterPath& path).

Source

pub unsafe fn draw_pixmap( &self, r: impl CastInto<Ref<QRectF>>, pm: impl CastInto<Ref<QPixmap>>, sr: impl CastInto<Ref<QRectF>>, )

Calls C++ function: pure virtual void QPaintEngine::drawPixmap(const QRectF& r, const QPixmap& pm, const QRectF& sr).

Source

pub unsafe fn draw_points_q_point_f_int( &self, points: impl CastInto<Ptr<QPointF>>, point_count: c_int, )

Calls C++ function: virtual void QPaintEngine::drawPoints(const QPointF* points, int pointCount).

Source

pub unsafe fn draw_points_q_point_int( &self, points: impl CastInto<Ptr<QPoint>>, point_count: c_int, )

Calls C++ function: virtual void QPaintEngine::drawPoints(const QPoint* points, int pointCount).

Source

pub unsafe fn draw_polygon_q_point_f_int_polygon_draw_mode( &self, points: impl CastInto<Ptr<QPointF>>, point_count: c_int, mode: PolygonDrawMode, )

Calls C++ function: virtual void QPaintEngine::drawPolygon(const QPointF* points, int pointCount, QPaintEngine::PolygonDrawMode mode).

Source

pub unsafe fn draw_polygon_q_point_int_polygon_draw_mode( &self, points: impl CastInto<Ptr<QPoint>>, point_count: c_int, mode: PolygonDrawMode, )

Calls C++ function: virtual void QPaintEngine::drawPolygon(const QPoint* points, int pointCount, QPaintEngine::PolygonDrawMode mode).

Source

pub unsafe fn draw_rects_q_rect_int( &self, rects: impl CastInto<Ptr<QRect>>, rect_count: c_int, )

Calls C++ function: virtual void QPaintEngine::drawRects(const QRect* rects, int rectCount).

Source

pub unsafe fn draw_rects_q_rect_f_int( &self, rects: impl CastInto<Ptr<QRectF>>, rect_count: c_int, )

Calls C++ function: virtual void QPaintEngine::drawRects(const QRectF* rects, int rectCount).

Source

pub unsafe fn draw_text_item( &self, p: impl CastInto<Ref<QPointF>>, text_item: impl CastInto<Ref<QTextItem>>, )

Calls C++ function: virtual void QPaintEngine::drawTextItem(const QPointF& p, const QTextItem& textItem).

Source

pub unsafe fn draw_tiled_pixmap( &self, r: impl CastInto<Ref<QRectF>>, pixmap: impl CastInto<Ref<QPixmap>>, s: impl CastInto<Ref<QPointF>>, )

Calls C++ function: virtual void QPaintEngine::drawTiledPixmap(const QRectF& r, const QPixmap& pixmap, const QPointF& s).

Source

pub unsafe fn end(&self) -> bool

Calls C++ function: pure virtual bool QPaintEngine::end().

Source

pub unsafe fn fix_neg_rect( &self, x: *mut c_int, y: *mut c_int, w: *mut c_int, h: *mut c_int, )

Calls C++ function: void QPaintEngine::fix_neg_rect(int* x, int* y, int* w, int* h).

Source

pub unsafe fn has_feature(&self, feature: QFlags<PaintEngineFeature>) -> bool

Calls C++ function: bool QPaintEngine::hasFeature(QFlags<QPaintEngine::PaintEngineFeature> feature) const.

Source

pub unsafe fn is_active(&self) -> bool

Calls C++ function: bool QPaintEngine::isActive() const.

Source

pub unsafe fn is_extended(&self) -> bool

Calls C++ function: bool QPaintEngine::isExtended() const.

Source

pub unsafe fn paint_device(&self) -> Ptr<QPaintDevice>

Calls C++ function: QPaintDevice* QPaintEngine::paintDevice() const.

Source

pub unsafe fn painter(&self) -> Ptr<QPainter>

Calls C++ function: QPainter* QPaintEngine::painter() const.

Source

pub unsafe fn set_active(&self, new_state: bool)

Calls C++ function: void QPaintEngine::setActive(bool newState).

Source

pub unsafe fn set_dirty(&self, df: QFlags<DirtyFlag>)

Calls C++ function: void QPaintEngine::setDirty(QFlags<QPaintEngine::DirtyFlag> df).

Source

pub unsafe fn set_paint_device(&self, device: impl CastInto<Ptr<QPaintDevice>>)

Calls C++ function: void QPaintEngine::setPaintDevice(QPaintDevice* device).

Source

pub unsafe fn set_system_clip(&self, base_clip: impl CastInto<Ref<QRegion>>)

Calls C++ function: void QPaintEngine::setSystemClip(const QRegion& baseClip).

Source

pub unsafe fn set_system_rect(&self, rect: impl CastInto<Ref<QRect>>)

Calls C++ function: void QPaintEngine::setSystemRect(const QRect& rect).

Source

pub unsafe fn sync_state(&self)

Calls C++ function: void QPaintEngine::syncState().

Source

pub unsafe fn system_clip(&self) -> CppBox<QRegion>

Calls C++ function: QRegion QPaintEngine::systemClip() const.

Source

pub unsafe fn system_rect(&self) -> CppBox<QRect>

Calls C++ function: QRect QPaintEngine::systemRect() const.

Source

pub unsafe fn test_dirty(&self, df: QFlags<DirtyFlag>) -> bool

Calls C++ function: bool QPaintEngine::testDirty(QFlags<QPaintEngine::DirtyFlag> df).

Source

pub unsafe fn type_(&self) -> Type

Calls C++ function: pure virtual QPaintEngine::Type QPaintEngine::type() const.

Source

pub unsafe fn update_state(&self, state: impl CastInto<Ref<QPaintEngineState>>)

Calls C++ function: pure virtual void QPaintEngine::updateState(const QPaintEngineState& state).

Trait Implementations§

Source§

impl CppDeletable for QPaintEngine

Source§

unsafe fn delete(&self)

Calls C++ function: virtual [destructor] void QPaintEngine::~QPaintEngine().

Source§

impl EndMut for QPaintEngine

Source§

unsafe fn end_mut(&self) -> bool

Calls C++ function: pure virtual bool QPaintEngine::end().

Source§

type Output = bool

Output type.

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, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. 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> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

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

Source§

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>,

Source§

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.