本页内容

C

Qul::PlatformInterface::GradientStop Class

class Qul::PlatformInterface::GradientStop

表示渐变中的单个渐变停点。更多...

Header: #include <platforminterface/drawingengine.h>
Since: Qt Quick Ultralite (Platform) 2.7

公共函数

GradientStop()
GradientStop(float position, Qul::PlatformInterface::Rgba32 color)
Qul::PlatformInterface::Rgba32 color() const
float position() const

详细说明

渐变停点定义了渐变中给定位置的颜色。

成员函数文档

GradientStop::GradientStop()

创建一个默认的Qul::PlatformInterface::GradientStop 实例,其位置设置为0,颜色设置为透明。

GradientStop::GradientStop(float position, Qul::PlatformInterface::Rgba32 color)

根据给定的position 和color ,构建一个Qul::PlatformInterface::GradientStop 实例。

Qul::PlatformInterface::Rgba32 GradientStop::color() const

返回渐变停点的颜色。

float GradientStop::position() const

返回渐变停点的位置。

在某些 Qt 许可下可用。
了解更多信息。