QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
Public Member Functions | List of all members
QgsMaterialContext Class Reference

3 Context settings for a material. 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 54 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 63 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 77 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 70 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 84 of file qgsabstractmaterialsettings.h.


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