libSBML C++ API  5.20.4
Text.cpp File Reference

Implementation of the Text class. More...

Include dependency graph for Text.cpp:

Functions

Text_tText_clone (const Text_t *t)
 
Text_tText_create (unsigned int level, unsigned int version, unsigned int pkgVersion)
 
void Text_free (Text_t *t)
 
char * Text_getFontFamily (const Text_t *t)
 
RelAbsVector_tText_getFontSize (const Text_t *t)
 
FontStyle_t Text_getFontStyle (const Text_t *t)
 
char * Text_getFontStyleAsString (const Text_t *t)
 
FontWeight_t Text_getFontWeight (const Text_t *t)
 
char * Text_getFontWeightAsString (const Text_t *t)
 
HTextAnchor_t Text_getTextAnchor (const Text_t *t)
 
char * Text_getTextAnchorAsString (const Text_t *t)
 
VTextAnchor_t Text_getVTextAnchor (const Text_t *t)
 
char * Text_getVTextAnchorAsString (const Text_t *t)
 
RelAbsVector_tText_getX (const Text_t *t)
 
RelAbsVector_tText_getY (const Text_t *t)
 
RelAbsVector_tText_getZ (const Text_t *t)
 
int Text_hasRequiredAttributes (const Text_t *t)
 
int Text_isSetFontFamily (const Text_t *t)
 
int Text_isSetFontSize (const Text_t *t)
 
int Text_isSetFontStyle (const Text_t *t)
 
int Text_isSetFontWeight (const Text_t *t)
 
int Text_isSetTextAnchor (const Text_t *t)
 
int Text_isSetVTextAnchor (const Text_t *t)
 
int Text_isSetX (const Text_t *t)
 
int Text_isSetY (const Text_t *t)
 
int Text_isSetZ (const Text_t *t)
 
int Text_setFontFamily (Text_t *t, const char *fontFamily)
 
int Text_setFontSize (Text_t *t, const RelAbsVector_t *fontSize)
 
int Text_setFontStyle (Text_t *t, FontStyle_t fontStyle)
 
int Text_setFontStyleAsString (Text_t *t, const char *fontStyle)
 
int Text_setFontWeight (Text_t *t, FontWeight_t fontWeight)
 
int Text_setFontWeightAsString (Text_t *t, const char *fontWeight)
 
int Text_setTextAnchor (Text_t *t, HTextAnchor_t textAnchor)
 
int Text_setTextAnchorAsString (Text_t *t, const char *textAnchor)
 
int Text_setVTextAnchor (Text_t *t, VTextAnchor_t vtextAnchor)
 
int Text_setVTextAnchorAsString (Text_t *t, const char *vtextAnchor)
 
int Text_setX (Text_t *t, const RelAbsVector_t *x)
 
int Text_setY (Text_t *t, const RelAbsVector_t *y)
 
int Text_setZ (Text_t *t, const RelAbsVector_t *z)
 
int Text_unsetFontFamily (Text_t *t)
 
int Text_unsetFontSize (Text_t *t)
 
int Text_unsetFontStyle (Text_t *t)
 
int Text_unsetFontWeight (Text_t *t)
 
int Text_unsetTextAnchor (Text_t *t)
 
int Text_unsetVTextAnchor (Text_t *t)
 
int Text_unsetX (Text_t *t)
 
int Text_unsetY (Text_t *t)
 
int Text_unsetZ (Text_t *t)
 
Text::TEXT_ANCHOR TextAnchor_fromString (const char *name)
 
const char * TextAnchor_toString (Text::TEXT_ANCHOR anchor)
 

Variables

const char * TEXT_ANCHOR_STRINGS []
 

Detailed Description

Implementation of the Text class.

Author
Ralph Gauges
Frank T. Bergmann

Function Documentation

◆ Text_clone()

Text_t* Text_clone ( const Text_t t)

◆ Text_create()

Text_t* Text_create ( unsigned int  level,
unsigned int  version,
unsigned int  pkgVersion 
)

◆ Text_free()

void Text_free ( Text_t t)

◆ Text_getFontFamily()

char* Text_getFontFamily ( const Text_t t)

◆ Text_getFontSize()

RelAbsVector_t* Text_getFontSize ( const Text_t t)

◆ Text_getFontStyle()

FontStyle_t Text_getFontStyle ( const Text_t t)

◆ Text_getFontStyleAsString()

char* Text_getFontStyleAsString ( const Text_t t)

◆ Text_getFontWeight()

FontWeight_t Text_getFontWeight ( const Text_t t)

◆ Text_getFontWeightAsString()

char* Text_getFontWeightAsString ( const Text_t t)

◆ Text_getTextAnchor()

HTextAnchor_t Text_getTextAnchor ( const Text_t t)

◆ Text_getTextAnchorAsString()

char* Text_getTextAnchorAsString ( const Text_t t)

◆ Text_getVTextAnchor()

VTextAnchor_t Text_getVTextAnchor ( const Text_t t)

◆ Text_getVTextAnchorAsString()

char* Text_getVTextAnchorAsString ( const Text_t t)

◆ Text_getX()

RelAbsVector_t* Text_getX ( const Text_t t)

◆ Text_getY()

RelAbsVector_t* Text_getY ( const Text_t t)

◆ Text_getZ()

RelAbsVector_t* Text_getZ ( const Text_t t)

◆ Text_hasRequiredAttributes()

int Text_hasRequiredAttributes ( const Text_t t)

◆ Text_isSetFontFamily()

int Text_isSetFontFamily ( const Text_t t)

◆ Text_isSetFontSize()

int Text_isSetFontSize ( const Text_t t)

◆ Text_isSetFontStyle()

int Text_isSetFontStyle ( const Text_t t)

◆ Text_isSetFontWeight()

int Text_isSetFontWeight ( const Text_t t)

◆ Text_isSetTextAnchor()

int Text_isSetTextAnchor ( const Text_t t)

◆ Text_isSetVTextAnchor()

int Text_isSetVTextAnchor ( const Text_t t)

◆ Text_isSetX()

int Text_isSetX ( const Text_t t)

◆ Text_isSetY()

int Text_isSetY ( const Text_t t)

◆ Text_isSetZ()

int Text_isSetZ ( const Text_t t)

◆ Text_setFontFamily()

int Text_setFontFamily ( Text_t t,
const char *  fontFamily 
)

◆ Text_setFontSize()

int Text_setFontSize ( Text_t t,
const RelAbsVector_t fontSize 
)

◆ Text_setFontStyle()

int Text_setFontStyle ( Text_t t,
FontStyle_t  fontStyle 
)

◆ Text_setFontStyleAsString()

int Text_setFontStyleAsString ( Text_t t,
const char *  fontStyle 
)

◆ Text_setFontWeight()

int Text_setFontWeight ( Text_t t,
FontWeight_t  fontWeight 
)

◆ Text_setFontWeightAsString()

int Text_setFontWeightAsString ( Text_t t,
const char *  fontWeight 
)

◆ Text_setTextAnchor()

int Text_setTextAnchor ( Text_t t,
HTextAnchor_t  textAnchor 
)

◆ Text_setTextAnchorAsString()

int Text_setTextAnchorAsString ( Text_t t,
const char *  textAnchor 
)

◆ Text_setVTextAnchor()

int Text_setVTextAnchor ( Text_t t,
VTextAnchor_t  vtextAnchor 
)

◆ Text_setVTextAnchorAsString()

int Text_setVTextAnchorAsString ( Text_t t,
const char *  vtextAnchor 
)

◆ Text_setX()

int Text_setX ( Text_t t,
const RelAbsVector_t x 
)

◆ Text_setY()

int Text_setY ( Text_t t,
const RelAbsVector_t y 
)

◆ Text_setZ()

int Text_setZ ( Text_t t,
const RelAbsVector_t z 
)

◆ Text_unsetFontFamily()

int Text_unsetFontFamily ( Text_t t)

◆ Text_unsetFontSize()

int Text_unsetFontSize ( Text_t t)

◆ Text_unsetFontStyle()

int Text_unsetFontStyle ( Text_t t)

◆ Text_unsetFontWeight()

int Text_unsetFontWeight ( Text_t t)

◆ Text_unsetTextAnchor()

int Text_unsetTextAnchor ( Text_t t)

◆ Text_unsetVTextAnchor()

int Text_unsetVTextAnchor ( Text_t t)

◆ Text_unsetX()

int Text_unsetX ( Text_t t)

◆ Text_unsetY()

int Text_unsetY ( Text_t t)

◆ Text_unsetZ()

int Text_unsetZ ( Text_t t)

◆ TextAnchor_fromString()

Text::TEXT_ANCHOR TextAnchor_fromString ( const char *  name)

◆ TextAnchor_toString()

const char* TextAnchor_toString ( Text::TEXT_ANCHOR  anchor)

Variable Documentation

◆ TEXT_ANCHOR_STRINGS

const char* TEXT_ANCHOR_STRINGS[]
Initial value:
=
{
"unset",
"start",
"middle",
"end",
"top",
"bottom",
"baseline",
"invalid"
}