Inviwo 0.9.12-pre
Inviwo documentation
inviwo::CodeEdit Class Reference
Inheritance diagram for inviwo::CodeEdit:

Classes

class  LineNumberArea

Public Member Functions

 CodeEdit (QWidget *parent=nullptr)
virtual void keyPressEvent (QKeyEvent *keyEvent) override
void setLineAnnotation (std::function< std::string(int)>)
void setLineAnnotationColor (std::function< vec4(int, vec4)>)
void setAnnotationSpace (std::function< int(int)>)
SyntaxHighlightersyntaxHighlighter ()

Protected Member Functions

void lineNumberAreaPaintEvent (QPaintEvent *event)
int lineNumberAreaWidth ()
void resizeEvent (QResizeEvent *event) override
void updateLineNumberAreaWidth (int newBlockCount)
void highlightCurrentLine ()
void updateLineNumberArea (const QRect &, int)

Protected Attributes

QWidget * lineNumberArea_
vec4 textColor_
vec4 highlightColor_
SyntaxHighlightersh_
std::function< std::string(int)> annotateLine_
std::function< vec4(int, vec4)> annotateColor_
std::function< int(int)> annotationSpace_

The documentation for this class was generated from the following file:
  • codeedit.h