QGIS API Documentation  3.22.4-Białowieża (ce8e65e95e)
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 112 of file qgscolorramp.h.

Constructor & Destructor Documentation

◆ QgsGradientStop()

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 121 of file qgscolorramp.h.

Member Function Documentation

◆ operator==()

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

Definition at line 131 of file qgscolorramp.h.

Member Data Documentation

◆ color

QColor QgsGradientStop::color

Gradient color at stop.

Definition at line 129 of file qgscolorramp.h.

◆ offset

double QgsGradientStop::offset

Relative positional offset, between 0 and 1.

Definition at line 127 of file qgscolorramp.h.


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