Defines a color scheme for use in QgsCodeEditor widgets.
More...
#include <qgscodeeditorcolorscheme.h>
|
| enum class | ColorRole {
Default
, Keyword
, Class
, Method
,
Decoration
, Number
, Comment
, CommentLine
,
CommentBlock
, Background
, Cursor
, CaretLine
,
SingleQuote
, DoubleQuote
, TripleSingleQuote
, TripleDoubleQuote
,
Operator
, QuotedOperator
, Identifier
, QuotedIdentifier
,
Tag
, UnknownTag
, MarginBackground
, MarginForeground
,
SelectionBackground
, SelectionForeground
, MatchedBraceBackground
, MatchedBraceForeground
,
Edge
, Fold
, Error
, ErrorBackground
,
FoldIconForeground
, FoldIconHalo
, IndentationGuide
} |
| | Color roles. More...
|
| |
Defines a color scheme for use in QgsCodeEditor widgets.
- Since
- QGIS 3.16
Definition at line 30 of file qgscodeeditorcolorscheme.h.
◆ ColorRole
Color roles.
| Enumerator |
|---|
| Default | Default text color.
|
| Keyword | Keyword color.
|
| Class | Class color.
|
| Method | Method color.
|
| Decoration | Decoration color.
|
| Number | Number color.
|
| Comment | Comment color.
|
| CommentLine | Line comment color.
|
| CommentBlock | Comment block color.
|
| Background | Background color.
|
| Cursor | Cursor color.
|
| CaretLine | Caret line color.
|
| SingleQuote | Single quote color.
|
| DoubleQuote | Double quote color.
|
| TripleSingleQuote | Triple single quote color.
|
| TripleDoubleQuote | Triple double quote color.
|
| Operator | Operator color.
|
| QuotedOperator | Quoted operator color.
|
| Identifier | Identifier color.
|
| QuotedIdentifier | Quoted identifier color.
|
| Tag | Tag color.
|
| UnknownTag | Unknown tag.
|
| MarginBackground | Margin background color.
|
| MarginForeground | Margin foreground color.
|
| SelectionBackground | Selection background color.
|
| SelectionForeground | Selection foreground color.
|
| MatchedBraceBackground | Matched brace background color.
|
| MatchedBraceForeground | Matched brace foreground color.
|
| Edge | Edge color.
|
| Fold | Fold color.
|
| Error | Error color.
|
| ErrorBackground | Error background color.
|
| FoldIconForeground | Fold icon foreground color.
|
| FoldIconHalo | Fold icon halo color.
|
| IndentationGuide | Indentation guide line.
|
Definition at line 37 of file qgscodeeditorcolorscheme.h.
◆ QgsCodeEditorColorScheme()
| QgsCodeEditorColorScheme::QgsCodeEditorColorScheme |
( |
const QString & |
id = QString(), |
|
|
const QString & |
name = QString() |
|
) |
| |
Constructor for QgsCodeEditorColorScheme.
The id argument must be set to a unique, non-translated identifier for the color scheme.
The name argument must be set to a translated, user-visible descriptive name of the scheme.
Definition at line 18 of file qgscodeeditorcolorscheme.cpp.
◆ color()
◆ id()
| QString QgsCodeEditorColorScheme::id |
( |
| ) |
const |
|
inline |
Returns the ID of the color scheme, which is a unique, non-translated identifier for the scheme.
Definition at line 89 of file qgscodeeditorcolorscheme.h.
◆ name()
| QString QgsCodeEditorColorScheme::name |
( |
| ) |
const |
|
inline |
Returns the name of the color scheme, which is the translated, user-visible name of the scheme.
Definition at line 94 of file qgscodeeditorcolorscheme.h.
◆ setColor()
◆ setColors()
| void QgsCodeEditorColorScheme::setColors |
( |
const QMap< ColorRole, QColor > & |
colors | ) |
|
The documentation for this class was generated from the following files: