#include <text-tag.h>
Public Member Functions | |
PositionTextTag (TextPosition position, double size, bool stacked=false, Tag tag=Position) | |
virtual | ~PositionTextTag () |
void | Filter (PangoAttrList *l, unsigned start, unsigned end) |
bool | operator== (TextTag const &tag) const |
TextTag * | Duplicate () const |
TextPosition | GetPosition (bool &stacked, double &size) const |
virtual bool | NeedsNewRun () |
TextTag * | Restrict (G_GNUC_UNUSED TextTag *tag) |
TextTag class for normal, subscript or superscript. The exact position and sizes are evaluated according to the font size, but are smaller than it.
Definition at line 866 of file text-tag.h.
gccv::PositionTextTag::PositionTextTag | ( | TextPosition | position, | |
double | size, | |||
bool | stacked = false , |
|||
Tag | tag = Position | |||
) |
position | a TextPosition. | |
size | a default size. | |
stacked | whether the text should be stacked. | |
tag | an optional Tag argument to allow subclassing. |
virtual gccv::PositionTextTag::~PositionTextTag | ( | ) | [virtual] |
The destructor.
TextTag* gccv::PositionTextTag::Duplicate | ( | ) | const [virtual] |
Creates a copy of the PositionTextTag with the same position, size, stacked and Tag attributes.
Implements gccv::TextTag.
void gccv::PositionTextTag::Filter | ( | PangoAttrList * | l, | |
unsigned | start, | |||
unsigned | end | |||
) | [virtual] |
l | a PangoAttrList. | |
start | the start index of the relevant text. | |
end | the end index of the relevant text. |
Implements gccv::TextTag.
TextPosition gccv::PositionTextTag::GetPosition | ( | bool & | stacked, | |
double & | size | |||
) | const [inline] |
stacked | where to store whether the text should be stacked. | |
size | where to store the default size. |
Definition at line 914 of file text-tag.h.
References gccv::TextTag::m_Stacked.
virtual bool gccv::PositionTextTag::NeedsNewRun | ( | ) | [inline, virtual] |
Reimplemented from gccv::TextTag.
Definition at line 918 of file text-tag.h.
bool gccv::PositionTextTag::operator== | ( | TextTag const & | tag | ) | const [virtual] |
tag | a TextTag. |
Implements gccv::TextTag.
tag | a TextTag. |
Definition at line 925 of file text-tag.h.