The Gnome Chemistry Utils 0.13.3
Public Member Functions
gccv::PositionTextTag Class Reference

Position. More...

#include <text-tag.h>

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

List of all members.

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)

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 ( ) [inline, virtual]
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: