The Gnome Chemistry Utils
0.14.0
|
Position. More...
#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) |
Public Member Functions inherited from gccv::TextTag | |
TextTag (Tag tag, TagPriority priority=TagPriorityFirst) | |
virtual | ~TextTag () |
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) |
Additional Inherited Members | |
Static Public Member Functions inherited from gccv::TextTag | |
static Tag | RegisterTagType () |
static bool | Order (TextTag *first, TextTag *last) |
Static Public Attributes inherited from gccv::TextTag | |
static Tag | MaxTag |
Protected Attributes inherited from gccv::TextTag | |
bool | m_Stacked |
bool | m_NewLine |
Position.
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. |
Constructs a PositionTextTag with position as text position (normal, subscript or superscript). size is used to evaluate the size and rise if no other TextTag defines the size between the TextTag bounds. If stacked is true, a subscript and a superscript will appear at the same horizontal position.
|
virtual |
The destructor.
|
virtual |
Creates a copy of the PositionTextTag with the same position, size, stacked and Tag attributes.
Implements gccv::TextTag.
|
virtual |
l | a PangoAttrList. |
start | the start index of the relevant text. |
end | the end index of the relevant text. |
Filter method for the PositionTextTag class.
Implements gccv::TextTag.
|
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.
|
inlinevirtual |
Reimplemented from gccv::TextTag.
Definition at line 918 of file text-tag.h.
|
virtual |
tag | a TextTag. |
Equality operator.
Implements gccv::TextTag.
tag | a TextTag. |
Implementation of TextTag::Restrict for the PositionTextTag class.
Definition at line 925 of file text-tag.h.