C

GradientStop Class

class Qul::PlatformInterface::GradientStop

Represents a single gradient stop in a gradient. More...

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

Public Functions

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

Detailed Description

A gradient stop defines the color at a given position in a gradient.

Member Function Documentation

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

Constructs a Qul::PlatformInterface::GradientStop instance with the given position and color.

GradientStop::GradientStop()

Constructs a default Qul::PlatformInterface::GradientStop instance with position set to 0 and the color set to transparent.

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

Returns the color of the gradient stop.

float GradientStop::position() const

Returns the position of the gradient stop.

Available under certain Qt licenses.
Find out more.