The Gnome Chemistry Utils
0.14.0
|
class for text attributes More...
#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 |
class for text attributes
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. |
Creates a new tag.
|
virtual |
The destructor.
|
pure virtual |
Creates a copy of the TextTag. Derived classes must implement this pure virtual method.
Implemented in gccv::NewLineTextTag, gccv::PositionTextTag, gccv::RiseTextTag, gccv::BackgroundTextTag, gccv::ForegroundTextTag, gccv::StrikethroughTextTag, gccv::OverlineTextTag, gccv::UnderlineTextTag, gccv::StretchTextTag, gccv::VariantTextTag, gccv::WeightTextTag, gccv::StyleTextTag, gccv::SizeTextTag, and gccv::FamilyTextTag.
|
pure virtual |
l | a PangoAttrList. |
start | the start index of the relevant text. |
end | the end index of the relevant text. |
Derived classes must implement this pure virtual method. Used to add appropriate PangoAttribute corresponding to the TextTag in the given bounds. In some cases already existing attributes might have to be restricted in scope.
Implemented in gccv::NewLineTextTag, gccv::PositionTextTag, gccv::RiseTextTag, gccv::BackgroundTextTag, gccv::ForegroundTextTag, gccv::StrikethroughTextTag, gccv::OverlineTextTag, gccv::UnderlineTextTag, gccv::StretchTextTag, gccv::VariantTextTag, gccv::WeightTextTag, gccv::StyleTextTag, gccv::SizeTextTag, and gccv::FamilyTextTag.
|
inline |
Definition at line 230 of file text-tag.h.
|
inline |
Definition at line 245 of file text-tag.h.
|
inline |
Definition at line 206 of file text-tag.h.
|
inline |
Definition at line 230 of file text-tag.h.
|
inline |
Definition at line 218 of file text-tag.h.
|
inline |
true if the TextTag begins a stacked text run.
Definition at line 238 of file text-tag.h.
|
inline |
Definition at line 218 of file text-tag.h.
|
inline |
Definition at line 202 of file text-tag.h.
|
inlinevirtual |
Reimplemented in gccv::PositionTextTag.
Definition at line 170 of file text-tag.h.
|
pure virtual |
tag | a TextTag. |
Equality operator. Derived classes must implement this pure virtual method.
Implemented in gccv::NewLineTextTag, gccv::PositionTextTag, gccv::RiseTextTag, gccv::BackgroundTextTag, gccv::ForegroundTextTag, gccv::StrikethroughTextTag, gccv::OverlineTextTag, gccv::UnderlineTextTag, gccv::StretchTextTag, gccv::VariantTextTag, gccv::WeightTextTag, gccv::StyleTextTag, gccv::SizeTextTag, and gccv::FamilyTextTag.
|
static |
Creates a new registered Tag value equal to current MaxTag value and increments MaxTag.
|
inline |
index | the end index |
Sets the end index in bytes for the TexTag.
Definition at line 230 of file text-tag.h.
|
inline |
index | the start index |
Sets the start index in bytes for the TexTag.
Definition at line 218 of file text-tag.h.
|
protected |
true if the TextTag begins a new text line.
Definition at line 245 of file text-tag.h.
|
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().
|
static |
The current first available Tag value for new TextTag types.
Definition at line 189 of file text-tag.h.