libSBML C API
5.18.0
|
GlobalRenderInformation_t is one of the subclasses of RenderInformationBase_t. A global render information object contains color definitions, gradient definitions and line endings as defined in RenderInformationBase_t. Additionally it has a list of global styles which specifies type and role based render information. This class of objects cannot specify id-based render information because it does not belong to a certain layout but it belongs to all layouts. GlobalRenderInformation_t can be applied to all layouts.
int GlobalRenderInformation_addGlobalStyle | ( | GlobalRenderInformation_t * | gri, |
const GlobalStyle_t * | gs | ||
) |
Adds a copy of the given GlobalStyle_t to this GlobalRenderInformation_t.
gri | the GlobalRenderInformation_t structure to which the GlobalStyle_t should be added. |
gs | the GlobalStyle_t object to add. |
GlobalRenderInformation_t * GlobalRenderInformation_clone | ( | const GlobalRenderInformation_t * | gri | ) |
Creates and returns a deep copy of this GlobalRenderInformation_t object.
gri | the GlobalRenderInformation_t structure. |
GlobalRenderInformation_t * GlobalRenderInformation_create | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new GlobalRenderInformation_t using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this GlobalRenderInformation_t. |
version | an unsigned int, the SBML Version to assign to this GlobalRenderInformation_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this GlobalRenderInformation_t. |
GlobalStyle_t * GlobalRenderInformation_createGlobalStyle | ( | GlobalRenderInformation_t * | gri | ) |
Creates a new GlobalStyle_t object, adds it to this GlobalRenderInformation_t object and returns the GlobalStyle_t object created.
gri | the GlobalRenderInformation_t structure to which the GlobalStyle_t should be added. |
void GlobalRenderInformation_free | ( | GlobalRenderInformation_t * | gri | ) |
Frees this GlobalRenderInformation_t object.
gri | the GlobalRenderInformation_t structure. |
GlobalStyle_t * GlobalRenderInformation_getGlobalStyle | ( | GlobalRenderInformation_t * | gri, |
unsigned int | n | ||
) |
Get a GlobalStyle_t from the GlobalRenderInformation_t.
gri | the GlobalRenderInformation_t structure to search. |
n | an unsigned int representing the index of the GlobalStyle_t to retrieve. |
NULL
if no such object exists.ListOf_t * GlobalRenderInformation_getListOfGlobalStyles | ( | GlobalRenderInformation_t * | gri | ) |
Returns a ListOf_t * containing GlobalStyle_t objects from this GlobalRenderInformation_t.
gri | the GlobalRenderInformation_t structure whose ListOfGlobalStyles_t is sought. |
unsigned int GlobalRenderInformation_getNumGlobalStyles | ( | GlobalRenderInformation_t * | gri | ) |
Get the number of GlobalStyle_t objects in this GlobalRenderInformation_t.
gri | the GlobalRenderInformation_t structure to query. |
int GlobalRenderInformation_hasRequiredAttributes | ( | const GlobalRenderInformation_t * | gri | ) |
Predicate returning 1
(true) if all the required attributes for this GlobalRenderInformation_t object have been set.
gri | the GlobalRenderInformation_t structure. |
1
(true) to indicate that all the required attributes of this GlobalRenderInformation_t have been set, otherwise 0
(false) is returned. int GlobalRenderInformation_hasRequiredElements | ( | const GlobalRenderInformation_t * | gri | ) |
Predicate returning 1
(true) if all the required elements for this GlobalRenderInformation_t object have been set.
gri | the GlobalRenderInformation_t structure. |
1
(true) to indicate that all the required elements of this GlobalRenderInformation_t have been set, otherwise 0
(false) is returned.GlobalStyle_t * GlobalRenderInformation_removeGlobalStyle | ( | GlobalRenderInformation_t * | gri, |
unsigned int | n | ||
) |
Removes the nth GlobalStyle_t from this GlobalRenderInformation_t and returns a pointer to it.
gri | the GlobalRenderInformation_t structure to search. |
n | an unsigned int representing the index of the GlobalStyle_t to remove. |