#include <qscistyle.h>
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 | eol_fill = 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 eol_fill respectively.
int QsciStyle::style | ( | ) | const [inline] |
Returns the number of the style.
void QsciStyle::setDescription | ( | const QString & | description | ) | [inline] |
QString QsciStyle::description | ( | ) | const [inline] |
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] |
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] |
void QsciStyle::setFont | ( | const QFont & | font | ) |
QFont QsciStyle::font | ( | ) | const [inline] |
void QsciStyle::setEolFill | ( | bool | fill | ) |
bool QsciStyle::eolFill | ( | ) | const [inline] |
void QsciStyle::setTextCase | ( | TextCase | text_case | ) |
TextCase QsciStyle::textCase | ( | ) | const [inline] |
void QsciStyle::setVisible | ( | bool | visible | ) |
bool QsciStyle::visible | ( | ) | const [inline] |
void QsciStyle::setChangeable | ( | bool | changeable | ) |
bool QsciStyle::changeable | ( | ) | const [inline] |
void QsciStyle::setHotspot | ( | bool | hotspot | ) |
bool QsciStyle::hotspot | ( | ) | const [inline] |
void QsciStyle::refresh | ( | ) |
Refresh the style settings.