QGIS API Documentation  3.20.0-Odense (decaadbb31)
Public Member Functions | List of all members
QgsMaterialContext Class Reference

3 More...

#include <qgsabstractmaterialsettings.h>

Public Member Functions

bool isSelected () const
 Returns true if the material should represent a selected state. More...
 
QColor selectionColor () const
 Returns the color for representing materials in a selected state. More...
 
void setIsSelected (bool isSelected)
 Sets whether the material should represent a selected state. More...
 
void setSelectionColor (const QColor &color)
 Sets the color for representing materials in a selected state. More...
 

Detailed Description

3

Context settings for a material.

Warning
This is not considered stable API, and may change in future QGIS releases. It is exposed to the Python bindings as a tech preview only.
Since
QGIS 3.16

Definition at line 64 of file qgsabstractmaterialsettings.h.

Member Function Documentation

◆ isSelected()

bool QgsMaterialContext::isSelected ( ) const
inline

Returns true if the material should represent a selected state.

See also
setIsSelected()

Definition at line 73 of file qgsabstractmaterialsettings.h.

◆ selectionColor()

QColor QgsMaterialContext::selectionColor ( ) const
inline

Returns the color for representing materials in a selected state.

See also
setSelectionColor()

Definition at line 87 of file qgsabstractmaterialsettings.h.

◆ setIsSelected()

void QgsMaterialContext::setIsSelected ( bool  isSelected)
inline

Sets whether the material should represent a selected state.

See also
isSelected()

Definition at line 80 of file qgsabstractmaterialsettings.h.

◆ setSelectionColor()

void QgsMaterialContext::setSelectionColor ( const QColor &  color)
inline

Sets the color for representing materials in a selected state.

See also
selectionColor()

Definition at line 94 of file qgsabstractmaterialsettings.h.


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