libSBML C API
5.18.0
|
Rectangle_t allows the definition of rectangles with or without rounded edges. The Rectangle_t object derives from the GraphicalPrimitive2D_t class and thus inherits any attributes and elements that are present on this class. In addition, the Rectangle_t object has the required attributes "x", "y", "height", and "width" as well as the optional attributes "z", "rx", "ry" and "ratio".
Public Member Functions | |
Rectangle_t * | Rectangle_clone (const Rectangle_t *r) |
Creates and returns a deep copy of this Rectangle_t object. More... | |
Rectangle_t * | Rectangle_create (unsigned int level, unsigned int version, unsigned int pkgVersion) |
Creates a new Rectangle_t using the given SBML Level, Version and “render” package version. More... | |
void | Rectangle_free (Rectangle_t *r) |
Frees this Rectangle_t object. More... | |
RelAbsVector_t * | Rectangle_getHeight (const Rectangle_t *r) |
Returns the value of the "height" element of this Rectangle_t. More... | |
double | Rectangle_getRatio (const Rectangle_t *r) |
Returns the value of the "ratio" attribute of this Rectangle_t. More... | |
RelAbsVector_t * | Rectangle_getRX (const Rectangle_t *r) |
Returns the value of the "rX" element of this Rectangle_t. More... | |
RelAbsVector_t * | Rectangle_getRY (const Rectangle_t *r) |
Returns the value of the "rY" element of this Rectangle_t. More... | |
RelAbsVector_t * | Rectangle_getWidth (const Rectangle_t *r) |
Returns the value of the "width" element of this Rectangle_t. More... | |
RelAbsVector_t * | Rectangle_getX (const Rectangle_t *r) |
Returns the value of the "x" element of this Rectangle_t. More... | |
RelAbsVector_t * | Rectangle_getY (const Rectangle_t *r) |
Returns the value of the "y" element of this Rectangle_t. More... | |
RelAbsVector_t * | Rectangle_getZ (const Rectangle_t *r) |
Returns the value of the "z" element of this Rectangle_t. More... | |
int | Rectangle_hasRequiredAttributes (const Rectangle_t *r) |
Predicate returning 1 (true) if all the required attributes for this Rectangle_t object have been set. More... | |
int | Rectangle_isSetHeight (const Rectangle_t *r) |
Predicate returning 1 (true) if this Rectangle_t's "height" element is set. More... | |
int | Rectangle_isSetRatio (const Rectangle_t *r) |
Predicate returning 1 (true) if this Rectangle_t's "ratio" attribute is set. More... | |
int | Rectangle_isSetRX (const Rectangle_t *r) |
Predicate returning 1 (true) if this Rectangle_t's "rX" element is set. More... | |
int | Rectangle_isSetRY (const Rectangle_t *r) |
Predicate returning 1 (true) if this Rectangle_t's "rY" element is set. More... | |
int | Rectangle_isSetWidth (const Rectangle_t *r) |
Predicate returning 1 (true) if this Rectangle_t's "width" element is set. More... | |
int | Rectangle_isSetX (const Rectangle_t *r) |
Predicate returning 1 (true) if this Rectangle_t's "x" element is set. More... | |
int | Rectangle_isSetY (const Rectangle_t *r) |
Predicate returning 1 (true) if this Rectangle_t's "y" element is set. More... | |
int | Rectangle_isSetZ (const Rectangle_t *r) |
Predicate returning 1 (true) if this Rectangle_t's "z" element is set. More... | |
int | Rectangle_setHeight (Rectangle_t *r, const RelAbsVector_t *height) |
Sets the value of the "height" element of this Rectangle_t. More... | |
int | Rectangle_setRatio (Rectangle_t *r, double ratio) |
Sets the value of the "ratio" attribute of this Rectangle_t. More... | |
int | Rectangle_setRX (Rectangle_t *r, const RelAbsVector_t *rX) |
Sets the value of the "rX" element of this Rectangle_t. More... | |
int | Rectangle_setRY (Rectangle_t *r, const RelAbsVector_t *rY) |
Sets the value of the "rY" element of this Rectangle_t. More... | |
int | Rectangle_setWidth (Rectangle_t *r, const RelAbsVector_t *width) |
Sets the value of the "width" element of this Rectangle_t. More... | |
int | Rectangle_setX (Rectangle_t *r, const RelAbsVector_t *x) |
Sets the value of the "x" element of this Rectangle_t. More... | |
int | Rectangle_setY (Rectangle_t *r, const RelAbsVector_t *y) |
Sets the value of the "y" element of this Rectangle_t. More... | |
int | Rectangle_setZ (Rectangle_t *r, const RelAbsVector_t *z) |
Sets the value of the "z" element of this Rectangle_t. More... | |
int | Rectangle_unsetHeight (Rectangle_t *r) |
Unsets the value of the "height" element of this Rectangle_t. More... | |
int | Rectangle_unsetRatio (Rectangle_t *r) |
Unsets the value of the "ratio" attribute of this Rectangle_t. More... | |
int | Rectangle_unsetRX (Rectangle_t *r) |
Unsets the value of the "rX" element of this Rectangle_t. More... | |
int | Rectangle_unsetRY (Rectangle_t *r) |
Unsets the value of the "rY" element of this Rectangle_t. More... | |
int | Rectangle_unsetWidth (Rectangle_t *r) |
Unsets the value of the "width" element of this Rectangle_t. More... | |
int | Rectangle_unsetX (Rectangle_t *r) |
Unsets the value of the "x" element of this Rectangle_t. More... | |
int | Rectangle_unsetY (Rectangle_t *r) |
Unsets the value of the "y" element of this Rectangle_t. More... | |
int | Rectangle_unsetZ (Rectangle_t *r) |
Unsets the value of the "z" element of this Rectangle_t. More... | |
Rectangle_t * Rectangle_clone | ( | const Rectangle_t * | r | ) |
Creates and returns a deep copy of this Rectangle_t object.
r | the Rectangle_t structure. |
Rectangle_t * Rectangle_create | ( | unsigned int | level, |
unsigned int | version, | ||
unsigned int | pkgVersion | ||
) |
Creates a new Rectangle_t using the given SBML Level, Version and “render” package version.
level | an unsigned int, the SBML Level to assign to this Rectangle_t. |
version | an unsigned int, the SBML Version to assign to this Rectangle_t. |
pkgVersion | an unsigned int, the SBML Render Version to assign to this Rectangle_t. |
void Rectangle_free | ( | Rectangle_t * | r | ) |
Frees this Rectangle_t object.
r | the Rectangle_t structure. |
RelAbsVector_t * Rectangle_getHeight | ( | const Rectangle_t * | r | ) |
Returns the value of the "height" element of this Rectangle_t.
r | the Rectangle_t structure whose height is sought. |
double Rectangle_getRatio | ( | const Rectangle_t * | r | ) |
Returns the value of the "ratio" attribute of this Rectangle_t.
r | the Rectangle_t structure whose ratio is sought. |
RelAbsVector_t * Rectangle_getRX | ( | const Rectangle_t * | r | ) |
Returns the value of the "rX" element of this Rectangle_t.
r | the Rectangle_t structure whose rX is sought. |
RelAbsVector_t * Rectangle_getRY | ( | const Rectangle_t * | r | ) |
Returns the value of the "rY" element of this Rectangle_t.
r | the Rectangle_t structure whose rY is sought. |
RelAbsVector_t * Rectangle_getWidth | ( | const Rectangle_t * | r | ) |
Returns the value of the "width" element of this Rectangle_t.
r | the Rectangle_t structure whose width is sought. |
RelAbsVector_t * Rectangle_getX | ( | const Rectangle_t * | r | ) |
Returns the value of the "x" element of this Rectangle_t.
r | the Rectangle_t structure whose x is sought. |
RelAbsVector_t * Rectangle_getY | ( | const Rectangle_t * | r | ) |
Returns the value of the "y" element of this Rectangle_t.
r | the Rectangle_t structure whose y is sought. |
RelAbsVector_t * Rectangle_getZ | ( | const Rectangle_t * | r | ) |
Returns the value of the "z" element of this Rectangle_t.
r | the Rectangle_t structure whose z is sought. |
int Rectangle_hasRequiredAttributes | ( | const Rectangle_t * | r | ) |
Predicate returning 1
(true) if all the required attributes for this Rectangle_t object have been set.
r | the Rectangle_t structure. |
1
(true) to indicate that all the required attributes of this Rectangle_t have been set, otherwise 0
(false) is returned. int Rectangle_isSetHeight | ( | const Rectangle_t * | r | ) |
Predicate returning 1
(true) if this Rectangle_t's "height" element is set.
r | the Rectangle_t structure. |
1
(true) if this Rectangle_t's "height" element has been set, otherwise 0
(false) is returned. int Rectangle_isSetRatio | ( | const Rectangle_t * | r | ) |
Predicate returning 1
(true) if this Rectangle_t's "ratio" attribute is set.
r | the Rectangle_t structure. |
1
(true) if this Rectangle_t's "ratio" attribute has been set, otherwise 0
(false) is returned. int Rectangle_isSetRX | ( | const Rectangle_t * | r | ) |
Predicate returning 1
(true) if this Rectangle_t's "rX" element is set.
r | the Rectangle_t structure. |
1
(true) if this Rectangle_t's "rX" element has been set, otherwise 0
(false) is returned. int Rectangle_isSetRY | ( | const Rectangle_t * | r | ) |
Predicate returning 1
(true) if this Rectangle_t's "rY" element is set.
r | the Rectangle_t structure. |
1
(true) if this Rectangle_t's "rY" element has been set, otherwise 0
(false) is returned. int Rectangle_isSetWidth | ( | const Rectangle_t * | r | ) |
Predicate returning 1
(true) if this Rectangle_t's "width" element is set.
r | the Rectangle_t structure. |
1
(true) if this Rectangle_t's "width" element has been set, otherwise 0
(false) is returned. int Rectangle_isSetX | ( | const Rectangle_t * | r | ) |
Predicate returning 1
(true) if this Rectangle_t's "x" element is set.
r | the Rectangle_t structure. |
1
(true) if this Rectangle_t's "x" element has been set, otherwise 0
(false) is returned. int Rectangle_isSetY | ( | const Rectangle_t * | r | ) |
Predicate returning 1
(true) if this Rectangle_t's "y" element is set.
r | the Rectangle_t structure. |
1
(true) if this Rectangle_t's "y" element has been set, otherwise 0
(false) is returned. int Rectangle_isSetZ | ( | const Rectangle_t * | r | ) |
Predicate returning 1
(true) if this Rectangle_t's "z" element is set.
r | the Rectangle_t structure. |
1
(true) if this Rectangle_t's "z" element has been set, otherwise 0
(false) is returned. int Rectangle_setHeight | ( | Rectangle_t * | r, |
const RelAbsVector_t * | height | ||
) |
Sets the value of the "height" element of this Rectangle_t.
r | the Rectangle_t structure. |
height | RelAbsVector_t value of the "height" element to be set. |
int Rectangle_setRatio | ( | Rectangle_t * | r, |
double | ratio | ||
) |
Sets the value of the "ratio" attribute of this Rectangle_t.
r | the Rectangle_t structure. |
ratio | double value of the "ratio" attribute to be set. |
int Rectangle_setRX | ( | Rectangle_t * | r, |
const RelAbsVector_t * | rX | ||
) |
Sets the value of the "rX" element of this Rectangle_t.
r | the Rectangle_t structure. |
rX | RelAbsVector_t value of the "rX" element to be set. |
int Rectangle_setRY | ( | Rectangle_t * | r, |
const RelAbsVector_t * | rY | ||
) |
Sets the value of the "rY" element of this Rectangle_t.
r | the Rectangle_t structure. |
rY | RelAbsVector_t value of the "rY" element to be set. |
int Rectangle_setWidth | ( | Rectangle_t * | r, |
const RelAbsVector_t * | width | ||
) |
Sets the value of the "width" element of this Rectangle_t.
r | the Rectangle_t structure. |
width | RelAbsVector_t value of the "width" element to be set. |
int Rectangle_setX | ( | Rectangle_t * | r, |
const RelAbsVector_t * | x | ||
) |
Sets the value of the "x" element of this Rectangle_t.
r | the Rectangle_t structure. |
x | RelAbsVector_t value of the "x" element to be set. |
int Rectangle_setY | ( | Rectangle_t * | r, |
const RelAbsVector_t * | y | ||
) |
Sets the value of the "y" element of this Rectangle_t.
r | the Rectangle_t structure. |
y | RelAbsVector_t value of the "y" element to be set. |
int Rectangle_setZ | ( | Rectangle_t * | r, |
const RelAbsVector_t * | z | ||
) |
Sets the value of the "z" element of this Rectangle_t.
r | the Rectangle_t structure. |
z | RelAbsVector_t value of the "z" element to be set. |
int Rectangle_unsetHeight | ( | Rectangle_t * | r | ) |
Unsets the value of the "height" element of this Rectangle_t.
r | the Rectangle_t structure. |
int Rectangle_unsetRatio | ( | Rectangle_t * | r | ) |
Unsets the value of the "ratio" attribute of this Rectangle_t.
r | the Rectangle_t structure. |
int Rectangle_unsetRX | ( | Rectangle_t * | r | ) |
Unsets the value of the "rX" element of this Rectangle_t.
r | the Rectangle_t structure. |
int Rectangle_unsetRY | ( | Rectangle_t * | r | ) |
Unsets the value of the "rY" element of this Rectangle_t.
r | the Rectangle_t structure. |
int Rectangle_unsetWidth | ( | Rectangle_t * | r | ) |
Unsets the value of the "width" element of this Rectangle_t.
r | the Rectangle_t structure. |
int Rectangle_unsetX | ( | Rectangle_t * | r | ) |
Unsets the value of the "x" element of this Rectangle_t.
r | the Rectangle_t structure. |
int Rectangle_unsetY | ( | Rectangle_t * | r | ) |
Unsets the value of the "y" element of this Rectangle_t.
r | the Rectangle_t structure. |
int Rectangle_unsetZ | ( | Rectangle_t * | r | ) |
Unsets the value of the "z" element of this Rectangle_t.
r | the Rectangle_t structure. |