# kate Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# KateAttribute Class Reference

The Attribute class incorporates all text decorations supported by Kate. More...

`#include <kateattribute.h>`

Collaboration diagram for KateAttribute:

[legend]
List of all members.

## 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

QFont | font (const QFont &ref)
int | width (KateFontStruct &fs, const QString &text, int col, int tabWidth) const
int | width (KateFontStruct &fs, const QChar &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 QColor & | outline () const
void | setOutline (const QColor &color)
const QColor & | textColor () const
void | setTextColor (const QColor &color)
const QColor & | selectedTextColor () const
void | setSelectedTextColor (const QColor &color)
const QColor & | bgColor () const
void | setBGColor (const QColor &color)
const QColor & | selectedBGColor () const
void | setSelectedBGColor (const QColor &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.

The documentation for this class was generated from the following files:

- kateattribute.h
- kateattribute.cpp

This file is part of the documentation for kate Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:36:43 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003