• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

Public Types | Public Member Functions | Friends | List of all members
KateAttribute Class Reference

#include <kateattribute.h>

Inherited by KateArbitraryHighlightRange, and KateHlItemData.

Public Types

enum  items {
  Weight = 0x1 , Bold = 0x2 , Italic = 0x4 , Underline = 0x8 ,
  StrikeOut = 0x10 , Outline = 0x20 , TextColor = 0x40 , SelectedTextColor = 0x80 ,
  BGColor = 0x100 , SelectedBGColor = 0x200 , Overline = 0x400
}
 

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()

KateAttribute::~KateAttribute ( )
virtual

Definition at line 32 of file kateattribute.cpp.

Member Function Documentation

◆ bgColor()

const TQColor & KateAttribute::bgColor ( ) const
inline

Definition at line 118 of file kateattribute.h.

◆ bold()

bool KateAttribute::bold ( ) const
inline

Definition at line 78 of file kateattribute.h.

◆ changed()

virtual void KateAttribute::changed ( )
inlinevirtual

Definition at line 133 of file kateattribute.h.

◆ clear()

void KateAttribute::clear ( )

Definition at line 36 of file kateattribute.cpp.

◆ clearAttribute()

void KateAttribute::clearAttribute ( int  item)
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()

bool KateAttribute::isChanged ( )
inline

Definition at line 134 of file kateattribute.h.

◆ isSomethingSet()

bool KateAttribute::isSomethingSet ( ) const
inline

Definition at line 64 of file kateattribute.h.

◆ italic()

bool KateAttribute::italic ( ) const
inline

Definition at line 83 of file kateattribute.h.

◆ itemSet()

bool KateAttribute::itemSet ( int  item) const
inline

Definition at line 61 of file kateattribute.h.

◆ itemsSet()

int KateAttribute::itemsSet ( ) const
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()

const TQColor & KateAttribute::outline ( ) const
inline

Definition at line 103 of file kateattribute.h.

◆ overline()

bool KateAttribute::overline ( ) const
inline

Definition at line 88 of file kateattribute.h.

◆ selectedBGColor()

const TQColor & KateAttribute::selectedBGColor ( ) const
inline

Definition at line 123 of file kateattribute.h.

◆ selectedTextColor()

const TQColor & KateAttribute::selectedTextColor ( ) const
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()

bool KateAttribute::strikeOut ( ) const
inline

Definition at line 98 of file kateattribute.h.

◆ textColor()

const TQColor & KateAttribute::textColor ( ) const
inline

Definition at line 108 of file kateattribute.h.

◆ underline()

bool KateAttribute::underline ( ) const
inline

Definition at line 93 of file kateattribute.h.

◆ weight()

int KateAttribute::weight ( ) const
inline

Definition at line 73 of file kateattribute.h.

◆ width() [1/2]

int KateAttribute::width ( KateFontStruct &  fs,
const TQChar &  c,
int  tabWidth 
) const
inline

Definition at line 58 of file kateattribute.h.

◆ width() [2/2]

int KateAttribute::width ( KateFontStruct &  fs,
const TQString &  text,
int  col,
int  tabWidth 
) const
inline

Definition at line 54 of file kateattribute.h.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const KateAttribute &  h1,
const KateAttribute &  h2 
)
friend

Definition at line 263 of file kateattribute.cpp.

◆ operator==

bool operator== ( const KateAttribute &  h1,
const KateAttribute &  h2 
)
friend

Definition at line 219 of file kateattribute.cpp.


The documentation for this class was generated from the following files:
  • kateattribute.h
  • kateattribute.cpp

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.