Skip to main content

QRadialGradient

Struct QRadialGradient 

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

C++ class: QRadialGradient.

Implementations§

Source§

impl QRadialGradient

Source

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

Calls C++ function: QPointF QRadialGradient::center() const.

Source

pub unsafe fn center_radius(&self) -> c_double

Calls C++ function: double QRadialGradient::centerRadius() const.

Source

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

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

Source

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

Calls C++ function: QPointF QRadialGradient::focalPoint() const.

Source

pub unsafe fn focal_radius(&self) -> c_double

Calls C++ function: double QRadialGradient::focalRadius() const.

Source

pub unsafe fn new() -> CppBox<QRadialGradient>

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

Source

pub unsafe fn from_q_point_f_double_q_point_f( center: impl CastInto<Ref<QPointF>>, radius: c_double, focal_point: impl CastInto<Ref<QPointF>>, ) -> CppBox<QRadialGradient>

Calls C++ function: [constructor] void QRadialGradient::QRadialGradient(const QPointF& center, double radius, const QPointF& focalPoint).

Source

pub unsafe fn from_5_double( cx: c_double, cy: c_double, radius: c_double, fx: c_double, fy: c_double, ) -> CppBox<QRadialGradient>

Calls C++ function: [constructor] void QRadialGradient::QRadialGradient(double cx, double cy, double radius, double fx, double fy).

Source

pub unsafe fn from_q_point_f_double( center: impl CastInto<Ref<QPointF>>, radius: c_double, ) -> CppBox<QRadialGradient>

Calls C++ function: [constructor] void QRadialGradient::QRadialGradient(const QPointF& center, double radius).

Source

pub unsafe fn from_3_double( cx: c_double, cy: c_double, radius: c_double, ) -> CppBox<QRadialGradient>

Calls C++ function: [constructor] void QRadialGradient::QRadialGradient(double cx, double cy, double radius).

Source

pub unsafe fn from_q_point_f_double_q_point_f_double( center: impl CastInto<Ref<QPointF>>, center_radius: c_double, focal_point: impl CastInto<Ref<QPointF>>, focal_radius: c_double, ) -> CppBox<QRadialGradient>

Calls C++ function: [constructor] void QRadialGradient::QRadialGradient(const QPointF& center, double centerRadius, const QPointF& focalPoint, double focalRadius).

Source

pub unsafe fn from_6_double( cx: c_double, cy: c_double, center_radius: c_double, fx: c_double, fy: c_double, focal_radius: c_double, ) -> CppBox<QRadialGradient>

Calls C++ function: [constructor] void QRadialGradient::QRadialGradient(double cx, double cy, double centerRadius, double fx, double fy, double focalRadius).

Source

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

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

Source

pub unsafe fn radius(&self) -> c_double

Calls C++ function: double QRadialGradient::radius() const.

Source

pub unsafe fn set_center_1a(&self, center: impl CastInto<Ref<QPointF>>)

Calls C++ function: void QRadialGradient::setCenter(const QPointF& center).

Source

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

Calls C++ function: void QRadialGradient::setCenter(double x, double y).

Source

pub unsafe fn set_center_radius(&self, radius: c_double)

Calls C++ function: void QRadialGradient::setCenterRadius(double radius).

Source

pub unsafe fn set_focal_point_1a( &self, focal_point: impl CastInto<Ref<QPointF>>, )

Calls C++ function: void QRadialGradient::setFocalPoint(const QPointF& focalPoint).

Source

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

Calls C++ function: void QRadialGradient::setFocalPoint(double x, double y).

Source

pub unsafe fn set_focal_radius(&self, radius: c_double)

Calls C++ function: void QRadialGradient::setFocalRadius(double radius).

Source

pub unsafe fn set_radius(&self, radius: c_double)

Calls C++ function: void QRadialGradient::setRadius(double radius).

Methods from Deref<Target = QGradient>§

Source

pub unsafe fn coordinate_mode(&self) -> CoordinateMode

Calls C++ function: QGradient::CoordinateMode QGradient::coordinateMode() const.

Source

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

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

Source

pub unsafe fn interpolation_mode(&self) -> InterpolationMode

Calls C++ function: QGradient::InterpolationMode QGradient::interpolationMode() const.

Source

pub unsafe fn set_color_at( &self, pos: c_double, color: impl CastInto<Ref<QColor>>, )

Calls C++ function: void QGradient::setColorAt(double pos, const QColor& color).

Source

pub unsafe fn set_coordinate_mode(&self, mode: CoordinateMode)

Calls C++ function: void QGradient::setCoordinateMode(QGradient::CoordinateMode mode).

Source

pub unsafe fn set_interpolation_mode(&self, mode: InterpolationMode)

Calls C++ function: void QGradient::setInterpolationMode(QGradient::InterpolationMode mode).

Source

pub unsafe fn set_spread(&self, spread: Spread)

Calls C++ function: void QGradient::setSpread(QGradient::Spread spread).

Source

pub unsafe fn set_stops( &self, stops: impl CastInto<Ref<QVectorOfQPairOfDoubleQColor>>, )

Calls C++ function: void QGradient::setStops(const QVector<QPair<double, QColor>>& stops).

Source

pub unsafe fn spread(&self) -> Spread

Calls C++ function: QGradient::Spread QGradient::spread() const.

Source

pub unsafe fn stops(&self) -> CppBox<QVectorOfQPairOfDoubleQColor>

Calls C++ function: QVector<QPair<double, QColor>> QGradient::stops() const.

Source

pub unsafe fn type_(&self) -> Type

Calls C++ function: QGradient::Type QGradient::type() const.

Trait Implementations§

Source§

impl CppDeletable for QRadialGradient

Source§

unsafe fn delete(&self)

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

Source§

impl Deref for QRadialGradient

Source§

fn deref(&self) -> &QGradient

Calls C++ function: QGradient* static_cast<QGradient*>(QRadialGradient* ptr).

Source§

type Target = QGradient

The resulting type after dereferencing.
Source§

impl StaticDowncast<QRadialGradient> for QGradient

Source§

unsafe fn static_downcast(ptr: Ptr<QGradient>) -> Ptr<QRadialGradient>

Calls C++ function: QRadialGradient* static_cast<QRadialGradient*>(QGradient* ptr).

Source§

impl StaticUpcast<QGradient> for QRadialGradient

Source§

unsafe fn static_upcast(ptr: Ptr<QRadialGradient>) -> Ptr<QGradient>

Calls C++ function: QGradient* static_cast<QGradient*>(QRadialGradient* ptr).

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.