A widget for editing text code.
Definition at line 19 of file VuoCodeEditor.hh.
Public Member Functions | |
VuoCodeEditor (QString initialSourceCode) | |
Creates a new code editor widget. | |
void | zoom11 () |
Restores the default text size (100% aka 1:1). | |
void | zoomIn () |
Makes the text larger. | |
void | zoomOut () |
Makes the text smaller. | |
bool | isZoomedToActualSize () |
Returns true if the text is at its default size. | |
void | selectLine (int lineNumber) |
Selects the text on the specified line. | |
void | updateColor (bool isDark) |
Applies dark mode rendering changes. | |
Public Attributes | |
QColor | gutterColor |
The gutter's background color. | |
QColor | gutterTextColor |
The gutter's foreground color. | |
QColor | currentLineColor |
The current line's background color. | |
QColor | operatorColor |
The foreground color of GLSL operators. | |
QColor | commentColor |
The foreground color of GLSL comments. | |
QColor | keywordColor |
The foreground color of GLSL keywords. | |
QColor | builtinVariableColor |
The foreground color of GLSL built-in variables. | |
QColor | builtinFunctionColor |
The foreground color of GLSL built-in functions. | |
QColor | constantColor |
The foreground color of GLSL constants. | |
QColor | preprocessorColor |
The foreground color of GLSL preprocessor directives. | |
QPixmap * | errorIcon |
The error indicator icon (red circle with exclamation). | |
VuoCodeGutter * | gutter |
The gutter widget. | |
Friends | |
class | VuoCodeGutter |
class | VuoCodeWindow |
|
explicit |
Creates a new code editor widget.
Definition at line 23 of file VuoCodeEditor.cc.
bool VuoCodeEditor::isZoomedToActualSize | ( | ) |
Returns true if the text is at its default size.
Definition at line 106 of file VuoCodeEditor.cc.
void VuoCodeEditor::selectLine | ( | int | lineNumber | ) |
Selects the text on the specified line.
Definition at line 114 of file VuoCodeEditor.cc.
void VuoCodeEditor::updateColor | ( | bool | isDark | ) |
Applies dark mode rendering changes.
Definition at line 353 of file VuoCodeEditor.cc.
void VuoCodeEditor::zoom11 | ( | ) |
Restores the default text size (100% aka 1:1).
Definition at line 71 of file VuoCodeEditor.cc.
void VuoCodeEditor::zoomIn | ( | ) |
Makes the text larger.
Definition at line 79 of file VuoCodeEditor.cc.
void VuoCodeEditor::zoomOut | ( | ) |
Makes the text smaller.
Definition at line 92 of file VuoCodeEditor.cc.
|
friend |
Definition at line 60 of file VuoCodeEditor.hh.
|
friend |
Definition at line 61 of file VuoCodeEditor.hh.
QColor VuoCodeEditor::builtinFunctionColor |
The foreground color of GLSL built-in functions.
Definition at line 42 of file VuoCodeEditor.hh.
QColor VuoCodeEditor::builtinVariableColor |
The foreground color of GLSL built-in variables.
Definition at line 41 of file VuoCodeEditor.hh.
QColor VuoCodeEditor::commentColor |
The foreground color of GLSL comments.
Definition at line 39 of file VuoCodeEditor.hh.
QColor VuoCodeEditor::constantColor |
The foreground color of GLSL constants.
Definition at line 43 of file VuoCodeEditor.hh.
QColor VuoCodeEditor::currentLineColor |
The current line's background color.
Definition at line 37 of file VuoCodeEditor.hh.
QPixmap* VuoCodeEditor::errorIcon |
The error indicator icon (red circle with exclamation).
Definition at line 45 of file VuoCodeEditor.hh.
VuoCodeGutter* VuoCodeEditor::gutter |
The gutter widget.
Definition at line 46 of file VuoCodeEditor.hh.
QColor VuoCodeEditor::gutterColor |
The gutter's background color.
Definition at line 35 of file VuoCodeEditor.hh.
QColor VuoCodeEditor::gutterTextColor |
The gutter's foreground color.
Definition at line 36 of file VuoCodeEditor.hh.
QColor VuoCodeEditor::keywordColor |
The foreground color of GLSL keywords.
Definition at line 40 of file VuoCodeEditor.hh.
QColor VuoCodeEditor::operatorColor |
The foreground color of GLSL operators.
Definition at line 38 of file VuoCodeEditor.hh.
QColor VuoCodeEditor::preprocessorColor |
The foreground color of GLSL preprocessor directives.
Definition at line 44 of file VuoCodeEditor.hh.