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. More... | |
void | zoom11 () |
Restores the default text size (100% aka 1:1). More... | |
void | zoomIn () |
Makes the text larger. More... | |
void | zoomOut () |
Makes the text smaller. More... | |
bool | isZoomedToActualSize () |
Returns true if the text is at its default size. More... | |
void | selectLine (int lineNumber) |
Selects the text on the specified line. More... | |
void | updateColor (bool isDark) |
Applies dark mode rendering changes. More... | |
Public Attributes | |
QColor | gutterColor |
The gutter's background color. More... | |
QColor | gutterTextColor |
The gutter's foreground color. More... | |
QColor | currentLineColor |
The current line's background color. More... | |
QColor | operatorColor |
The foreground color of GLSL operators. More... | |
QColor | commentColor |
The foreground color of GLSL comments. More... | |
QColor | keywordColor |
The foreground color of GLSL keywords. More... | |
QColor | builtinVariableColor |
The foreground color of GLSL built-in variables. More... | |
QColor | builtinFunctionColor |
The foreground color of GLSL built-in functions. More... | |
QColor | constantColor |
The foreground color of GLSL constants. More... | |
QColor | preprocessorColor |
The foreground color of GLSL preprocessor directives. More... | |
QPixmap * | errorIcon |
The error indicator icon (red circle with exclamation). More... | |
VuoCodeGutter * | gutter |
The gutter widget. More... | |
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 111 of file VuoCodeEditor.cc.
void VuoCodeEditor::selectLine | ( | int | lineNumber | ) |
Selects the text on the specified line.
Definition at line 119 of file VuoCodeEditor.cc.
void VuoCodeEditor::updateColor | ( | bool | isDark | ) |
Applies dark mode rendering changes.
Definition at line 358 of file VuoCodeEditor.cc.
void VuoCodeEditor::zoom11 | ( | ) |
Restores the default text size (100% aka 1:1).
Definition at line 76 of file VuoCodeEditor.cc.
void VuoCodeEditor::zoomIn | ( | ) |
Makes the text larger.
Definition at line 84 of file VuoCodeEditor.cc.
void VuoCodeEditor::zoomOut | ( | ) |
Makes the text smaller.
Definition at line 97 of file VuoCodeEditor.cc.
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.