QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
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.
 
QColor selectionColor () const
 Returns the color for representing materials in a selected state.
 
void setIsSelected (bool isSelected)
 Sets whether the material should represent a selected state.
 
void setSelectionColor (const QColor &color)
 Sets the color for representing materials in a selected state.
 

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 71 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 80 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 94 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 87 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 101 of file qgsabstractmaterialsettings.h.


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