|
QScintilla 2.14.1
|
#include <qscistyle.h>
Public Types | |
| enum | TextCase { OriginalCase = 0 , UpperCase = 1 , LowerCase = 2 } |
Public Member Functions | |
| QsciStyle (int style=-1) | |
| QsciStyle (int style, const QString &description, const QColor &color, const QColor &paper, const QFont &font, bool eolFill=false) | |
| void | apply (QsciScintillaBase *sci) const |
| void | setStyle (int style) |
| int | style () const |
| void | setDescription (const QString &description) |
| QString | description () const |
| void | setColor (const QColor &color) |
| QColor | color () const |
| void | setPaper (const QColor &paper) |
| QColor | paper () const |
| void | setFont (const QFont &font) |
| QFont | font () const |
| void | setEolFill (bool fill) |
| bool | eolFill () const |
| void | setTextCase (TextCase text_case) |
| TextCase | textCase () const |
| void | setVisible (bool visible) |
| bool | visible () const |
| void | setChangeable (bool changeable) |
| bool | changeable () const |
| void | setHotspot (bool hotspot) |
| bool | hotspot () const |
| void | refresh () |
The QsciStyle class encapsulates all the attributes of a style.
Each character of a document has an associated style which determines how the character is displayed, e.g. its font and color. A style is identified by a number. Lexers define styles for each of the language's features so that they are displayed differently. Some style numbers have hard-coded meanings, e.g. the style used for call tips.
| enum QsciStyle::TextCase |
| QsciStyle::QsciStyle | ( | int | style = -1 | ) |
| QsciStyle::QsciStyle | ( | int | style, |
| const QString & | description, | ||
| const QColor & | color, | ||
| const QColor & | paper, | ||
| const QFont & | font, | ||
| bool | eolFill = false ) |
Constructs a QsciStyle instance for style number style. If style is negative then a new style number is automatically allocated if possible. If it is not possible then style() will return a negative value. The styles description, color, paper color, font and end-of-line fill are set to description, color, paper, font and eolFill respectively.
References color(), description(), eolFill(), font(), paper(), and style().
|
inline |
|
inline |
Returns the number of the style. This will be negative if the style is invalid.
Referenced by QsciStyle(), QsciStyle(), refresh(), and setStyle().
|
inline |
|
inline |
Returns the style's description.
Referenced by QsciStyle(), and setDescription().
| void QsciStyle::setColor | ( | const QColor & | color | ) |
|
inline |
| void QsciStyle::setPaper | ( | const QColor & | paper | ) |
|
inline |
| void QsciStyle::setFont | ( | const QFont & | font | ) |
|
inline |
| void QsciStyle::setEolFill | ( | bool | fill | ) |
The style's end-of-line fill is set to fill. The default is false.
|
inline |
| void QsciStyle::setTextCase | ( | TextCase | text_case | ) |
The style's text case is set to text_case. The default is OriginalCase.
|
inline |
Returns the style's text case.
| void QsciStyle::setVisible | ( | bool | visible | ) |
|
inline |
| void QsciStyle::setChangeable | ( | bool | changeable | ) |
The style's changeability is set to changeable. The default is true.
References changeable().
|
inline |
| void QsciStyle::setHotspot | ( | bool | hotspot | ) |
|
inline |