QScintilla
2.7.1
|
#include <qscistyle.h>
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 | ) |
Constructs a QsciStyle instance for style number style. If style is negative then a new style number is automatically allocated.
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. The styles description, color, paper color, font and end-of-line fill are set to description, color, paper, font and eolFill respectively.
void QsciStyle::setDescription | ( | const QString & | description | ) | [inline] |
The style's description is set to description.
QString QsciStyle::description | ( | ) | const [inline] |
Returns the style's description.
void QsciStyle::setColor | ( | const QColor & | color | ) |
The style's foreground color is set to color. The default is taken from the application's default palette.
QColor QsciStyle::color | ( | ) | const [inline] |
Returns the style's foreground color.
void QsciStyle::setPaper | ( | const QColor & | paper | ) |
The style's background color is set to paper. The default is taken from the application's default palette.
QColor QsciStyle::paper | ( | ) | const [inline] |
Returns the style's background color.
void QsciStyle::setFont | ( | const QFont & | font | ) |
The style's font is set to font. The default is the application's default font.
QFont QsciStyle::font | ( | ) | const [inline] |
Returns the style's font.
void QsciStyle::setEolFill | ( | bool | fill | ) |
The style's end-of-line fill is set to fill. The default is false.
bool QsciStyle::eolFill | ( | ) | const [inline] |
Returns the style's end-of-line fill.
void QsciStyle::setTextCase | ( | TextCase | text_case | ) |
The style's text case is set to text_case. The default is OriginalCase.
TextCase QsciStyle::textCase | ( | ) | const [inline] |
Returns the style's text case.
void QsciStyle::setVisible | ( | bool | visible | ) |
The style's visibility is set to visible. The default is true.
bool QsciStyle::visible | ( | ) | const [inline] |
Returns the style's visibility.
void QsciStyle::setChangeable | ( | bool | changeable | ) |
The style's changeability is set to changeable. The default is true.
bool QsciStyle::changeable | ( | ) | const [inline] |
Returns the style's changeability.
void QsciStyle::setHotspot | ( | bool | hotspot | ) |
The style's sensitivity to mouse clicks is set to hotspot. The default is false.
bool QsciStyle::hotspot | ( | ) | const [inline] |
Returns the style's sensitivity to mouse clicks.