Vuo  2.3.2
Public Member Functions | Public Attributes | Friends | List of all members
VuoCodeEditor Class Reference

Description

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...
 
VuoCodeGuttergutter
 The gutter widget. More...
 

Friends

class VuoCodeGutter
 
class VuoCodeWindow
 

Constructor & Destructor Documentation

◆ VuoCodeEditor()

VuoCodeEditor::VuoCodeEditor ( QString  initialSourceCode)
explicit

Creates a new code editor widget.

Definition at line 23 of file VuoCodeEditor.cc.

Member Function Documentation

◆ isZoomedToActualSize()

bool VuoCodeEditor::isZoomedToActualSize ( )

Returns true if the text is at its default size.

Definition at line 111 of file VuoCodeEditor.cc.

◆ selectLine()

void VuoCodeEditor::selectLine ( int  lineNumber)

Selects the text on the specified line.

Definition at line 119 of file VuoCodeEditor.cc.

◆ updateColor()

void VuoCodeEditor::updateColor ( bool  isDark)

Applies dark mode rendering changes.

Definition at line 358 of file VuoCodeEditor.cc.

◆ zoom11()

void VuoCodeEditor::zoom11 ( )

Restores the default text size (100% aka 1:1).

Definition at line 76 of file VuoCodeEditor.cc.

◆ zoomIn()

void VuoCodeEditor::zoomIn ( )

Makes the text larger.

Definition at line 84 of file VuoCodeEditor.cc.

◆ zoomOut()

void VuoCodeEditor::zoomOut ( )

Makes the text smaller.

Definition at line 97 of file VuoCodeEditor.cc.

Member Data Documentation

◆ builtinFunctionColor

QColor VuoCodeEditor::builtinFunctionColor

The foreground color of GLSL built-in functions.

Definition at line 42 of file VuoCodeEditor.hh.

◆ builtinVariableColor

QColor VuoCodeEditor::builtinVariableColor

The foreground color of GLSL built-in variables.

Definition at line 41 of file VuoCodeEditor.hh.

◆ commentColor

QColor VuoCodeEditor::commentColor

The foreground color of GLSL comments.

Definition at line 39 of file VuoCodeEditor.hh.

◆ constantColor

QColor VuoCodeEditor::constantColor

The foreground color of GLSL constants.

Definition at line 43 of file VuoCodeEditor.hh.

◆ currentLineColor

QColor VuoCodeEditor::currentLineColor

The current line's background color.

Definition at line 37 of file VuoCodeEditor.hh.

◆ errorIcon

QPixmap* VuoCodeEditor::errorIcon

The error indicator icon (red circle with exclamation).

Definition at line 45 of file VuoCodeEditor.hh.

◆ gutter

VuoCodeGutter* VuoCodeEditor::gutter

The gutter widget.

Definition at line 46 of file VuoCodeEditor.hh.

◆ gutterColor

QColor VuoCodeEditor::gutterColor

The gutter's background color.

Definition at line 35 of file VuoCodeEditor.hh.

◆ gutterTextColor

QColor VuoCodeEditor::gutterTextColor

The gutter's foreground color.

Definition at line 36 of file VuoCodeEditor.hh.

◆ keywordColor

QColor VuoCodeEditor::keywordColor

The foreground color of GLSL keywords.

Definition at line 40 of file VuoCodeEditor.hh.

◆ operatorColor

QColor VuoCodeEditor::operatorColor

The foreground color of GLSL operators.

Definition at line 38 of file VuoCodeEditor.hh.

◆ preprocessorColor

QColor VuoCodeEditor::preprocessorColor

The foreground color of GLSL preprocessor directives.

Definition at line 44 of file VuoCodeEditor.hh.


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