|
libSBML C API
5.18.0
|
The concept of a linear gradient is more or or less taken from SVG. A linear gradient is defined by a vector which determines the direction and the length of the gradient. So for a valid gradient, this vector should have a length different from 0. Otherwise, all restrictions for the GradientBase_t class apply.
The vector for a linear gradient is defined by a start and an endpoint and each point consists of three absolute-relative value pairs.
For examples of LinearGradient_t objects, see the SBML Render package specification and/or the SVG specification.
Public Member Functions | |
| LinearGradient_t * | LinearGradient_clone (const LinearGradient_t *lg) |
| Creates and returns a deep copy of this LinearGradient_t object. More... | |
| LinearGradient_t * | LinearGradient_create (unsigned int level, unsigned int version, unsigned int pkgVersion) |
| Creates a new LinearGradient_t using the given SBML Level, Version and “render” package version. More... | |
| void | LinearGradient_free (LinearGradient_t *lg) |
| Frees this LinearGradient_t object. More... | |
| const RelAbsVector_t * | LinearGradient_getX1 (const LinearGradient_t *lg) |
| Returns the value of the "x1" element of this LinearGradient_t. More... | |
| const RelAbsVector_t * | LinearGradient_getX2 (const LinearGradient_t *lg) |
| Returns the value of the "x2" element of this LinearGradient_t. More... | |
| const RelAbsVector_t * | LinearGradient_getY1 (const LinearGradient_t *lg) |
| Returns the value of the "y1" element of this LinearGradient_t. More... | |
| const RelAbsVector_t * | LinearGradient_getY2 (const LinearGradient_t *lg) |
| Returns the value of the "y2" element of this LinearGradient_t. More... | |
| const RelAbsVector_t * | LinearGradient_getZ1 (const LinearGradient_t *lg) |
| Returns the value of the "z1" element of this LinearGradient_t. More... | |
| const RelAbsVector_t * | LinearGradient_getZ2 (const LinearGradient_t *lg) |
| Returns the value of the "z2" element of this LinearGradient_t. More... | |
| int | LinearGradient_hasRequiredAttributes (const LinearGradient_t *lg) |
Predicate returning 1 (true) if all the required attributes for this LinearGradient_t object have been set. More... | |
| int | LinearGradient_hasRequiredElements (const LinearGradient_t *lg) |
Predicate returning 1 (true) if all the required elements for this LinearGradient_t object have been set. More... | |
| int | LinearGradient_isSetX1 (const LinearGradient_t *lg) |
Predicate returning 1 (true) if this LinearGradient_t's "x1" element is set. More... | |
| int | LinearGradient_isSetX2 (const LinearGradient_t *lg) |
Predicate returning 1 (true) if this LinearGradient_t's "x2" element is set. More... | |
| int | LinearGradient_isSetY1 (const LinearGradient_t *lg) |
Predicate returning 1 (true) if this LinearGradient_t's "y1" element is set. More... | |
| int | LinearGradient_isSetY2 (const LinearGradient_t *lg) |
Predicate returning 1 (true) if this LinearGradient_t's "y2" element is set. More... | |
| int | LinearGradient_isSetZ1 (const LinearGradient_t *lg) |
Predicate returning 1 (true) if this LinearGradient_t's "z1" element is set. More... | |
| int | LinearGradient_isSetZ2 (const LinearGradient_t *lg) |
Predicate returning 1 (true) if this LinearGradient_t's "z2" element is set. More... | |
| int | LinearGradient_setX1 (LinearGradient_t *lg, const RelAbsVector_t *x1) |
| Sets the value of the "x1" element of this LinearGradient_t. More... | |
| int | LinearGradient_setX2 (LinearGradient_t *lg, const RelAbsVector_t *x2) |
| Sets the value of the "x2" element of this LinearGradient_t. More... | |
| int | LinearGradient_setY1 (LinearGradient_t *lg, const RelAbsVector_t *y1) |
| Sets the value of the "y1" element of this LinearGradient_t. More... | |
| int | LinearGradient_setY2 (LinearGradient_t *lg, const RelAbsVector_t *y2) |
| Sets the value of the "y2" element of this LinearGradient_t. More... | |
| int | LinearGradient_setZ1 (LinearGradient_t *lg, const RelAbsVector_t *z1) |
| Sets the value of the "z1" element of this LinearGradient_t. More... | |
| int | LinearGradient_setZ2 (LinearGradient_t *lg, const RelAbsVector_t *z2) |
| Sets the value of the "z2" element of this LinearGradient_t. More... | |
| int | LinearGradient_unsetX1 (LinearGradient_t *lg) |
| Unsets the value of the "x1" element of this LinearGradient_t. More... | |
| int | LinearGradient_unsetX2 (LinearGradient_t *lg) |
| Unsets the value of the "x2" element of this LinearGradient_t. More... | |
| int | LinearGradient_unsetY1 (LinearGradient_t *lg) |
| Unsets the value of the "y1" element of this LinearGradient_t. More... | |
| int | LinearGradient_unsetY2 (LinearGradient_t *lg) |
| Unsets the value of the "y2" element of this LinearGradient_t. More... | |
| int | LinearGradient_unsetZ1 (LinearGradient_t *lg) |
| Unsets the value of the "z1" element of this LinearGradient_t. More... | |
| int | LinearGradient_unsetZ2 (LinearGradient_t *lg) |
| Unsets the value of the "z2" element of this LinearGradient_t. More... | |
| LinearGradient_t * LinearGradient_clone | ( | const LinearGradient_t * | lg | ) |
Creates and returns a deep copy of this LinearGradient_t object.
| lg | the LinearGradient_t structure. |
| LinearGradient_t * LinearGradient_create | ( | unsigned int | level, |
| unsigned int | version, | ||
| unsigned int | pkgVersion | ||
| ) |
Creates a new LinearGradient_t using the given SBML Level, Version and “render” package version.
| level | an unsigned int, the SBML Level to assign to this LinearGradient_t. |
| version | an unsigned int, the SBML Version to assign to this LinearGradient_t. |
| pkgVersion | an unsigned int, the SBML Render Version to assign to this LinearGradient_t. |
| void LinearGradient_free | ( | LinearGradient_t * | lg | ) |
Frees this LinearGradient_t object.
| lg | the LinearGradient_t structure. |
| const RelAbsVector_t * LinearGradient_getX1 | ( | const LinearGradient_t * | lg | ) |
Returns the value of the "x1" element of this LinearGradient_t.
| lg | the LinearGradient_t structure whose x1 is sought. |
| const RelAbsVector_t * LinearGradient_getX2 | ( | const LinearGradient_t * | lg | ) |
Returns the value of the "x2" element of this LinearGradient_t.
| lg | the LinearGradient_t structure whose x2 is sought. |
| const RelAbsVector_t * LinearGradient_getY1 | ( | const LinearGradient_t * | lg | ) |
Returns the value of the "y1" element of this LinearGradient_t.
| lg | the LinearGradient_t structure whose y1 is sought. |
| const RelAbsVector_t * LinearGradient_getY2 | ( | const LinearGradient_t * | lg | ) |
Returns the value of the "y2" element of this LinearGradient_t.
| lg | the LinearGradient_t structure whose y2 is sought. |
| const RelAbsVector_t * LinearGradient_getZ1 | ( | const LinearGradient_t * | lg | ) |
Returns the value of the "z1" element of this LinearGradient_t.
| lg | the LinearGradient_t structure whose z1 is sought. |
| const RelAbsVector_t * LinearGradient_getZ2 | ( | const LinearGradient_t * | lg | ) |
Returns the value of the "z2" element of this LinearGradient_t.
| lg | the LinearGradient_t structure whose z2 is sought. |
| int LinearGradient_hasRequiredAttributes | ( | const LinearGradient_t * | lg | ) |
Predicate returning 1 (true) if all the required attributes for this LinearGradient_t object have been set.
| lg | the LinearGradient_t structure. |
1 (true) to indicate that all the required attributes of this LinearGradient_t have been set, otherwise 0 (false) is returned. | int LinearGradient_hasRequiredElements | ( | const LinearGradient_t * | lg | ) |
Predicate returning 1 (true) if all the required elements for this LinearGradient_t object have been set.
| lg | the LinearGradient_t structure. |
1 (true) to indicate that all the required elements of this LinearGradient_t have been set, otherwise 0 (false) is returned.| int LinearGradient_isSetX1 | ( | const LinearGradient_t * | lg | ) |
Predicate returning 1 (true) if this LinearGradient_t's "x1" element is set.
| lg | the LinearGradient_t structure. |
1 (true) if this LinearGradient_t's "x1" element has been set, otherwise 0 (false) is returned. | int LinearGradient_isSetX2 | ( | const LinearGradient_t * | lg | ) |
Predicate returning 1 (true) if this LinearGradient_t's "x2" element is set.
| lg | the LinearGradient_t structure. |
1 (true) if this LinearGradient_t's "x2" element has been set, otherwise 0 (false) is returned. | int LinearGradient_isSetY1 | ( | const LinearGradient_t * | lg | ) |
Predicate returning 1 (true) if this LinearGradient_t's "y1" element is set.
| lg | the LinearGradient_t structure. |
1 (true) if this LinearGradient_t's "y1" element has been set, otherwise 0 (false) is returned. | int LinearGradient_isSetY2 | ( | const LinearGradient_t * | lg | ) |
Predicate returning 1 (true) if this LinearGradient_t's "y2" element is set.
| lg | the LinearGradient_t structure. |
1 (true) if this LinearGradient_t's "y2" element has been set, otherwise 0 (false) is returned. | int LinearGradient_isSetZ1 | ( | const LinearGradient_t * | lg | ) |
Predicate returning 1 (true) if this LinearGradient_t's "z1" element is set.
| lg | the LinearGradient_t structure. |
1 (true) if this LinearGradient_t's "z1" element has been set, otherwise 0 (false) is returned. | int LinearGradient_isSetZ2 | ( | const LinearGradient_t * | lg | ) |
Predicate returning 1 (true) if this LinearGradient_t's "z2" element is set.
| lg | the LinearGradient_t structure. |
1 (true) if this LinearGradient_t's "z2" element has been set, otherwise 0 (false) is returned. | int LinearGradient_setX1 | ( | LinearGradient_t * | lg, |
| const RelAbsVector_t * | x1 | ||
| ) |
Sets the value of the "x1" element of this LinearGradient_t.
| lg | the LinearGradient_t structure. |
| x1 | RelAbsVector_t value of the "x1" element to be set. |
| int LinearGradient_setX2 | ( | LinearGradient_t * | lg, |
| const RelAbsVector_t * | x2 | ||
| ) |
Sets the value of the "x2" element of this LinearGradient_t.
| lg | the LinearGradient_t structure. |
| x2 | RelAbsVector_t value of the "x2" element to be set. |
| int LinearGradient_setY1 | ( | LinearGradient_t * | lg, |
| const RelAbsVector_t * | y1 | ||
| ) |
Sets the value of the "y1" element of this LinearGradient_t.
| lg | the LinearGradient_t structure. |
| y1 | RelAbsVector_t value of the "y1" element to be set. |
| int LinearGradient_setY2 | ( | LinearGradient_t * | lg, |
| const RelAbsVector_t * | y2 | ||
| ) |
Sets the value of the "y2" element of this LinearGradient_t.
| lg | the LinearGradient_t structure. |
| y2 | RelAbsVector_t value of the "y2" element to be set. |
| int LinearGradient_setZ1 | ( | LinearGradient_t * | lg, |
| const RelAbsVector_t * | z1 | ||
| ) |
Sets the value of the "z1" element of this LinearGradient_t.
| lg | the LinearGradient_t structure. |
| z1 | RelAbsVector_t value of the "z1" element to be set. |
| int LinearGradient_setZ2 | ( | LinearGradient_t * | lg, |
| const RelAbsVector_t * | z2 | ||
| ) |
Sets the value of the "z2" element of this LinearGradient_t.
| lg | the LinearGradient_t structure. |
| z2 | RelAbsVector_t value of the "z2" element to be set. |
| int LinearGradient_unsetX1 | ( | LinearGradient_t * | lg | ) |
Unsets the value of the "x1" element of this LinearGradient_t.
| lg | the LinearGradient_t structure. |
| int LinearGradient_unsetX2 | ( | LinearGradient_t * | lg | ) |
Unsets the value of the "x2" element of this LinearGradient_t.
| lg | the LinearGradient_t structure. |
| int LinearGradient_unsetY1 | ( | LinearGradient_t * | lg | ) |
Unsets the value of the "y1" element of this LinearGradient_t.
| lg | the LinearGradient_t structure. |
| int LinearGradient_unsetY2 | ( | LinearGradient_t * | lg | ) |
Unsets the value of the "y2" element of this LinearGradient_t.
| lg | the LinearGradient_t structure. |
| int LinearGradient_unsetZ1 | ( | LinearGradient_t * | lg | ) |
Unsets the value of the "z1" element of this LinearGradient_t.
| lg | the LinearGradient_t structure. |
| int LinearGradient_unsetZ2 | ( | LinearGradient_t * | lg | ) |
Unsets the value of the "z2" element of this LinearGradient_t.
| lg | the LinearGradient_t structure. |