libSBML C API
5.18.0
|
The RenderGroup_t concept from the SBML Level 3 Render package is used to to create composite representations from simple primitives. The RenderGroup_t class is derived from GraphicalPrimitive2D_t and inherits all its methods and attributes. In addition to those, the class defines attributes to specify text render properties, curve decorations, an id, and a list of child elements which can be any graphical primitive or other group.
The attributes of a group are inherited by all children of the group unless they specify the attribute themselves.
Public Member Functions | |
int | RenderGroup_addElement (RenderGroup_t *rg, const Transformation2D_t *td) |
Adds a copy of the given Transformation2D_t to this RenderGroup_t. More... | |
RenderGroup_t * | RenderGroup_clone (const RenderGroup_t *rg) |
Creates and returns a deep copy of this RenderGroup_t object. More... | |
RenderGroup_t * | RenderGroup_create (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new RenderGroup_t using the given SBML Level, Version and “render” package version. More... | |
RenderCurve_t * | RenderGroup_createCurve (RenderGroup_t *rg) |
Creates a new RenderCurve_t object, adds it to this RenderGroup_t object and returns the RenderCurve_t object created. More... | |
Ellipse_t * | RenderGroup_createEllipse (RenderGroup_t *rg) |
Creates a new Ellipse_t object, adds it to this RenderGroup_t object and returns the Ellipse_t object created. More... | |
RelAbsVector_t * | RenderGroup_createFontSize (RenderGroup_t *rg) |
Creates a new RelAbsVector_t object, adds it to this RenderGroup_t object and returns the RelAbsVector_t object created. More... | |
RenderGroup_t * | RenderGroup_createGroup (RenderGroup_t *rg) |
Creates a new RenderGroup_t object, adds it to this RenderGroup_t object and returns the RenderGroup_t object created. More... | |
Image_t * | RenderGroup_createImage (RenderGroup_t *rg) |
Creates a new Image_t object, adds it to this RenderGroup_t object and returns the Image_t object created. More... | |
LineEnding_t * | RenderGroup_createLineEnding (RenderGroup_t *rg) |
Creates a new LineEnding_t object, adds it to this RenderGroup_t object and returns the LineEnding_t object created. More... | |
Polygon_t * | RenderGroup_createPolygon (RenderGroup_t *rg) |
Creates a new Polygon_t object, adds it to this RenderGroup_t object and returns the Polygon_t object created. More... | |
Rectangle_t * | RenderGroup_createRectangle (RenderGroup_t *rg) |
Creates a new Rectangle_t object, adds it to this RenderGroup_t object and returns the Rectangle_t object created. More... | |
Text_t * | RenderGroup_createText (RenderGroup_t *rg) |
Creates a new Text_t object, adds it to this RenderGroup_t object and returns the Text_t object created. More... | |
void | RenderGroup_free (RenderGroup_t *rg) |
Frees this RenderGroup_t object. More... | |
Transformation2D_t * | RenderGroup_getElement (RenderGroup_t *rg, unsigned int n) |
Get a Transformation2D_t from the RenderGroup_t. More... | |
char * | RenderGroup_getEndHead (const RenderGroup_t *rg) |
Returns the value of the "endHead" attribute of this RenderGroup_t. More... | |
char * | RenderGroup_getFontFamily (const RenderGroup_t *rg) |
Returns the value of the "font-family" attribute of this RenderGroup_t. More... | |
const RelAbsVector_t * | RenderGroup_getFontSize (const RenderGroup_t *rg) |
Returns the value of the "font-size" element of this RenderGroup_t. More... | |
FontStyle_t | RenderGroup_getFontStyle (const RenderGroup_t *rg) |
Returns the value of the "font-style" attribute of this RenderGroup_t. More... | |
char * | RenderGroup_getFontStyleAsString (const RenderGroup_t *rg) |
Returns the value of the "font-style" attribute of this RenderGroup_t. More... | |
FontWeight_t | RenderGroup_getFontWeight (const RenderGroup_t *rg) |
Returns the value of the "font-weight" attribute of this RenderGroup_t. More... | |
char * | RenderGroup_getFontWeightAsString (const RenderGroup_t *rg) |
Returns the value of the "font-weight" attribute of this RenderGroup_t. More... | |
ListOf_t * | RenderGroup_getListOfElements (RenderGroup_t *rg) |
Returns a ListOf_t * containing Transformation2D_t objects from this RenderGroup_t. More... | |
unsigned int | RenderGroup_getNumElements (RenderGroup_t *rg) |
Get the number of Transformation2D_t objects in this RenderGroup_t. More... | |
char * | RenderGroup_getStartHead (const RenderGroup_t *rg) |
Returns the value of the "startHead" attribute of this RenderGroup_t. More... | |
HTextAnchor_t | RenderGroup_getTextAnchor (const RenderGroup_t *rg) |
Returns the value of the "text-anchor" attribute of this RenderGroup_t. More... | |
char * | RenderGroup_getTextAnchorAsString (const RenderGroup_t *rg) |
Returns the value of the "text-anchor" attribute of this RenderGroup_t. More... | |
VTextAnchor_t | RenderGroup_getVTextAnchor (const RenderGroup_t *rg) |
Returns the value of the "vtext-anchor" attribute of this RenderGroup_t. More... | |
char * | RenderGroup_getVTextAnchorAsString (const RenderGroup_t *rg) |
Returns the value of the "vtext-anchor" attribute of this RenderGroup_t. More... | |
int | RenderGroup_hasRequiredAttributes (const RenderGroup_t *rg) |
Predicate returning 1 (true) if all the required attributes for this RenderGroup_t object have been set. More... | |
int | RenderGroup_hasRequiredElements (const RenderGroup_t *rg) |
Predicate returning 1 (true) if all the required elements for this RenderGroup_t object have been set. More... | |
int | RenderGroup_isSetEndHead (const RenderGroup_t *rg) |
Predicate returning 1 (true) if this RenderGroup_t's "endHead" attribute is set. More... | |
int | RenderGroup_isSetFontFamily (const RenderGroup_t *rg) |
Predicate returning 1 (true) if this RenderGroup_t's "font-family" attribute is set. More... | |
int | RenderGroup_isSetFontSize (const RenderGroup_t *rg) |
Predicate returning 1 (true) if this RenderGroup_t's "font-size" element is set. More... | |
int | RenderGroup_isSetFontStyle (const RenderGroup_t *rg) |
Predicate returning 1 (true) if this RenderGroup_t's "font-style" attribute is set. More... | |
int | RenderGroup_isSetFontWeight (const RenderGroup_t *rg) |
Predicate returning 1 (true) if this RenderGroup_t's "font-weight" attribute is set. More... | |
int | RenderGroup_isSetStartHead (const RenderGroup_t *rg) |
Predicate returning 1 (true) if this RenderGroup_t's "startHead" attribute is set. More... | |
int | RenderGroup_isSetTextAnchor (const RenderGroup_t *rg) |
Predicate returning 1 (true) if this RenderGroup_t's "text-anchor" attribute is set. More... | |
int | RenderGroup_isSetVTextAnchor (const RenderGroup_t *rg) |
Predicate returning 1 (true) if this RenderGroup_t's "vtext-anchor" attribute is set. More... | |
Transformation2D_t * | RenderGroup_removeElement (RenderGroup_t *rg, unsigned int n) |
Removes the nth Transformation2D_t from this RenderGroup_t and returns a pointer to it. More... | |
int | RenderGroup_setEndHead (RenderGroup_t *rg, const char *endHead) |
Sets the value of the "endHead" attribute of this RenderGroup_t. More... | |
int | RenderGroup_setFontFamily (RenderGroup_t *rg, const char *fontFamily) |
Sets the value of the "font-family" attribute of this RenderGroup_t. More... | |
int | RenderGroup_setFontSize (RenderGroup_t *rg, const RelAbsVector_t *fontSize) |
Sets the value of the "font-size" element of this RenderGroup_t. More... | |
int | RenderGroup_setFontStyle (RenderGroup_t *rg, FontStyle_t fontStyle) |
Sets the value of the "font-style" attribute of this RenderGroup_t. More... | |
int | RenderGroup_setFontStyleAsString (RenderGroup_t *rg, const char *fontStyle) |
Sets the value of the "font-style" attribute of this RenderGroup_t. More... | |
int | RenderGroup_setFontWeight (RenderGroup_t *rg, FontWeight_t fontWeight) |
Sets the value of the "font-weight" attribute of this RenderGroup_t. More... | |
int | RenderGroup_setFontWeightAsString (RenderGroup_t *rg, const char *fontWeight) |
Sets the value of the "font-weight" attribute of this RenderGroup_t. More... | |
int | RenderGroup_setStartHead (RenderGroup_t *rg, const char *startHead) |
Sets the value of the "startHead" attribute of this RenderGroup_t. More... | |
int | RenderGroup_setTextAnchor (RenderGroup_t *rg, HTextAnchor_t textAnchor) |
Sets the value of the "text-anchor" attribute of this RenderGroup_t. More... | |
int | RenderGroup_setTextAnchorAsString (RenderGroup_t *rg, const char *textAnchor) |
Sets the value of the "text-anchor" attribute of this RenderGroup_t. More... | |
int | RenderGroup_setVTextAnchor (RenderGroup_t *rg, VTextAnchor_t vtextAnchor) |
Sets the value of the "vtext-anchor" attribute of this RenderGroup_t. More... | |
int | RenderGroup_setVTextAnchorAsString (RenderGroup_t *rg, const char *vtextAnchor) |
Sets the value of the "vtext-anchor" attribute of this RenderGroup_t. More... | |
int | RenderGroup_unsetEndHead (RenderGroup_t *rg) |
Unsets the value of the "endHead" attribute of this RenderGroup_t. More... | |
int | RenderGroup_unsetFontFamily (RenderGroup_t *rg) |
Unsets the value of the "font-family" attribute of this RenderGroup_t. More... | |
int | RenderGroup_unsetFontSize (RenderGroup_t *rg) |
Unsets the value of the "font-size" element of this RenderGroup_t. More... | |
int | RenderGroup_unsetFontStyle (RenderGroup_t *rg) |
Unsets the value of the "font-style" attribute of this RenderGroup_t. More... | |
int | RenderGroup_unsetFontWeight (RenderGroup_t *rg) |
Unsets the value of the "font-weight" attribute of this RenderGroup_t. More... | |
int | RenderGroup_unsetStartHead (RenderGroup_t *rg) |
Unsets the value of the "startHead" attribute of this RenderGroup_t. More... | |
int | RenderGroup_unsetTextAnchor (RenderGroup_t *rg) |
Unsets the value of the "text-anchor" attribute of this RenderGroup_t. More... | |
int | RenderGroup_unsetVTextAnchor (RenderGroup_t *rg) |
Unsets the value of the "vtext-anchor" attribute of this RenderGroup_t. More... | |
int RenderGroup_addElement | ( | RenderGroup_t * | rg, |
const Transformation2D_t * | td | ||
) |
Adds a copy of the given Transformation2D_t to this RenderGroup_t.
rg | the RenderGroup_t structure to which the Transformation2D_t should be added. |
td | the Transformation2D_t object to add. |
RenderGroup_t * RenderGroup_clone | ( | const RenderGroup_t * | rg | ) |
Creates and returns a deep copy of this RenderGroup_t object.
rg | the RenderGroup_t structure. |
RenderGroup_t * RenderGroup_create | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new RenderGroup_t using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this RenderGroup_t. |
version | an unsigned int, the SBML Version to assign to this RenderGroup_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this RenderGroup_t. |
RenderCurve_t * RenderGroup_createCurve | ( | RenderGroup_t * | rg | ) |
Creates a new RenderCurve_t object, adds it to this RenderGroup_t object and returns the RenderCurve_t object created.
rg | the RenderGroup_t structure to which the RenderCurve_t should be added. |
Ellipse_t * RenderGroup_createEllipse | ( | RenderGroup_t * | rg | ) |
Creates a new Ellipse_t object, adds it to this RenderGroup_t object and returns the Ellipse_t object created.
rg | the RenderGroup_t structure to which the Ellipse_t should be added. |
RelAbsVector_t * RenderGroup_createFontSize | ( | RenderGroup_t * | rg | ) |
Creates a new RelAbsVector_t object, adds it to this RenderGroup_t object and returns the RelAbsVector_t object created.
rg | the RenderGroup_t structure to which the RelAbsVector_t should be added. |
RenderGroup_t * RenderGroup_createGroup | ( | RenderGroup_t * | rg | ) |
Creates a new RenderGroup_t object, adds it to this RenderGroup_t object and returns the RenderGroup_t object created.
rg | the RenderGroup_t structure to which the RenderGroup_t should be added. |
Image_t * RenderGroup_createImage | ( | RenderGroup_t * | rg | ) |
Creates a new Image_t object, adds it to this RenderGroup_t object and returns the Image_t object created.
rg | the RenderGroup_t structure to which the Image_t should be added. |
LineEnding_t * RenderGroup_createLineEnding | ( | RenderGroup_t * | rg | ) |
Creates a new LineEnding_t object, adds it to this RenderGroup_t object and returns the LineEnding_t object created.
rg | the RenderGroup_t structure to which the LineEnding_t should be added. |
Polygon_t * RenderGroup_createPolygon | ( | RenderGroup_t * | rg | ) |
Creates a new Polygon_t object, adds it to this RenderGroup_t object and returns the Polygon_t object created.
rg | the RenderGroup_t structure to which the Polygon_t should be added. |
Rectangle_t * RenderGroup_createRectangle | ( | RenderGroup_t * | rg | ) |
Creates a new Rectangle_t object, adds it to this RenderGroup_t object and returns the Rectangle_t object created.
rg | the RenderGroup_t structure to which the Rectangle_t should be added. |
Text_t * RenderGroup_createText | ( | RenderGroup_t * | rg | ) |
Creates a new Text_t object, adds it to this RenderGroup_t object and returns the Text_t object created.
rg | the RenderGroup_t structure to which the Text_t should be added. |
void RenderGroup_free | ( | RenderGroup_t * | rg | ) |
Frees this RenderGroup_t object.
rg | the RenderGroup_t structure. |
Transformation2D_t * RenderGroup_getElement | ( | RenderGroup_t * | rg, |
unsigned int | n | ||
) |
Get a Transformation2D_t from the RenderGroup_t.
rg | the RenderGroup_t structure to search. |
n | an unsigned int representing the index of the Transformation2D_t to retrieve. |
n
is invalid, NULL
is returned.char * RenderGroup_getEndHead | ( | const RenderGroup_t * | rg | ) |
Returns the value of the "endHead" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure whose endHead is sought. |
char * RenderGroup_getFontFamily | ( | const RenderGroup_t * | rg | ) |
Returns the value of the "font-family" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure whose font-family is sought. |
const RelAbsVector_t * RenderGroup_getFontSize | ( | const RenderGroup_t * | rg | ) |
Returns the value of the "font-size" element of this RenderGroup_t.
rg | the RenderGroup_t structure whose font-size is sought. |
FontStyle_t RenderGroup_getFontStyle | ( | const RenderGroup_t * | rg | ) |
Returns the value of the "font-style" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure whose font-style is sought. |
"italic"
, slanted print
"normal"
, upright print
char * RenderGroup_getFontStyleAsString | ( | const RenderGroup_t * | rg | ) |
Returns the value of the "font-style" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure whose font-style is sought. |
"italic"
, slanted print
"normal"
, upright print
"italic"
"normal"
"(Unknown FontStyle value)"
FontWeight_t RenderGroup_getFontWeight | ( | const RenderGroup_t * | rg | ) |
Returns the value of the "font-weight" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure whose font-weight is sought. |
"bold"
, darker and/or thicker than normal print.
"normal"
, the typical print weight; lighter and/or thinner than "bold".
char * RenderGroup_getFontWeightAsString | ( | const RenderGroup_t * | rg | ) |
Returns the value of the "font-weight" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure whose font-weight is sought. |
"bold"
, darker and/or thicker than normal print.
"normal"
, the typical print weight; lighter and/or thinner than "bold".
"bold"
"normal"
"Unknown FontWeight value"
ListOf_t * RenderGroup_getListOfElements | ( | RenderGroup_t * | rg | ) |
Returns a ListOf_t * containing Transformation2D_t objects from this RenderGroup_t.
rg | the RenderGroup_t structure whose ListOfDrawables_t is sought. |
unsigned int RenderGroup_getNumElements | ( | RenderGroup_t * | rg | ) |
Get the number of Transformation2D_t objects in this RenderGroup_t.
rg | the RenderGroup_t structure to query. |
char * RenderGroup_getStartHead | ( | const RenderGroup_t * | rg | ) |
Returns the value of the "startHead" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure whose startHead is sought. |
HTextAnchor_t RenderGroup_getTextAnchor | ( | const RenderGroup_t * | rg | ) |
Returns the value of the "text-anchor" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure whose text-anchor is sought. |
"start"
, the start of the text is aligned to the horizontal center of the box.
"middle"
, the horizontal center of the text is aligned to the horizontal center of the box.
"end"
, the end of the text is aligned to the horizontal center of the box.
char * RenderGroup_getTextAnchorAsString | ( | const RenderGroup_t * | rg | ) |
Returns the value of the "text-anchor" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure whose text-anchor is sought. |
"start"
, the start of the text is aligned to the horizontal center of the box.
"middle"
, the horizontal center of the text is aligned to the horizontal center of the box.
"end"
, the end of the text is aligned to the horizontal center of the box.
"start"
"middle"
"end"
"(Unknown HTextAnchor value)"
VTextAnchor_t RenderGroup_getVTextAnchor | ( | const RenderGroup_t * | rg | ) |
Returns the value of the "vtext-anchor" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure whose vtext-anchor is sought. |
"top"
, the top of the text is aligned to the vertical center of the box.
"middle"
, the vertical center of the text is aligned with the vertical center of the box.
"bottom"
, the bottom of the text (i.e. the very bottom of any descending letter like 'y' or 'p') is aligned with the vertical center of the box.
"baseline"
, the baseline of the text (i.e. the bottom of any non-descending letter like 'a' or e') is aligned with the vertical center of the box.
char * RenderGroup_getVTextAnchorAsString | ( | const RenderGroup_t * | rg | ) |
Returns the value of the "vtext-anchor" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure whose vtext-anchor is sought. |
"top"
, the top of the text is aligned to the vertical center of the box.
"middle"
, the vertical center of the text is aligned with the vertical center of the box.
"bottom"
, the bottom of the text (i.e. the very bottom of any descending letter like 'y' or 'p') is aligned with the vertical center of the box.
"baseline"
, the baseline of the text (i.e. the bottom of any non-descending letter like 'a' or e') is aligned with the vertical center of the box.
"top"
"middle"
"bottom"
"baseline"
"(Unknown VTextAnchor value)"
int RenderGroup_hasRequiredAttributes | ( | const RenderGroup_t * | rg | ) |
Predicate returning 1
(true) if all the required attributes for this RenderGroup_t object have been set.
rg | the RenderGroup_t structure. |
1
(true) to indicate that all the required attributes of this RenderGroup_t have been set, otherwise 0
(false) is returned. int RenderGroup_hasRequiredElements | ( | const RenderGroup_t * | rg | ) |
Predicate returning 1
(true) if all the required elements for this RenderGroup_t object have been set.
rg | the RenderGroup_t structure. |
1
(true) to indicate that all the required elements of this RenderGroup_t have been set, otherwise 0
(false) is returned.int RenderGroup_isSetEndHead | ( | const RenderGroup_t * | rg | ) |
Predicate returning 1
(true) if this RenderGroup_t's "endHead" attribute is set.
rg | the RenderGroup_t structure. |
1
(true) if this RenderGroup_t's "endHead" attribute has been set, otherwise 0
(false) is returned. int RenderGroup_isSetFontFamily | ( | const RenderGroup_t * | rg | ) |
Predicate returning 1
(true) if this RenderGroup_t's "font-family" attribute is set.
rg | the RenderGroup_t structure. |
1
(true) if this RenderGroup_t's "font-family" attribute has been set, otherwise 0
(false) is returned. int RenderGroup_isSetFontSize | ( | const RenderGroup_t * | rg | ) |
Predicate returning 1
(true) if this RenderGroup_t's "font-size" element is set.
rg | the RenderGroup_t structure. |
1
(true) if this RenderGroup_t's "font-size" element has been set, otherwise 0
(false) is returned. int RenderGroup_isSetFontStyle | ( | const RenderGroup_t * | rg | ) |
Predicate returning 1
(true) if this RenderGroup_t's "font-style" attribute is set.
rg | the RenderGroup_t structure. |
1
(true) if this RenderGroup_t's "font-style" attribute has been set, otherwise 0
(false) is returned."italic"
, slanted print
"normal"
, upright print
int RenderGroup_isSetFontWeight | ( | const RenderGroup_t * | rg | ) |
Predicate returning 1
(true) if this RenderGroup_t's "font-weight" attribute is set.
rg | the RenderGroup_t structure. |
1
(true) if this RenderGroup_t's "font-weight" attribute has been set, otherwise 0
(false) is returned."bold"
, darker and/or thicker than normal print.
"normal"
, the typical print weight; lighter and/or thinner than "bold".
int RenderGroup_isSetStartHead | ( | const RenderGroup_t * | rg | ) |
Predicate returning 1
(true) if this RenderGroup_t's "startHead" attribute is set.
rg | the RenderGroup_t structure. |
1
(true) if this RenderGroup_t's "startHead" attribute has been set, otherwise 0
(false) is returned. int RenderGroup_isSetTextAnchor | ( | const RenderGroup_t * | rg | ) |
Predicate returning 1
(true) if this RenderGroup_t's "text-anchor" attribute is set.
rg | the RenderGroup_t structure. |
1
(true) if this RenderGroup_t's "text-anchor" attribute has been set, otherwise 0
(false) is returned."start"
, the start of the text is aligned to the horizontal center of the box.
"middle"
, the horizontal center of the text is aligned to the horizontal center of the box.
"end"
, the end of the text is aligned to the horizontal center of the box.
int RenderGroup_isSetVTextAnchor | ( | const RenderGroup_t * | rg | ) |
Predicate returning 1
(true) if this RenderGroup_t's "vtext-anchor" attribute is set.
rg | the RenderGroup_t structure. |
1
(true) if this RenderGroup_t's "vtext-anchor" attribute has been set, otherwise 0
(false) is returned."top"
, the top of the text is aligned to the vertical center of the box.
"middle"
, the vertical center of the text is aligned with the vertical center of the box.
"bottom"
, the bottom of the text (i.e. the very bottom of any descending letter like 'y' or 'p') is aligned with the vertical center of the box.
"baseline"
, the baseline of the text (i.e. the bottom of any non-descending letter like 'a' or e') is aligned with the vertical center of the box.
Transformation2D_t * RenderGroup_removeElement | ( | RenderGroup_t * | rg, |
unsigned int | n | ||
) |
Removes the nth Transformation2D_t from this RenderGroup_t and returns a pointer to it.
rg | the RenderGroup_t structure to search. |
n | an unsigned int representing the index of the Transformation2D_t to remove. |
int RenderGroup_setEndHead | ( | RenderGroup_t * | rg, |
const char * | endHead | ||
) |
Sets the value of the "endHead" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
endHead | const char * value of the "endHead" attribute to be set. |
int RenderGroup_setFontFamily | ( | RenderGroup_t * | rg, |
const char * | fontFamily | ||
) |
Sets the value of the "font-family" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
fontFamily | const char * value of the "font-family" attribute to be set. |
fontFamily
= NULL
or an empty string is equivalent to calling RenderGroup_unsetFontFamily(). int RenderGroup_setFontSize | ( | RenderGroup_t * | rg, |
const RelAbsVector_t * | fontSize | ||
) |
Sets the value of the "font-size" element of this RenderGroup_t.
rg | the RenderGroup_t structure. |
fontSize | RelAbsVector_t value of the "font-size" element to be set. |
int RenderGroup_setFontStyle | ( | RenderGroup_t * | rg, |
FontStyle_t | fontStyle | ||
) |
Sets the value of the "font-style" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
fontStyle | FontStyle_t value of the "font-style" attribute to be set. |
"italic"
, slanted print
"normal"
, upright print
int RenderGroup_setFontStyleAsString | ( | RenderGroup_t * | rg, |
const char * | fontStyle | ||
) |
Sets the value of the "font-style" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
fontStyle | const char * of the "font-style" attribute to be set. |
"italic"
, slanted print
"normal"
, upright print
int RenderGroup_setFontWeight | ( | RenderGroup_t * | rg, |
FontWeight_t | fontWeight | ||
) |
Sets the value of the "font-weight" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
fontWeight | FontWeight_t value of the "font-weight" attribute to be set. |
"bold"
, darker and/or thicker than normal print.
"normal"
, the typical print weight; lighter and/or thinner than "bold".
int RenderGroup_setFontWeightAsString | ( | RenderGroup_t * | rg, |
const char * | fontWeight | ||
) |
Sets the value of the "font-weight" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
fontWeight | const char * of the "font-weight" attribute to be set. |
"bold"
, darker and/or thicker than normal print.
"normal"
, the typical print weight; lighter and/or thinner than "bold".
int RenderGroup_setStartHead | ( | RenderGroup_t * | rg, |
const char * | startHead | ||
) |
Sets the value of the "startHead" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
startHead | const char * value of the "startHead" attribute to be set. |
int RenderGroup_setTextAnchor | ( | RenderGroup_t * | rg, |
HTextAnchor_t | textAnchor | ||
) |
Sets the value of the "text-anchor" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
textAnchor | HTextAnchor_t value of the "text-anchor" attribute to be set. |
"start"
, the start of the text is aligned to the horizontal center of the box.
"middle"
, the horizontal center of the text is aligned to the horizontal center of the box.
"end"
, the end of the text is aligned to the horizontal center of the box.
int RenderGroup_setTextAnchorAsString | ( | RenderGroup_t * | rg, |
const char * | textAnchor | ||
) |
Sets the value of the "text-anchor" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
textAnchor | const char * of the "text-anchor" attribute to be set. |
"start"
, the start of the text is aligned to the horizontal center of the box.
"middle"
, the horizontal center of the text is aligned to the horizontal center of the box.
"end"
, the end of the text is aligned to the horizontal center of the box.
int RenderGroup_setVTextAnchor | ( | RenderGroup_t * | rg, |
VTextAnchor_t | vtextAnchor | ||
) |
Sets the value of the "vtext-anchor" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
vtextAnchor | VTextAnchor_t value of the "vtext-anchor" attribute to be set. |
"top"
, the top of the text is aligned to the vertical center of the box.
"middle"
, the vertical center of the text is aligned with the vertical center of the box.
"bottom"
, the bottom of the text (i.e. the very bottom of any descending letter like 'y' or 'p') is aligned with the vertical center of the box.
"baseline"
, the baseline of the text (i.e. the bottom of any non-descending letter like 'a' or e') is aligned with the vertical center of the box.
int RenderGroup_setVTextAnchorAsString | ( | RenderGroup_t * | rg, |
const char * | vtextAnchor | ||
) |
Sets the value of the "vtext-anchor" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
vtextAnchor | const char * of the "vtext-anchor" attribute to be set. |
"top"
, the top of the text is aligned to the vertical center of the box.
"middle"
, the vertical center of the text is aligned with the vertical center of the box.
"bottom"
, the bottom of the text (i.e. the very bottom of any descending letter like 'y' or 'p') is aligned with the vertical center of the box.
"baseline"
, the baseline of the text (i.e. the bottom of any non-descending letter like 'a' or e') is aligned with the vertical center of the box.
int RenderGroup_unsetEndHead | ( | RenderGroup_t * | rg | ) |
Unsets the value of the "endHead" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
int RenderGroup_unsetFontFamily | ( | RenderGroup_t * | rg | ) |
Unsets the value of the "font-family" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
int RenderGroup_unsetFontSize | ( | RenderGroup_t * | rg | ) |
Unsets the value of the "font-size" element of this RenderGroup_t.
rg | the RenderGroup_t structure. |
int RenderGroup_unsetFontStyle | ( | RenderGroup_t * | rg | ) |
Unsets the value of the "font-style" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
"italic"
, slanted print
"normal"
, upright print
int RenderGroup_unsetFontWeight | ( | RenderGroup_t * | rg | ) |
Unsets the value of the "font-weight" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
"bold"
, darker and/or thicker than normal print.
"normal"
, the typical print weight; lighter and/or thinner than "bold".
int RenderGroup_unsetStartHead | ( | RenderGroup_t * | rg | ) |
Unsets the value of the "startHead" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
int RenderGroup_unsetTextAnchor | ( | RenderGroup_t * | rg | ) |
Unsets the value of the "text-anchor" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
"start"
, the start of the text is aligned to the horizontal center of the box.
"middle"
, the horizontal center of the text is aligned to the horizontal center of the box.
"end"
, the end of the text is aligned to the horizontal center of the box.
int RenderGroup_unsetVTextAnchor | ( | RenderGroup_t * | rg | ) |
Unsets the value of the "vtext-anchor" attribute of this RenderGroup_t.
rg | the RenderGroup_t structure. |
"top"
, the top of the text is aligned to the vertical center of the box.
"middle"
, the vertical center of the text is aligned with the vertical center of the box.
"bottom"
, the bottom of the text (i.e. the very bottom of any descending letter like 'y' or 'p') is aligned with the vertical center of the box.
"baseline"
, the baseline of the text (i.e. the bottom of any non-descending letter like 'a' or e') is aligned with the vertical center of the box.