vrdLinearGradientStop

class vrdLinearGradientStop

(Inherits vrdData)

Holds the data of a stop of a linear gradient.

Functions

vrdLinearGradientStop.getColor()

Gets the color.

Returns:The color of the stop.
Return type:QColor
vrdLinearGradientStop.getMidColorPosition()

Gets the position of the mid-color.

Returns:Relative position of the mid-color between previous and this stop.
Return type:qreal
vrdLinearGradientStop.getPosition()

Gets the position.

Returns:The position of the stop within the gradient.
Return type:qreal
vrdLinearGradientStop.isPositionLess(other)

Compares the position to the position of another stop.

Parameters:other (vrdLinearGradientStop) – The stop to compare to.
Returns:True if the position is less than the position of the other stop.
Return type:bool
vrdLinearGradientStop.isPositionLess(otherPosition)

Compares the position to another position.

Parameters:otherPosition (float) – The other position to compare to.
Returns:True if the position is less than the other position.
Return type:bool
vrdLinearGradientStop.setColor(color)

Sets the color.

Parameters:color (QColor) – The color of the stop.
vrdLinearGradientStop.setMidColorPosition(midColorPosition)

Sets the position of the mid-color.

Parameters:midColorPosition (qreal) – Relative position of the mid-color between previous and this stop.
vrdLinearGradientStop.setPosition(position)

Sets the position.

Parameters:position (qreal) – The position of the stop within the gradient.
vrdLinearGradientStop.vrdLinearGradientStop()

Default constructor.

vrdLinearGradientStop.vrdLinearGradientStop(color, position, midColorPosition)

Constructor with parameters.

Parameters:
  • color (QColor) – Color of the stop.
  • position (qreal) – Position of the stop within the gradient.
  • midColorPosition (qreal) – Relative position of the mid-color between previous and this stop.