edbee - Qt Editor Library
Public Member Functions | List of all members
edbee::TextThemeRule Class Reference

The styles available in tmTheme files. More...

#include <texttheme.h>

+ Collaboration diagram for edbee::TextThemeRule:

Public Member Functions

 TextThemeRule (const QString &name, const QString &selector, QColor foreground=QColor(), QColor background=QColor(), bool bold=false, bool italic=false, bool underline=false)
 
virtual ~TextThemeRule ()
 
bool matchesScopeList (const TextScopeList *scopes)
 This method checks if the given scopelist matches the scope selector. More...
 
void fillFormat (QTextCharFormat *format)
 
QString name ()
 
TextScopeSelectorscopeSelector ()
 
QColor foregroundColor ()
 
QColor backgroundColor ()
 
bool bold ()
 
bool italic ()
 
bool underline ()
 

Detailed Description

The styles available in tmTheme files.

Constructor & Destructor Documentation

◆ TextThemeRule()

edbee::TextThemeRule::TextThemeRule ( const QString &  name,
const QString &  selector,
QColor  foreground = QColor(),
QColor  background = QColor(),
bool  bold = false,
bool  italic = false,
bool  underline = false 
)

◆ ~TextThemeRule()

edbee::TextThemeRule::~TextThemeRule ( )
virtual

Member Function Documentation

◆ backgroundColor()

QColor edbee::TextThemeRule::backgroundColor ( )
inline

◆ bold()

bool edbee::TextThemeRule::bold ( )
inline

◆ fillFormat()

void edbee::TextThemeRule::fillFormat ( QTextCharFormat *  format)

◆ foregroundColor()

QColor edbee::TextThemeRule::foregroundColor ( )
inline

◆ italic()

bool edbee::TextThemeRule::italic ( )
inline

◆ matchesScopeList()

bool edbee::TextThemeRule::matchesScopeList ( const TextScopeList scopes)

This method checks if the given scopelist matches the scope selector.

◆ name()

QString edbee::TextThemeRule::name ( )
inline

◆ scopeSelector()

TextScopeSelector* edbee::TextThemeRule::scopeSelector ( )
inline

◆ underline()

bool edbee::TextThemeRule::underline ( )
inline

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