turtlegraphic.h File Reference

Descripes the TurtleGraphic structures, functions and constants. More...

#include "../jnilib.h"
#include "../awt/frame.h"
#include "../graphic/color.h"
#include <stdlib.h>

Include dependency graph for turtlegraphic.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  TurtleGraphic_
 A structure for C, which describes the TurtleGraphic. More...
struct  TurtleGraphicCPP_
 A structure for C++, which describes the TurtleGraphic. More...
struct  TurtleGraphicData
 This structure holds the data needed for the TurtleGraphic for C and C++. More...

Defines

#define createTurtleGraphic   createTurtleGraphicC
 Defines which function to call when createTurtleGraphic is called.
#define deleteTurtleGraphic   deleteTurtleGraphicC
 Defines which function to call when deleteTurtleGraphic is called.

Typedefs

typedef TurtleGraphic_ TurtleGraphic
 Defines which structure is used as TurtleGraphic.
typedef TurtleGraphic_ TurtleGraphic_
 A structure for C, which describes the TurtleGraphic.
typedef TurtleGraphicCPP_ TurtleGraphicCPP_
 A structure for C++, which describes the TurtleGraphic.
typedef TurtleGraphicData TurtleGraphicData
 This structure holds the data needed for the TurtleGraphic for C and C++.

Functions

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 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.


Detailed Description

Descripes the TurtleGraphic structures, functions and constants.

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.

Author:
Stefan Gruber
Date:
19.01.2005

Definition in file turtlegraphic.h.


Define Documentation

#define createTurtleGraphic   createTurtleGraphicC
 

Defines which function to call when createTurtleGraphic is called.

Definition at line 35 of file turtlegraphic.h.

#define deleteTurtleGraphic   deleteTurtleGraphicC
 

Defines which function to call when deleteTurtleGraphic is called.

Definition at line 36 of file turtlegraphic.h.


Typedef Documentation

typedef struct TurtleGraphic_ TurtleGraphic
 

Defines which structure is used as TurtleGraphic.

Definition at line 34 of file turtlegraphic.h.

typedef struct TurtleGraphic_ TurtleGraphic_
 

A structure for C, which describes the TurtleGraphic.

typedef struct TurtleGraphicCPP_ TurtleGraphicCPP_
 

A structure for C++, which describes the TurtleGraphic.

typedef struct TurtleGraphicData TurtleGraphicData
 

This structure holds the data needed for the TurtleGraphic for C and C++.


Function Documentation

void createTurtleGraphicC TurtleGraphic_ tg,
Frame frame
 

Function is called when working with C and calling the function createTurtleGraphic.

It initializes the TurtleGraphic_ structure.

Parameters:
tg - Pointer to the TurtleGraphic_ structure.
frame - Pointer to the frame to draw on.

Definition at line 237 of file turtlegraphic.c.

void createTurtleGraphicCPP TurtleGraphicCPP_ tg,
Frame frame
 

Function is called when working with C++ and calling the function createTurtleGraphic.

It initializes the TurtleGraphicCPP_ structure.

Parameters:
tg - Pointer to the TurtleGraphicCPP_ structure.
frame - Pointer to the frame to draw on.

Definition at line 224 of file turtlegraphic.c.

void deleteTurtleGraphicC TurtleGraphic_ tg  ) 
 

Function is called when working with C and calling the function deleteTurtleGraphic.

Parameters:
tg - Pointer to a TurtleGraphic_ structure.

Definition at line 267 of file turtlegraphic.c.

void deleteTurtleGraphicCPP TurtleGraphicCPP_ tg  ) 
 

Function is called when working with C++ and calling the function deleteTurtleGraphic.

Parameters:
tg - Pointer to a TurtleGraphicCPP_ structure.

Definition at line 257 of file turtlegraphic.c.


Generated on Sat Nov 19 14:11:15 2005 for GrubC by  doxygen 1.4.4