Public Member Functions | Protected Member Functions | Private Attributes | List of all members
QGLSLHighlighter Class Reference

Class, that describes Glsl code highlighter. More...

#include <QGLSLHighlighter.hpp>

Inheritance diagram for QGLSLHighlighter:
Inheritance graph
[legend]

Public Member Functions

 QGLSLHighlighter (QTextDocument *document=nullptr)
 Constructor. More...
 
- Public Member Functions inherited from QStyleSyntaxHighlighter
QStyleSyntaxHighlighteroperator= (const QStyleSyntaxHighlighter &)=delete
 
 QStyleSyntaxHighlighter (const QStyleSyntaxHighlighter &)=delete
 
 QStyleSyntaxHighlighter (QTextDocument *document=nullptr)
 Constructor. More...
 
void setSyntaxStyle (QSyntaxStyle *style)
 Method for setting syntax style. More...
 
QSyntaxStylesyntaxStyle () const
 Method for getting syntax style. More...
 

Protected Member Functions

void highlightBlock (const QString &text) override
 

Private Attributes

QRegularExpression m_commentEndPattern
 
QRegularExpression m_commentStartPattern
 
QRegularExpression m_defTypePattern
 
QRegularExpression m_functionPattern
 
QVector< QHighlightRulem_highlightRules
 
QRegularExpression m_includePattern
 

Detailed Description

Class, that describes Glsl code highlighter.

Definition at line 17 of file QGLSLHighlighter.hpp.

Constructor & Destructor Documentation

◆ QGLSLHighlighter()

QGLSLHighlighter::QGLSLHighlighter ( QTextDocument *  document = nullptr)
explicit

Constructor.

Parameters
documentPointer to document.

Definition at line 10 of file QGLSLHighlighter.cpp.

Member Function Documentation

◆ highlightBlock()

void QGLSLHighlighter::highlightBlock ( const QString &  text)
overrideprotected

Definition at line 69 of file QGLSLHighlighter.cpp.

Member Data Documentation

◆ m_commentEndPattern

QRegularExpression QGLSLHighlighter::m_commentEndPattern
private

Definition at line 40 of file QGLSLHighlighter.hpp.

◆ m_commentStartPattern

QRegularExpression QGLSLHighlighter::m_commentStartPattern
private

Definition at line 39 of file QGLSLHighlighter.hpp.

◆ m_defTypePattern

QRegularExpression QGLSLHighlighter::m_defTypePattern
private

Definition at line 37 of file QGLSLHighlighter.hpp.

◆ m_functionPattern

QRegularExpression QGLSLHighlighter::m_functionPattern
private

Definition at line 36 of file QGLSLHighlighter.hpp.

◆ m_highlightRules

QVector<QHighlightRule> QGLSLHighlighter::m_highlightRules
private

Definition at line 33 of file QGLSLHighlighter.hpp.

◆ m_includePattern

QRegularExpression QGLSLHighlighter::m_includePattern
private

Definition at line 35 of file QGLSLHighlighter.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:50