QGIS API Documentation  2.18.3-Las Palmas (77b8c3d)
Public Member Functions | Public Attributes | List of all members
QgsGradientStop Class Reference

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

#include <qgsvectorcolorrampv2.h>

Public Member Functions

 QgsGradientStop (double o, const QColor &c)
 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 gradient color ramp.

Definition at line 67 of file qgsvectorcolorrampv2.h.

Constructor & Destructor Documentation

QgsGradientStop::QgsGradientStop ( double  o,
const QColor c 
)
inline

Constructor for QgsGradientStop.

Parameters
opositional offset for stop, between 0 and 1.0
ccolor for stop

Definition at line 75 of file qgsvectorcolorrampv2.h.

Member Function Documentation

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

Definition at line 85 of file qgsvectorcolorrampv2.h.

Member Data Documentation

QColor QgsGradientStop::color

Gradient color at stop.

Definition at line 83 of file qgsvectorcolorrampv2.h.

double QgsGradientStop::offset

Relative positional offset, between 0 and 1.

Definition at line 81 of file qgsvectorcolorrampv2.h.


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