libSBML C API
5.18.0
|
Local styles are the style information objects used in LocalRenderInformation_t. Local styles can be associated with layout objects by role and type as well as by id of layout objects from the layout the local style belongs to.
Since LocalStyle_t is derived from Style_t, it inherits all of the methods and attributes from Style_t.
Public Member Functions | |
LocalStyle_t * | LocalStyle_clone (const LocalStyle_t *ls) |
Creates and returns a deep copy of this LocalStyle_t object. More... | |
LocalStyle_t * | LocalStyle_create (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new LocalStyle_t using the given SBML Level, Version and “render” package version. More... | |
void | LocalStyle_free (LocalStyle_t *ls) |
Frees this LocalStyle_t object. More... | |
int | LocalStyle_hasRequiredAttributes (const LocalStyle_t *ls) |
Unsets the value of the "idList" attribute of this LocalStyle_t. More... | |
int | LocalStyle_isSetIdList (const LocalStyle_t *ls) |
Returns the value of the "idList" attribute of this LocalStyle_t. More... | |
int | LocalStyle_setIdList (LocalStyle_t *ls, const char *idList) |
Sets the value of the "idList" attribute of this LocalStyle_t. More... | |
LocalStyle_t * LocalStyle_clone | ( | const LocalStyle_t * | ls | ) |
Creates and returns a deep copy of this LocalStyle_t object.
ls | the LocalStyle_t structure. |
LocalStyle_t * LocalStyle_create | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new LocalStyle_t using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this LocalStyle_t. |
version | an unsigned int, the SBML Version to assign to this LocalStyle_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this LocalStyle_t. |
void LocalStyle_free | ( | LocalStyle_t * | ls | ) |
Frees this LocalStyle_t object.
ls | the LocalStyle_t structure. |
int LocalStyle_hasRequiredAttributes | ( | const LocalStyle_t * | ls | ) |
Unsets the value of the "idList" attribute of this LocalStyle_t.
ls | the LocalStyle_t structure. |
1
(true) if all the required attributes for this LocalStyle_t object have been set.ls | the LocalStyle_t structure. |
1
(true) to indicate that all the required attributes of this LocalStyle_t have been set, otherwise 0
(false) is returned. int LocalStyle_isSetIdList | ( | const LocalStyle_t * | ls | ) |
Returns the value of the "idList" attribute of this LocalStyle_t.
ls | the LocalStyle_t structure whose idList is sought. |
1
(true) if this LocalStyle_t's "idList" attribute is set.ls | the LocalStyle_t structure. |
1
(true) if this LocalStyle_t's "idList" attribute has been set, otherwise 0
(false) is returned. int LocalStyle_setIdList | ( | LocalStyle_t * | ls, |
const char * | idList | ||
) |
Sets the value of the "idList" attribute of this LocalStyle_t.
ls | the LocalStyle_t structure. |
idList | const char * value of the "idList" attribute to be set. |
idList
= NULL
or an empty string is equivalent to calling LocalStyle_unsetIdList().