QGIS API Documentation 3.39.0-Master (47f7b3a4989)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsStyleColorRampEntity Class Reference

A color ramp entity for QgsStyle databases. More...

#include <qgsstyle.h>

Inheritance diagram for QgsStyleColorRampEntity:
Inheritance graph
[legend]

Public Member Functions

 QgsStyleColorRampEntity (QgsColorRamp *ramp)
 Constructor for QgsStyleColorRampEntity, with the specified color ramp.
 
QgsColorRampramp () const
 Returns the entity's color ramp.
 
QgsStyle::StyleEntity type () const override
 Returns the type of style entity.
 
- Public Member Functions inherited from QgsStyleEntityInterface
virtual ~QgsStyleEntityInterface ()=default
 

Detailed Description

A color ramp entity for QgsStyle databases.

Since
QGIS 3.10

Definition at line 1403 of file qgsstyle.h.

Constructor & Destructor Documentation

◆ QgsStyleColorRampEntity()

QgsStyleColorRampEntity::QgsStyleColorRampEntity ( QgsColorRamp ramp)
inline

Constructor for QgsStyleColorRampEntity, with the specified color ramp.

Ownership of ramp is NOT transferred.

Definition at line 1412 of file qgsstyle.h.

Member Function Documentation

◆ ramp()

QgsColorRamp * QgsStyleColorRampEntity::ramp ( ) const
inline

Returns the entity's color ramp.

Definition at line 1421 of file qgsstyle.h.

◆ type()

QgsStyle::StyleEntity QgsStyleColorRampEntity::type ( ) const
overridevirtual

Returns the type of style entity.

Implements QgsStyleEntityInterface.

Definition at line 3436 of file qgsstyle.cpp.


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