#include <text-tag.h>
Public Member Functions | |
TextTag (Tag tag, TagPriority priority=TagPriorityFirst) | |
virtual | ~TextTag () |
virtual void | Filter (PangoAttrList *l, unsigned start, unsigned end)=0 |
virtual bool | operator== (TextTag const &tag) const =0 |
virtual TextTag * | Duplicate () const =0 |
virtual bool | NeedsNewRun () |
virtual TextTag * | Restrict (TextTag *tag) |
Tag | GetTag (void) const |
TagPriority | GetPriority (void) const |
void | SetStartIndex (unsigned val) |
unsigned | GetStartIndex (void) const |
unsigned & | GetRefStartIndex (void) |
void | SetEndIndex (unsigned val) |
unsigned | GetEndIndex (void) const |
unsigned & | GetRefEndIndex (void) |
bool | GetStacked (void) |
bool | GetNewLine (void) |
Static Public Member Functions | |
static Tag | RegisterTagType () |
static bool | Order (TextTag *first, TextTag *last) |
Static Public Attributes | |
static Tag | MaxTag |
Protected Attributes | |
bool | m_Stacked |
bool | m_NewLine |
Used to set various attributes to a Text item. This class is virtual.
Definition at line 128 of file text-tag.h.
gccv::TextTag::TextTag | ( | Tag | tag, | |
TagPriority | priority = TagPriorityFirst | |||
) |
tag | the tag type. | |
priority | the tag priority. |
virtual gccv::TextTag::~TextTag | ( | ) | [virtual] |
The destructor.
virtual TextTag* gccv::TextTag::Duplicate | ( | ) | const [pure virtual] |
Creates a copy of the TextTag. Derived classes must implement this pure virtual method.
Implemented in gccv::FamilyTextTag, gccv::SizeTextTag, gccv::StyleTextTag, gccv::WeightTextTag, gccv::VariantTextTag, gccv::StretchTextTag, gccv::UnderlineTextTag, gccv::OverlineTextTag, gccv::StrikethroughTextTag, gccv::ForegroundTextTag, gccv::BackgroundTextTag, gccv::RiseTextTag, gccv::PositionTextTag, and gccv::NewLineTextTag.
virtual void gccv::TextTag::Filter | ( | PangoAttrList * | l, | |
unsigned | start, | |||
unsigned | end | |||
) | [pure virtual] |
l | a PangoAttrList. | |
start | the start index of the relevant text. | |
end | the end index of the relevant text. |
Implemented in gccv::FamilyTextTag, gccv::SizeTextTag, gccv::StyleTextTag, gccv::WeightTextTag, gccv::VariantTextTag, gccv::StretchTextTag, gccv::UnderlineTextTag, gccv::OverlineTextTag, gccv::StrikethroughTextTag, gccv::ForegroundTextTag, gccv::BackgroundTextTag, gccv::RiseTextTag, gccv::PositionTextTag, and gccv::NewLineTextTag.
gccv::TextTag::GetEndIndex | ( | void | ) | const [inline] |
gccv::TextTag::GetNewLine | ( | void | ) | [inline] |
gccv::TextTag::GetPriority | ( | void | ) | const [inline] |
gccv::TextTag::GetRefEndIndex | ( | void | ) | [inline] |
Definition at line 230 of file text-tag.h.
gccv::TextTag::GetRefStartIndex | ( | void | ) | [inline] |
Definition at line 218 of file text-tag.h.
gccv::TextTag::GetStacked | ( | void | ) | [inline] |
true if the TextTag begins a stacked text run.
Definition at line 238 of file text-tag.h.
gccv::TextTag::GetStartIndex | ( | void | ) | const [inline] |
gccv::TextTag::GetTag | ( | void | ) | const [inline] |
virtual bool gccv::TextTag::NeedsNewRun | ( | ) | [inline, virtual] |
Reimplemented in gccv::PositionTextTag.
Definition at line 170 of file text-tag.h.
virtual bool gccv::TextTag::operator== | ( | TextTag const & | tag | ) | const [pure virtual] |
tag | a TextTag. |
Implemented in gccv::FamilyTextTag, gccv::SizeTextTag, gccv::StyleTextTag, gccv::WeightTextTag, gccv::VariantTextTag, gccv::StretchTextTag, gccv::UnderlineTextTag, gccv::OverlineTextTag, gccv::StrikethroughTextTag, gccv::ForegroundTextTag, gccv::BackgroundTextTag, gccv::RiseTextTag, gccv::PositionTextTag, and gccv::NewLineTextTag.
static Tag gccv::TextTag::RegisterTagType | ( | ) | [static] |
Creates a new registered Tag value equal to current MaxTag value and increments MaxTag.
gccv::TextTag::SetEndIndex | ( | unsigned | index | ) | [inline] |
index | the end index |
Definition at line 230 of file text-tag.h.
gccv::TextTag::SetStartIndex | ( | unsigned | index | ) | [inline] |
index | the start index |
Definition at line 218 of file text-tag.h.
gccv::TextTag::m_NewLine [protected] |
true if the TextTag begins a new text line.
Definition at line 245 of file text-tag.h.
gccv::TextTag::m_Stacked [protected] |
true if the TextTag begins a stacked text run. This is used to have two text runs start at the same horizontal position.
Definition at line 238 of file text-tag.h.
Referenced by gccv::PositionTextTag::GetPosition().
Tag gccv::TextTag::MaxTag [static] |
The current first available Tag value for new TextTag types.
Definition at line 189 of file text-tag.h.