#include <kateattribute.h>
Inherited by KateArbitraryHighlightRange, and KateHlItemData.
Public Member Functions | |
TQFont | font (const TQFont &ref) |
int | width (KateFontStruct &fs, const TQString &text, int col, int tabWidth) const |
int | width (KateFontStruct &fs, const TQChar &c, int tabWidth) const |
bool | itemSet (int item) const |
bool | isSomethingSet () const |
int | itemsSet () const |
void | clearAttribute (int item) |
int | weight () const |
void | setWeight (int weight) |
bool | bold () const |
void | setBold (bool enable=true) |
bool | italic () const |
void | setItalic (bool enable=true) |
bool | overline () const |
void | setOverline (bool enable=true) |
bool | underline () const |
void | setUnderline (bool enable=true) |
bool | strikeOut () const |
void | setStrikeOut (bool enable=true) |
const TQColor & | outline () const |
void | setOutline (const TQColor &color) |
const TQColor & | textColor () const |
void | setTextColor (const TQColor &color) |
const TQColor & | selectedTextColor () const |
void | setSelectedTextColor (const TQColor &color) |
const TQColor & | bgColor () const |
void | setBGColor (const TQColor &color) |
const TQColor & | selectedBGColor () const |
void | setSelectedBGColor (const TQColor &color) |
KateAttribute & | operator+= (const KateAttribute &a) |
virtual void | changed () |
bool | isChanged () |
void | clear () |
Friends | |
bool | operator== (const KateAttribute &h1, const KateAttribute &h2) |
bool | operator!= (const KateAttribute &h1, const KateAttribute &h2) |
Detailed Description
The Attribute class incorporates all text decorations supported by Kate.
TODO: store the actual font as well. TODO: update changed mechanism - use separate bitfield
Definition at line 32 of file kateattribute.h.
Member Enumeration Documentation
◆ items
enum KateAttribute::items |
Definition at line 35 of file kateattribute.h.
Constructor & Destructor Documentation
◆ KateAttribute()
KateAttribute::KateAttribute | ( | ) |
Definition at line 21 of file kateattribute.cpp.
◆ ~KateAttribute()
|
virtual |
Definition at line 32 of file kateattribute.cpp.
Member Function Documentation
◆ bgColor()
|
inline |
Definition at line 118 of file kateattribute.h.
◆ bold()
|
inline |
Definition at line 78 of file kateattribute.h.
◆ changed()
|
inlinevirtual |
Definition at line 133 of file kateattribute.h.
◆ clear()
void KateAttribute::clear | ( | ) |
Definition at line 36 of file kateattribute.cpp.
◆ clearAttribute()
|
inline |
Definition at line 70 of file kateattribute.h.
◆ font()
TQFont KateAttribute::font | ( | const TQFont & | ref | ) |
Definition at line 76 of file kateattribute.cpp.
◆ isChanged()
|
inline |
Definition at line 134 of file kateattribute.h.
◆ isSomethingSet()
|
inline |
Definition at line 64 of file kateattribute.h.
◆ italic()
|
inline |
Definition at line 83 of file kateattribute.h.
◆ itemSet()
|
inline |
Definition at line 61 of file kateattribute.h.
◆ itemsSet()
|
inline |
Definition at line 67 of file kateattribute.h.
◆ operator+=()
KateAttribute & KateAttribute::operator+= | ( | const KateAttribute & | a | ) |
Definition at line 41 of file kateattribute.cpp.
◆ outline()
|
inline |
Definition at line 103 of file kateattribute.h.
◆ overline()
|
inline |
Definition at line 88 of file kateattribute.h.
◆ selectedBGColor()
|
inline |
Definition at line 123 of file kateattribute.h.
◆ selectedTextColor()
|
inline |
Definition at line 113 of file kateattribute.h.
◆ setBGColor()
void KateAttribute::setBGColor | ( | const TQColor & | color | ) |
Definition at line 195 of file kateattribute.cpp.
◆ setBold()
void KateAttribute::setBold | ( | bool | enable = true | ) |
Definition at line 106 of file kateattribute.cpp.
◆ setItalic()
void KateAttribute::setItalic | ( | bool | enable = true | ) |
Definition at line 111 of file kateattribute.cpp.
◆ setOutline()
void KateAttribute::setOutline | ( | const TQColor & | color | ) |
Definition at line 159 of file kateattribute.cpp.
◆ setOverline()
void KateAttribute::setOverline | ( | bool | enable = true | ) |
Definition at line 135 of file kateattribute.cpp.
◆ setSelectedBGColor()
void KateAttribute::setSelectedBGColor | ( | const TQColor & | color | ) |
Definition at line 207 of file kateattribute.cpp.
◆ setSelectedTextColor()
void KateAttribute::setSelectedTextColor | ( | const TQColor & | color | ) |
Definition at line 183 of file kateattribute.cpp.
◆ setStrikeOut()
void KateAttribute::setStrikeOut | ( | bool | enable = true | ) |
Definition at line 147 of file kateattribute.cpp.
◆ setTextColor()
void KateAttribute::setTextColor | ( | const TQColor & | color | ) |
Definition at line 171 of file kateattribute.cpp.
◆ setUnderline()
void KateAttribute::setUnderline | ( | bool | enable = true | ) |
Definition at line 123 of file kateattribute.cpp.
◆ setWeight()
void KateAttribute::setWeight | ( | int | weight | ) |
Definition at line 94 of file kateattribute.cpp.
◆ strikeOut()
|
inline |
Definition at line 98 of file kateattribute.h.
◆ textColor()
|
inline |
Definition at line 108 of file kateattribute.h.
◆ underline()
|
inline |
Definition at line 93 of file kateattribute.h.
◆ weight()
|
inline |
Definition at line 73 of file kateattribute.h.
◆ width() [1/2]
|
inline |
Definition at line 58 of file kateattribute.h.
◆ width() [2/2]
|
inline |
Definition at line 54 of file kateattribute.h.
Friends And Related Function Documentation
◆ operator!=
|
friend |
Definition at line 263 of file kateattribute.cpp.
◆ operator==
|
friend |
Definition at line 219 of file kateattribute.cpp.
The documentation for this class was generated from the following files: