#include "turtlegraphic.h"
Include dependency graph for turtlegraphic.c:

Go to the source code of this file.
| Defines | |
| #define | CLS_TURTLEGRAPHIC "at/fhv/sgr/graphiclib/TurtleGraphic" | 
| Defines the full name of the TurtleGraphic-Class. | |
| Functions | |
| void | clearTurtleScreen (TurtleGraphic *tg) | 
| Clears the Screen. | |
| void | createTurtleGraphic_ (TurtleGraphic *tg, Frame *frame) | 
| Creates the TurtleGraphic by getting the Java TurtleGraphic-Class, the method ids and createing a new Java TurtleGraphic-Object. | |
| void | createTurtleGraphicC (TurtleGraphic_ *tg, Frame *frame) | 
| Function is called when working with C and calling the function createTurtleGraphic. | |
| void | createTurtleGraphicCPP (TurtleGraphicCPP_ *tg, Frame *frame) | 
| Function is called when working with C++ and calling the function createTurtleGraphic. | |
| void | deleteTurtleGraphic_ (TurtleGraphic *tg) | 
| Deletes the TurtleGraphic by deleting the global references. | |
| void | deleteTurtleGraphicC (TurtleGraphic_ *tg) | 
| Function is called when working with C and calling the function deleteTurtleGraphic. | |
| void | deleteTurtleGraphicCPP (TurtleGraphicCPP_ *tg) | 
| Function is called when working with C++ and calling the function deleteTurtleGraphic. | |
| jfloat | getTurtleX (TurtleGraphic *tg) | 
| Gets X-Pos of the "turtle". | |
| jfloat | getTurtleY (TurtleGraphic *tg) | 
| Get Y-Pos of the "turtle". | |
| void | initTurtleGraphic_ (TurtleGraphic_ *tg) | 
| Initializes the TurtleGraphic_ structure by setting the function pointers. | |
| void | moveTurtleTo (TurtleGraphic *tg, jfloat x, jfloat y) | 
| Moves the "turtle" to a position. | |
| void | printTurtleText (TurtleGraphic *tg, const char *text) | 
| Prints the Text on Screen at the current position of the "turtle". | |
| void | setTurtleAngle (TurtleGraphic *tg, jfloat angle) | 
| Sets the angle of the "turtle" moves to. | |
| void | setTurtleColor (TurtleGraphic *tg, Color c) | 
| Sets the color with which the "turtle" draws. | |
| void | setTurtleDraw (TurtleGraphic *tg, jboolean draw) | 
| Sets if the "turtle" draws or not. | |
| void | turtlebackward (TurtleGraphic *tg, jfloat l) | 
| Moves the "turtle" backward. | |
| void | turtleforward (TurtleGraphic *tg, jfloat l) | 
| Moves the "turtle" forward. | |
| void | turtleleft (TurtleGraphic *tg, jfloat angle) | 
| Turns the "turtle" left. | |
| void | turtleright (TurtleGraphic *tg, jfloat angle) | 
| Turns the "turtle" right. | |
The TurtleGraphic enables you draw on a Frame like you could to it with the LogoWriter. You will not see a turtle, but you can move forward and backward, change your movement angle, write on a Frame, etc.
Definition in file turtlegraphic.c.
| 
 | 
| Defines the full name of the TurtleGraphic-Class. 
 Definition at line 16 of file turtlegraphic.c. | 
| 
 | 
| Clears the Screen. 
 
 Definition at line 164 of file turtlegraphic.c. | 
| 
 | ||||||||||||
| Creates the TurtleGraphic by getting the Java TurtleGraphic-Class, the method ids and createing a new Java TurtleGraphic-Object. 
 
 Definition at line 195 of file turtlegraphic.c. | 
| 
 | ||||||||||||
| Function is called when working with C and calling the function createTurtleGraphic. It initializes the TurtleGraphic_ structure. 
 
 Definition at line 237 of file turtlegraphic.c. | 
| 
 | ||||||||||||
| Function is called when working with C++ and calling the function createTurtleGraphic. It initializes the TurtleGraphicCPP_ structure. 
 
 Definition at line 224 of file turtlegraphic.c. | 
| 
 | 
| Deletes the TurtleGraphic by deleting the global references. 
 
 Definition at line 247 of file turtlegraphic.c. | 
| 
 | 
| Function is called when working with C and calling the function deleteTurtleGraphic. 
 
 Definition at line 267 of file turtlegraphic.c. | 
| 
 | 
| Function is called when working with C++ and calling the function deleteTurtleGraphic. 
 
 Definition at line 257 of file turtlegraphic.c. | 
| 
 | 
| Gets X-Pos of the "turtle". 
 
 
 
 Definition at line 132 of file turtlegraphic.c. | 
| 
 | 
| Get Y-Pos of the "turtle". 
 
 
 
 Definition at line 145 of file turtlegraphic.c. | 
| 
 | 
| Initializes the TurtleGraphic_ structure by setting the function pointers. 
 
 Definition at line 173 of file turtlegraphic.c. | 
| 
 | ||||||||||||||||
| Moves the "turtle" to a position. 
 
 
 Definition at line 109 of file turtlegraphic.c. | 
| 
 | ||||||||||||
| Prints the Text on Screen at the current position of the "turtle". 
 
 Definition at line 155 of file turtlegraphic.c. | 
| 
 | ||||||||||||
| Sets the angle of the "turtle" moves to. 
 
 Definition at line 83 of file turtlegraphic.c. | 
| 
 | ||||||||||||
| Sets the color with which the "turtle" draws. 
 
 Definition at line 93 of file turtlegraphic.c. | 
| 
 | ||||||||||||
| Sets if the "turtle" draws or not. 
 
 Definition at line 119 of file turtlegraphic.c. | 
| 
 | ||||||||||||
| Moves the "turtle" backward. 
 
 Definition at line 70 of file turtlegraphic.c. | 
| 
 | ||||||||||||
| Moves the "turtle" forward. 
 
 Definition at line 57 of file turtlegraphic.c. | 
| 
 | ||||||||||||
| Turns the "turtle" left. 
 
 Definition at line 44 of file turtlegraphic.c. | 
| 
 | ||||||||||||
| Turns the "turtle" right. 
 
 Definition at line 31 of file turtlegraphic.c. | 
 1.4.4
 1.4.4