libSBML C API  5.18.0
GradientBase.cpp File Reference

abstract base class for gradient objects More...

Include dependency graph for GradientBase.cpp:

Functions

int GradientBase_addGradientStop (GradientBase_t *gb, const GradientStop_t *gs)
 
GradientBase_tGradientBase_clone (const GradientBase_t *gb)
 
GradientStop_tGradientBase_createGradientStop (GradientBase_t *gb)
 
GradientBase_tGradientBase_createLinearGradient (unsigned int level, unsigned int version, unsigned int pkgVersion)
 
GradientBase_tGradientBase_createRadialGradient (unsigned int level, unsigned int version, unsigned int pkgVersion)
 
void GradientBase_free (GradientBase_t *gb)
 
GradientStop_tGradientBase_getGradientStop (GradientBase_t *gb, unsigned int n)
 
char * GradientBase_getId (const GradientBase_t *gb)
 
ListOf_tGradientBase_getListOfGradientStops (GradientBase_t *gb)
 
char * GradientBase_getName (const GradientBase_t *gb)
 
unsigned int GradientBase_getNumGradientStops (GradientBase_t *gb)
 
GradientSpreadMethod_t GradientBase_getSpreadMethod (const GradientBase_t *gb)
 
char * GradientBase_getSpreadMethodAsString (const GradientBase_t *gb)
 
int GradientBase_hasRequiredAttributes (const GradientBase_t *gb)
 
int GradientBase_isLinearGradient (const GradientBase_t *gb)
 
int GradientBase_isRadialGradient (const GradientBase_t *gb)
 
int GradientBase_isSetId (const GradientBase_t *gb)
 
int GradientBase_isSetName (const GradientBase_t *gb)
 
int GradientBase_isSetSpreadMethod (const GradientBase_t *gb)
 
GradientStop_tGradientBase_removeGradientStop (GradientBase_t *gb, unsigned int n)
 
int GradientBase_setId (GradientBase_t *gb, const char *id)
 
int GradientBase_setName (GradientBase_t *gb, const char *name)
 
int GradientBase_setSpreadMethod (GradientBase_t *gb, GradientSpreadMethod_t spreadMethod)
 
int GradientBase_setSpreadMethodAsString (GradientBase_t *gb, const char *spreadMethod)
 
int GradientBase_unsetId (GradientBase_t *gb)
 
int GradientBase_unsetName (GradientBase_t *gb)
 
int GradientBase_unsetSpreadMethod (GradientBase_t *gb)
 
GradientBase::SPREADMETHOD SpreadMethod_fromString (const char *name)
 
const char * SpreadMethod_toString (GradientBase::SPREADMETHOD method)
 

Variables

const char * SPREADMETHOD_STRINGS []
 

Detailed Description

abstract base class for gradient objects

Author
Ralph Gauges
Frank T. Bergmann

Function Documentation

int GradientBase_addGradientStop ( GradientBase_t gb,
const GradientStop_t gs 
)
GradientBase_t* GradientBase_clone ( const GradientBase_t gb)
GradientStop_t* GradientBase_createGradientStop ( GradientBase_t gb)
GradientBase_t* GradientBase_createLinearGradient ( unsigned int  level,
unsigned int  version,
unsigned int  pkgVersion 
)
GradientBase_t* GradientBase_createRadialGradient ( unsigned int  level,
unsigned int  version,
unsigned int  pkgVersion 
)
void GradientBase_free ( GradientBase_t gb)
GradientStop_t* GradientBase_getGradientStop ( GradientBase_t gb,
unsigned int  n 
)
char* GradientBase_getId ( const GradientBase_t gb)
ListOf_t* GradientBase_getListOfGradientStops ( GradientBase_t gb)
char* GradientBase_getName ( const GradientBase_t gb)
unsigned int GradientBase_getNumGradientStops ( GradientBase_t gb)
GradientSpreadMethod_t GradientBase_getSpreadMethod ( const GradientBase_t gb)
char* GradientBase_getSpreadMethodAsString ( const GradientBase_t gb)
int GradientBase_hasRequiredAttributes ( const GradientBase_t gb)
int GradientBase_isLinearGradient ( const GradientBase_t gb)
int GradientBase_isRadialGradient ( const GradientBase_t gb)
int GradientBase_isSetId ( const GradientBase_t gb)
int GradientBase_isSetName ( const GradientBase_t gb)
int GradientBase_isSetSpreadMethod ( const GradientBase_t gb)
GradientStop_t* GradientBase_removeGradientStop ( GradientBase_t gb,
unsigned int  n 
)
int GradientBase_setId ( GradientBase_t gb,
const char *  id 
)
int GradientBase_setName ( GradientBase_t gb,
const char *  name 
)
int GradientBase_setSpreadMethod ( GradientBase_t gb,
GradientSpreadMethod_t  spreadMethod 
)
int GradientBase_setSpreadMethodAsString ( GradientBase_t gb,
const char *  spreadMethod 
)
int GradientBase_unsetId ( GradientBase_t gb)
int GradientBase_unsetName ( GradientBase_t gb)
int GradientBase_unsetSpreadMethod ( GradientBase_t gb)
GradientBase::SPREADMETHOD SpreadMethod_fromString ( const char *  name)
const char* SpreadMethod_toString ( GradientBase::SPREADMETHOD  method)

Variable Documentation

const char* SPREADMETHOD_STRINGS[]
Initial value:
=
{
"pad",
"reflect",
"repeat",
"invalid"
}