Skip to main content

QConicalGradient

Struct QConicalGradient 

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

C++ class: QConicalGradient.

Implementations§

Source§

impl QConicalGradient

Source

pub unsafe fn angle(&self) -> c_double

Calls C++ function: double QConicalGradient::angle() const.

Source

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

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

Source

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

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

Source

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

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

Source

pub unsafe fn new_2a( center: impl CastInto<Ref<QPointF>>, start_angle: c_double, ) -> CppBox<QConicalGradient>

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

Source

pub unsafe fn new_3a( cx: c_double, cy: c_double, start_angle: c_double, ) -> CppBox<QConicalGradient>

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

Source

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

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

Source

pub unsafe fn set_angle(&self, angle: c_double)

Calls C++ function: void QConicalGradient::setAngle(double angle).

Source

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

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

Source

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

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

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 QConicalGradient

Source§

unsafe fn delete(&self)

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

Source§

impl Deref for QConicalGradient

Source§

fn deref(&self) -> &QGradient

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

Source§

type Target = QGradient

The resulting type after dereferencing.
Source§

impl StaticDowncast<QConicalGradient> for QGradient

Source§

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

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

Source§

impl StaticUpcast<QGradient> for QConicalGradient

Source§

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

Calls C++ function: QGradient* static_cast<QGradient*>(QConicalGradient* 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.