#include "shape.h"
Include dependency graph for shape.c:
Go to the source code of this file.
Functions | |
void | closeShapePath (Shape *shape) |
Closes the path of the shape. | |
void | createShape_ (Shape *shape) |
Creates the Shape by getting the Java Shape-Class, the method ids and createing a new Java Shape-Object. | |
void | createShapeC (Shape_ *shape) |
Function is called when working with C and calling the function createShape. | |
void | createShapeCPP (ShapeCPP_ *shape) |
Function is called when working with C++ and calling the function createShape. | |
void | curveShapeTo (Shape *shape, jfloat x1, jfloat y1, jfloat x2, jfloat y2, jfloat x3, jfloat y3) |
Adds a curved segment, defined by three new points, to the shape by drawing a Bézier curve that intersects both the current coordinates and the coordinates (x3, y3), using the specified points (x1, y1) and (x2, y2) as Bézier control points. | |
void | deleteShape_ (Shape *shape) |
Deletes the Shape by deleting the global references. | |
void | deleteShapeC (Shape_ *shape) |
Function is called when working with C and calling the function deleteShape. | |
void | deleteShapeCPP (ShapeCPP_ *shape) |
Function is called when working with C++ and calling the function deleteShape. | |
Color | getShapeColor (Shape *shape) |
Gets the color of the shape. | |
void | initShape_ (Shape_ *shape) |
Initializes the Shape_ structure by setting the function pointers. | |
jboolean | isShapeFilled (Shape *shape) |
Gets if the shape is filled out or not. | |
void | lineShapeTo (Shape *shape, jfloat x, jfloat y) |
Draws a line from the current point to the new point. | |
void | moveShapeTo (Shape *shape, jfloat x, jfloat y) |
Moves the current point without drawing anything. | |
void | quadShapeTo (Shape *shape, jfloat x1, jfloat y1, jfloat x2, jfloat y2) |
Adds a curved segment, defined by two new points, to the shape by drawing a Quadratic curve that intersects both the current coordinates and the coordinates (x2, y2), using the specified point (x1, y1) as a quadratic parametric control point. | |
void | setShapeColor (Shape *shape, const Color *c) |
Sets the color of the shape. | |
void | setShapeFilled (Shape *shape, jboolean filled) |
Sets if the shape is filled out or not. |
A Shape enables you to draw your own figures. You can use lines and curves to draw your own figure. You can set the color and the filled state of the figure. If set the filled state to true the figure is filled out, otherwise only the bounds were drawn.
Definition in file shape.c.
|
Closes the path of the shape.
|
|
Creates the Shape by getting the Java Shape-Class, the method ids and createing a new Java Shape-Object.
|
|
Function is called when working with C and calling the function createShape. It initializes the Shape_ structure.
|
|
Function is called when working with C++ and calling the function createShape. It initializes the ShapeCPP_ structure.
|
|
Adds a curved segment, defined by three new points, to the shape by drawing a Bézier curve that intersects both the current coordinates and the coordinates (x3, y3), using the specified points (x1, y1) and (x2, y2) as Bézier control points.
|
|
Deletes the Shape by deleting the global references.
|
|
Function is called when working with C and calling the function deleteShape.
|
|
Function is called when working with C++ and calling the function deleteShape.
|
|
Gets the color of the shape.
|
|
Initializes the Shape_ structure by setting the function pointers.
|
|
Gets if the shape is filled out or not.
|
|
Draws a line from the current point to the new point.
|
|
Moves the current point without drawing anything.
|
|
Adds a curved segment, defined by two new points, to the shape by drawing a Quadratic curve that intersects both the current coordinates and the coordinates (x2, y2), using the specified point (x1, y1) as a quadratic parametric control point.
|
|
Sets the color of the shape.
|
|
Sets if the shape is filled out or not.
|