QGIS API Documentation  2.12.0-Lyon
Public Member Functions | List of all members
GetNamedProjectColor Class Reference
Inheritance diagram for GetNamedProjectColor:
Inheritance graph
[legend]

Public Member Functions

 GetNamedProjectColor ()
 
QgsScopedExpressionFunctionclone () const override
 Returns a clone of the function. More...
 
virtual QVariant func (const QVariantList &values, const QgsExpressionContext *, QgsExpression *) override
 Returns result of evaluating the function. More...
 
- Public Member Functions inherited from QgsScopedExpressionFunction
 QgsScopedExpressionFunction (const QString &fnname, int params, const QString &group, const QString &helpText=QString(), bool usesGeometry=false, const QStringList &referencedColumns=QStringList(), bool lazyEval=false, bool handlesNull=false, bool isContextual=true)
 
virtual ~QgsScopedExpressionFunction ()
 
- Public Member Functions inherited from QgsExpression::Function
 Function (const QString &fnname, int params, const QString &group, const QString &helpText=QString(), bool usesGeometry=false, const QStringList &referencedColumns=QStringList(), bool lazyEval=false, bool handlesNull=false, bool isContextual=false)
 
virtual ~Function ()
 
virtual QStringList aliases () const
 Returns a list of possible aliases for the function. More...
 
virtual Q_DECL_DEPRECATED QVariant func (const QVariantList &, const QgsFeature *, QgsExpression *)
 
QString group ()
 The group the function belongs to. More...
 
virtual bool handlesNull () const
 
const QString helptext ()
 The help text for the function. More...
 
bool isContextual () const
 Returns whether the function is only available if provided by a QgsExpressionContext object. More...
 
bool lazyEval ()
 True if this function should use lazy evaluation. More...
 
QString name ()
 The name of the function. More...
 
bool operator== (const Function &other) const
 
int params ()
 The number of parameters this function takes. More...
 
virtual QStringList referencedColumns () const
 
bool usesgeometry ()
 Does this function use a geometry object. More...
 

Detailed Description

Definition at line 499 of file qgsexpressioncontext.cpp.

Constructor & Destructor Documentation

GetNamedProjectColor::GetNamedProjectColor ( )
inline

Definition at line 502 of file qgsexpressioncontext.cpp.

Member Function Documentation

QgsScopedExpressionFunction* GetNamedProjectColor::clone ( ) const
inlineoverridevirtual

Returns a clone of the function.

Implements QgsScopedExpressionFunction.

Definition at line 537 of file qgsexpressioncontext.cpp.

virtual QVariant GetNamedProjectColor::func ( const QVariantList &  values,
const QgsExpressionContext context,
QgsExpression parent 
)
inlineoverridevirtual

Returns result of evaluating the function.

Parameters
valueslist of values passed to the function
contextcontext expression is being evaluated against
parentparent expression
Returns
result of function
Note
named funcV2 in Python bindings. Will be renamed to func to replace deprecated method in QGIS 3.0.

Implements QgsScopedExpressionFunction.

Definition at line 526 of file qgsexpressioncontext.cpp.


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