Format Class

(TextEditor::Format)

Public Functions

Format()
Format(const QColor &foreground, const QColor &background)
QColor background() const
bool bold() const
bool equals(const TextEditor::Format &f) const
QColor foreground() const
bool fromString(const QString &str)
bool italic() const
double relativeBackgroundLightness() const
double relativeBackgroundSaturation() const
double relativeForegroundLightness() const
double relativeForegroundSaturation() const
void setBackground(const QColor &background)
void setBold(bool bold)
void setForeground(const QColor &foreground)
void setItalic(bool italic)
void setRelativeBackgroundLightness(double relativeBackgroundLightness)
void setRelativeBackgroundSaturation(double relativeBackgroundSaturation)
void setRelativeForegroundLightness(double relativeForegroundLightness)
void setRelativeForegroundSaturation(double relativeForegroundSaturation)
void setUnderlineColor(const QColor &underlineColor)
void setUnderlineStyle(int underlineStyle)
QString toString() const
QColor underlineColor() const
int underlineStyle() const

Static Public Members

TextEditor::Format createMixinFormat()

Member Function Documentation

Format::Format()

Default constructs an instance of Format.

Format::Format(const QColor &foreground, const QColor &background)

Default constructs an instance of Format.

QColor Format::background() const

See also setBackground().

bool Format::bold() const

See also setBold().

[static] TextEditor::Format Format::createMixinFormat()

bool Format::equals(const TextEditor::Format &f) const

QColor Format::foreground() const

See also setForeground().

bool Format::fromString(const QString &str)

bool Format::italic() const

See also setItalic().

double Format::relativeBackgroundLightness() const

See also setRelativeBackgroundLightness().

double Format::relativeBackgroundSaturation() const

See also setRelativeBackgroundSaturation().

double Format::relativeForegroundLightness() const

See also setRelativeForegroundLightness().

double Format::relativeForegroundSaturation() const

See also setRelativeForegroundSaturation().

void Format::setBackground(const QColor &background)

See also background().

void Format::setBold(bool bold)

See also bold().

void Format::setForeground(const QColor &foreground)

See also foreground().

void Format::setItalic(bool italic)

See also italic().

void Format::setRelativeBackgroundLightness(double relativeBackgroundLightness)

See also relativeBackgroundLightness().

void Format::setRelativeBackgroundSaturation(double relativeBackgroundSaturation)

See also relativeBackgroundSaturation().

void Format::setRelativeForegroundLightness(double relativeForegroundLightness)

See also relativeForegroundLightness().

void Format::setRelativeForegroundSaturation(double relativeForegroundSaturation)

See also relativeForegroundSaturation().

void Format::setUnderlineColor(const QColor &underlineColor)

See also underlineColor().

void Format::setUnderlineStyle(int underlineStyle)

See also underlineStyle().

QString Format::toString() const

QColor Format::underlineColor() const

See also setUnderlineColor().

int Format::underlineStyle() const

See also setUnderlineStyle().