The Gnome Chemistry Utils  0.14.0
Public Member Functions | List of all members
gccv::PositionTextTag Class Reference

Position. More...

#include <text-tag.h>

Inheritance diagram for gccv::PositionTextTag:
gccv::TextTag gcp::ChargeTextTag gcp::StoichiometryTextTag

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
TextTagDuplicate () const
TextPosition GetPosition (bool &stacked, double &size) const
virtual bool NeedsNewRun ()
TextTagRestrict (G_GNUC_UNUSED TextTag *tag)
- Public Member Functions inherited from gccv::TextTag
 TextTag (Tag tag, TagPriority priority=TagPriorityFirst)
virtual ~TextTag ()
virtual TextTagRestrict (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

Detailed Description

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.

Constructor & Destructor Documentation

gccv::PositionTextTag::PositionTextTag ( TextPosition  position,
double  size,
bool  stacked = false,
Tag  tag = Position 
)
Parameters
positiona TextPosition.
sizea default size.
stackedwhether the text should be stacked.
tagan 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 gccv::PositionTextTag::~PositionTextTag ( )
virtual

The destructor.

Member Function Documentation

TextTag* gccv::PositionTextTag::Duplicate ( ) const
virtual

Creates a copy of the PositionTextTag with the same position, size, stacked and Tag attributes.

Returns
the new TextTag.

Implements gccv::TextTag.

void gccv::PositionTextTag::Filter ( PangoAttrList *  l,
unsigned  start,
unsigned  end 
)
virtual
Parameters
la PangoAttrList.
startthe start index of the relevant text.
endthe end index of the relevant text.

Filter method for the PositionTextTag class.

Implements gccv::TextTag.

TextPosition gccv::PositionTextTag::GetPosition ( bool &  stacked,
double &  size 
) const
inline
Parameters
stackedwhere to store whether the text should be stacked.
sizewhere to store the default size.
Returns
the TextPosition for this PositionTextTag.

Definition at line 914 of file text-tag.h.

References gccv::TextTag::m_Stacked.

virtual bool gccv::PositionTextTag::NeedsNewRun ( )
inlinevirtual
Returns
true if the PositionTextTag is stacked.

Reimplemented from gccv::TextTag.

Definition at line 918 of file text-tag.h.

bool gccv::PositionTextTag::operator== ( TextTag const &  tag) const
virtual
Parameters
taga TextTag.

Equality operator.

Returns
true if tag is a PositionTextTag and has the position than this.

Implements gccv::TextTag.

TextTag* gccv::PositionTextTag::Restrict ( G_GNUC_UNUSED TextTag tag)
inline
Parameters
taga TextTag.

Implementation of TextTag::Restrict for the PositionTextTag class.

Returns
the new TextTag if this split or NULL.

Definition at line 925 of file text-tag.h.


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