QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Member Functions | Public Attributes | List of all members
QgsGradientStop Class Reference

Represents a color stop within a QgsGradientColorRamp color ramp. More...

#include <qgscolorramp.h>

Public Member Functions

 QgsGradientStop (double offset, const QColor &color)
 Constructor for QgsGradientStop. More...
 
bool operator== (const QgsGradientStop &other) const
 

Public Attributes

QColor color
 Gradient color at stop. More...
 
double offset
 Relative positional offset, between 0 and 1. More...
 

Detailed Description

Represents a color stop within a QgsGradientColorRamp color ramp.

Since
QGIS 3.0

Definition at line 101 of file qgscolorramp.h.

Constructor & Destructor Documentation

QgsGradientStop::QgsGradientStop ( double  offset,
const QColor &  color 
)
inline

Constructor for QgsGradientStop.

Parameters
offsetpositional offset for stop, between 0 and 1.0
colorcolor for stop

Definition at line 110 of file qgscolorramp.h.

Member Function Documentation

bool QgsGradientStop::operator== ( const QgsGradientStop other) const
inline

Definition at line 120 of file qgscolorramp.h.

Member Data Documentation

QColor QgsGradientStop::color

Gradient color at stop.

Definition at line 118 of file qgscolorramp.h.

double QgsGradientStop::offset

Relative positional offset, between 0 and 1.

Definition at line 116 of file qgscolorramp.h.


The documentation for this class was generated from the following file: