Skip to main content

QPainterPath

Struct QPainterPath 

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

C++ class: QPainterPath.

Implementations§

Source§

impl QPainterPath

Source

pub unsafe fn add_assign( &self, other: impl CastInto<Ref<QPainterPath>>, ) -> Ref<QPainterPath>

Calls C++ function: QPainterPath& QPainterPath::operator+=(const QPainterPath& other).

Source

pub unsafe fn add_ellipse_1a(&self, rect: impl CastInto<Ref<QRectF>>)

Calls C++ function: void QPainterPath::addEllipse(const QRectF& rect).

Source

pub unsafe fn add_ellipse_4a( &self, x: c_double, y: c_double, w: c_double, h: c_double, )

Calls C++ function: void QPainterPath::addEllipse(double x, double y, double w, double h).

Source

pub unsafe fn add_ellipse_3a( &self, center: impl CastInto<Ref<QPointF>>, rx: c_double, ry: c_double, )

Calls C++ function: void QPainterPath::addEllipse(const QPointF& center, double rx, double ry).

Source

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

Calls C++ function: void QPainterPath::addPath(const QPainterPath& path).

Source

pub unsafe fn add_polygon(&self, polygon: impl CastInto<Ref<QPolygonF>>)

Calls C++ function: void QPainterPath::addPolygon(const QPolygonF& polygon).

Source

pub unsafe fn add_rect_1a(&self, rect: impl CastInto<Ref<QRectF>>)

Calls C++ function: void QPainterPath::addRect(const QRectF& rect).

Source

pub unsafe fn add_rect_4a( &self, x: c_double, y: c_double, w: c_double, h: c_double, )

Calls C++ function: void QPainterPath::addRect(double x, double y, double w, double h).

Source

pub unsafe fn add_region(&self, region: impl CastInto<Ref<QRegion>>)

Calls C++ function: void QPainterPath::addRegion(const QRegion& region).

Source

pub unsafe fn add_round_rect_3a( &self, rect: impl CastInto<Ref<QRectF>>, x_rnd: c_int, y_rnd: c_int, )

Calls C++ function: void QPainterPath::addRoundRect(const QRectF& rect, int xRnd, int yRnd).

Source

pub unsafe fn add_round_rect_6a( &self, x: c_double, y: c_double, w: c_double, h: c_double, x_rnd: c_int, y_rnd: c_int, )

Calls C++ function: void QPainterPath::addRoundRect(double x, double y, double w, double h, int xRnd, int yRnd).

Source

pub unsafe fn add_round_rect_2a( &self, rect: impl CastInto<Ref<QRectF>>, roundness: c_int, )

Calls C++ function: void QPainterPath::addRoundRect(const QRectF& rect, int roundness).

Source

pub unsafe fn add_round_rect_5a( &self, x: c_double, y: c_double, w: c_double, h: c_double, roundness: c_int, )

Calls C++ function: void QPainterPath::addRoundRect(double x, double y, double w, double h, int roundness).

Source

pub unsafe fn add_rounded_rect_4a( &self, rect: impl CastInto<Ref<QRectF>>, x_radius: c_double, y_radius: c_double, mode: SizeMode, )

Calls C++ function: void QPainterPath::addRoundedRect(const QRectF& rect, double xRadius, double yRadius, Qt::SizeMode mode = …).

Source

pub unsafe fn add_rounded_rect_7a( &self, x: c_double, y: c_double, w: c_double, h: c_double, x_radius: c_double, y_radius: c_double, mode: SizeMode, )

Calls C++ function: void QPainterPath::addRoundedRect(double x, double y, double w, double h, double xRadius, double yRadius, Qt::SizeMode mode = …).

Source

pub unsafe fn add_rounded_rect_3a( &self, rect: impl CastInto<Ref<QRectF>>, x_radius: c_double, y_radius: c_double, )

Calls C++ function: void QPainterPath::addRoundedRect(const QRectF& rect, double xRadius, double yRadius).

Source

pub unsafe fn add_rounded_rect_6a( &self, x: c_double, y: c_double, w: c_double, h: c_double, x_radius: c_double, y_radius: c_double, )

Calls C++ function: void QPainterPath::addRoundedRect(double x, double y, double w, double h, double xRadius, double yRadius).

Source

pub unsafe fn add_text_3a( &self, point: impl CastInto<Ref<QPointF>>, f: impl CastInto<Ref<QFont>>, text: impl CastInto<Ref<QString>>, )

Calls C++ function: void QPainterPath::addText(const QPointF& point, const QFont& f, const QString& text).

Source

pub unsafe fn add_text_4a( &self, x: c_double, y: c_double, f: impl CastInto<Ref<QFont>>, text: impl CastInto<Ref<QString>>, )

Calls C++ function: void QPainterPath::addText(double x, double y, const QFont& f, const QString& text).

Source

pub unsafe fn angle_at_percent(&self, t: c_double) -> c_double

Calls C++ function: double QPainterPath::angleAtPercent(double t) const.

Source

pub unsafe fn arc_move_to_2a( &self, rect: impl CastInto<Ref<QRectF>>, angle: c_double, )

Calls C++ function: void QPainterPath::arcMoveTo(const QRectF& rect, double angle).

Source

pub unsafe fn arc_move_to_5a( &self, x: c_double, y: c_double, w: c_double, h: c_double, angle: c_double, )

Calls C++ function: void QPainterPath::arcMoveTo(double x, double y, double w, double h, double angle).

Source

pub unsafe fn arc_to_3a( &self, rect: impl CastInto<Ref<QRectF>>, start_angle: c_double, arc_length: c_double, )

Calls C++ function: void QPainterPath::arcTo(const QRectF& rect, double startAngle, double arcLength).

Source

pub unsafe fn arc_to_6a( &self, x: c_double, y: c_double, w: c_double, h: c_double, start_angle: c_double, arc_length: c_double, )

Calls C++ function: void QPainterPath::arcTo(double x, double y, double w, double h, double startAngle, double arcLength).

Source

pub unsafe fn bit_and_assign( &self, other: impl CastInto<Ref<QPainterPath>>, ) -> Ref<QPainterPath>

Calls C++ function: QPainterPath& QPainterPath::operator&=(const QPainterPath& other).

Source

pub unsafe fn bit_or_assign( &self, other: impl CastInto<Ref<QPainterPath>>, ) -> Ref<QPainterPath>

Calls C++ function: QPainterPath& QPainterPath::operator|=(const QPainterPath& other).

Source

pub unsafe fn bounding_rect(&self) -> CppBox<QRectF>

Calls C++ function: QRectF QPainterPath::boundingRect() const.

Source

pub unsafe fn capacity(&self) -> c_int

Calls C++ function: int QPainterPath::capacity() const.

Source

pub unsafe fn clear(&self)

Calls C++ function: void QPainterPath::clear().

Source

pub unsafe fn close_subpath(&self)

Calls C++ function: void QPainterPath::closeSubpath().

Source

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

Calls C++ function: void QPainterPath::connectPath(const QPainterPath& path).

Source

pub unsafe fn contains_q_point_f(&self, pt: impl CastInto<Ref<QPointF>>) -> bool

Calls C++ function: bool QPainterPath::contains(const QPointF& pt) const.

Source

pub unsafe fn contains_q_rect_f(&self, rect: impl CastInto<Ref<QRectF>>) -> bool

Calls C++ function: bool QPainterPath::contains(const QRectF& rect) const.

Source

pub unsafe fn contains_q_painter_path( &self, p: impl CastInto<Ref<QPainterPath>>, ) -> bool

Calls C++ function: bool QPainterPath::contains(const QPainterPath& p) const.

Source

pub unsafe fn control_point_rect(&self) -> CppBox<QRectF>

Calls C++ function: QRectF QPainterPath::controlPointRect() const.

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QPainterPath>>, ) -> Ref<QPainterPath>

Calls C++ function: QPainterPath& QPainterPath::operator=(const QPainterPath& other).

Source

pub unsafe fn cubic_to_3a( &self, ctrl_pt1: impl CastInto<Ref<QPointF>>, ctrl_pt2: impl CastInto<Ref<QPointF>>, end_pt: impl CastInto<Ref<QPointF>>, )

Calls C++ function: void QPainterPath::cubicTo(const QPointF& ctrlPt1, const QPointF& ctrlPt2, const QPointF& endPt).

Source

pub unsafe fn cubic_to_6a( &self, ctrl_pt_1x: c_double, ctrl_pt_1y: c_double, ctrl_pt_2x: c_double, ctrl_pt_2y: c_double, end_ptx: c_double, end_pty: c_double, )

Calls C++ function: void QPainterPath::cubicTo(double ctrlPt1x, double ctrlPt1y, double ctrlPt2x, double ctrlPt2y, double endPtx, double endPty).

Source

pub unsafe fn current_position(&self) -> CppBox<QPointF>

Calls C++ function: QPointF QPainterPath::currentPosition() const.

Source

pub unsafe fn element_at(&self, i: c_int) -> CppBox<Element>

Calls C++ function: QPainterPath::Element QPainterPath::elementAt(int i) const.

Source

pub unsafe fn element_count(&self) -> c_int

Calls C++ function: int QPainterPath::elementCount() const.

Source

pub unsafe fn fill_rule(&self) -> FillRule

Calls C++ function: Qt::FillRule QPainterPath::fillRule() const.

Source

pub unsafe fn intersected( &self, r: impl CastInto<Ref<QPainterPath>>, ) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath QPainterPath::intersected(const QPainterPath& r) const.

Source

pub unsafe fn intersects_q_rect_f( &self, rect: impl CastInto<Ref<QRectF>>, ) -> bool

Calls C++ function: bool QPainterPath::intersects(const QRectF& rect) const.

Source

pub unsafe fn intersects_q_painter_path( &self, p: impl CastInto<Ref<QPainterPath>>, ) -> bool

Calls C++ function: bool QPainterPath::intersects(const QPainterPath& p) const.

Source

pub unsafe fn is_empty(&self) -> bool

Calls C++ function: bool QPainterPath::isEmpty() const.

Source

pub unsafe fn length(&self) -> c_double

Calls C++ function: double QPainterPath::length() const.

Source

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

Calls C++ function: void QPainterPath::lineTo(const QPointF& p).

Source

pub unsafe fn line_to_2a(&self, x: c_double, y: c_double)

Calls C++ function: void QPainterPath::lineTo(double x, double y).

Source

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

Calls C++ function: void QPainterPath::moveTo(const QPointF& p).

Source

pub unsafe fn move_to_2a(&self, x: c_double, y: c_double)

Calls C++ function: void QPainterPath::moveTo(double x, double y).

Source

pub unsafe fn new_0a() -> CppBox<QPainterPath>

Calls C++ function: [constructor] void QPainterPath::QPainterPath().

Source

pub unsafe fn new_1a( start_point: impl CastInto<Ref<QPointF>>, ) -> CppBox<QPainterPath>

Calls C++ function: [constructor] void QPainterPath::QPainterPath(const QPointF& startPoint).

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<QPainterPath>>, ) -> CppBox<QPainterPath>

Calls C++ function: [constructor] void QPainterPath::QPainterPath(const QPainterPath& other).

Source

pub unsafe fn percent_at_length(&self, t: c_double) -> c_double

Calls C++ function: double QPainterPath::percentAtLength(double t) const.

Source

pub unsafe fn point_at_percent(&self, t: c_double) -> CppBox<QPointF>

Calls C++ function: QPointF QPainterPath::pointAtPercent(double t) const.

Source

pub unsafe fn quad_to_2a( &self, ctrl_pt: impl CastInto<Ref<QPointF>>, end_pt: impl CastInto<Ref<QPointF>>, )

Calls C++ function: void QPainterPath::quadTo(const QPointF& ctrlPt, const QPointF& endPt).

Source

pub unsafe fn quad_to_4a( &self, ctrl_ptx: c_double, ctrl_pty: c_double, end_ptx: c_double, end_pty: c_double, )

Calls C++ function: void QPainterPath::quadTo(double ctrlPtx, double ctrlPty, double endPtx, double endPty).

Source

pub unsafe fn reserve(&self, size: c_int)

Calls C++ function: void QPainterPath::reserve(int size).

Source

pub unsafe fn set_element_position_at(&self, i: c_int, x: c_double, y: c_double)

Calls C++ function: void QPainterPath::setElementPositionAt(int i, double x, double y).

Source

pub unsafe fn set_fill_rule(&self, fill_rule: FillRule)

Calls C++ function: void QPainterPath::setFillRule(Qt::FillRule fillRule).

Source

pub unsafe fn simplified(&self) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath QPainterPath::simplified() const.

Source

pub unsafe fn slope_at_percent(&self, t: c_double) -> c_double

Calls C++ function: double QPainterPath::slopeAtPercent(double t) const.

Source

pub unsafe fn sub_assign( &self, other: impl CastInto<Ref<QPainterPath>>, ) -> Ref<QPainterPath>

Calls C++ function: QPainterPath& QPainterPath::operator-=(const QPainterPath& other).

Source

pub unsafe fn subtracted( &self, r: impl CastInto<Ref<QPainterPath>>, ) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath QPainterPath::subtracted(const QPainterPath& r) const.

Source

pub unsafe fn subtracted_inverted( &self, r: impl CastInto<Ref<QPainterPath>>, ) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath QPainterPath::subtractedInverted(const QPainterPath& r) const.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QPainterPath>>)

Calls C++ function: void QPainterPath::swap(QPainterPath& other).

Source

pub unsafe fn to_fill_polygon_q_matrix( &self, matrix: impl CastInto<Ref<QMatrix>>, ) -> CppBox<QPolygonF>

Calls C++ function: QPolygonF QPainterPath::toFillPolygon(const QMatrix& matrix) const.

Source

pub unsafe fn to_fill_polygon_q_transform( &self, matrix: impl CastInto<Ref<QTransform>>, ) -> CppBox<QPolygonF>

Calls C++ function: QPolygonF QPainterPath::toFillPolygon(const QTransform& matrix = …) const.

Source

pub unsafe fn to_fill_polygon(&self) -> CppBox<QPolygonF>

Calls C++ function: QPolygonF QPainterPath::toFillPolygon() const.

Source

pub unsafe fn to_fill_polygons_q_matrix( &self, matrix: impl CastInto<Ref<QMatrix>>, ) -> CppBox<QListOfQPolygonF>

Calls C++ function: QList<QPolygonF> QPainterPath::toFillPolygons(const QMatrix& matrix) const.

Source

pub unsafe fn to_fill_polygons_q_transform( &self, matrix: impl CastInto<Ref<QTransform>>, ) -> CppBox<QListOfQPolygonF>

Calls C++ function: QList<QPolygonF> QPainterPath::toFillPolygons(const QTransform& matrix = …) const.

Source

pub unsafe fn to_fill_polygons(&self) -> CppBox<QListOfQPolygonF>

Calls C++ function: QList<QPolygonF> QPainterPath::toFillPolygons() const.

Source

pub unsafe fn to_reversed(&self) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath QPainterPath::toReversed() const.

Source

pub unsafe fn to_subpath_polygons_q_matrix( &self, matrix: impl CastInto<Ref<QMatrix>>, ) -> CppBox<QListOfQPolygonF>

Calls C++ function: QList<QPolygonF> QPainterPath::toSubpathPolygons(const QMatrix& matrix) const.

Source

pub unsafe fn to_subpath_polygons_q_transform( &self, matrix: impl CastInto<Ref<QTransform>>, ) -> CppBox<QListOfQPolygonF>

Calls C++ function: QList<QPolygonF> QPainterPath::toSubpathPolygons(const QTransform& matrix = …) const.

Source

pub unsafe fn to_subpath_polygons(&self) -> CppBox<QListOfQPolygonF>

Calls C++ function: QList<QPolygonF> QPainterPath::toSubpathPolygons() const.

Source

pub unsafe fn translate_2a(&self, dx: c_double, dy: c_double)

Calls C++ function: void QPainterPath::translate(double dx, double dy).

Source

pub unsafe fn translate_1a(&self, offset: impl CastInto<Ref<QPointF>>)

Calls C++ function: void QPainterPath::translate(const QPointF& offset).

Source

pub unsafe fn translated_2a( &self, dx: c_double, dy: c_double, ) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath QPainterPath::translated(double dx, double dy) const.

Source

pub unsafe fn translated_1a( &self, offset: impl CastInto<Ref<QPointF>>, ) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath QPainterPath::translated(const QPointF& offset) const.

Source

pub unsafe fn united( &self, r: impl CastInto<Ref<QPainterPath>>, ) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath QPainterPath::united(const QPainterPath& r) const.

Trait Implementations§

Source§

impl Add<Ref<QPainterPath>> for &QPainterPath

Source§

fn add(self, other: Ref<QPainterPath>) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath QPainterPath::operator+(const QPainterPath& other) const.

Source§

type Output = CppBox<QPainterPath>

The resulting type after applying the + operator.
Source§

impl BitAnd<Ref<QPainterPath>> for &QPainterPath

Source§

fn bitand(self, other: Ref<QPainterPath>) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath QPainterPath::operator&(const QPainterPath& other) const.

Source§

type Output = CppBox<QPainterPath>

The resulting type after applying the & operator.
Source§

impl BitOr<Ref<QPainterPath>> for &QPainterPath

Source§

fn bitor(self, other: Ref<QPainterPath>) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath QPainterPath::operator|(const QPainterPath& other) const.

Source§

type Output = CppBox<QPainterPath>

The resulting type after applying the | operator.
Source§

impl CppDeletable for QPainterPath

Source§

unsafe fn delete(&self)

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

Source§

impl Mul<Ref<QMatrix>> for &QPainterPath

Source§

fn mul(self, m: Ref<QMatrix>) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath operator*(const QPainterPath& p, const QMatrix& m).

Source§

type Output = CppBox<QPainterPath>

The resulting type after applying the * operator.
Source§

impl Mul<Ref<QTransform>> for &QPainterPath

Source§

fn mul(self, m: Ref<QTransform>) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath operator*(const QPainterPath& p, const QTransform& m).

Source§

type Output = CppBox<QPainterPath>

The resulting type after applying the * operator.
Source§

impl PartialEq<Ref<QPainterPath>> for QPainterPath

Source§

fn eq(&self, other: &Ref<QPainterPath>) -> bool

Calls C++ function: bool QPainterPath::operator==(const QPainterPath& other) const.

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Sub<Ref<QPainterPath>> for &QPainterPath

Source§

fn sub(self, other: Ref<QPainterPath>) -> CppBox<QPainterPath>

Calls C++ function: QPainterPath QPainterPath::operator-(const QPainterPath& other) const.

Source§

type Output = CppBox<QPainterPath>

The resulting type after applying the - operator.

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.