shape.h File Reference

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

#include "../jnilib.h"
#include "color.h"

Include dependency graph for shape.h:

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

Go to the source code of this file.

Data Structures

struct  Shape_
 A structure for C, which describes the Shape. More...
struct  ShapeCPP_
 A structure for C++, which describes the Shape. More...
struct  ShapeData
 This structure holds the data needed for the Shape for C and C++. More...

Defines

#define CLS_SHAPE   "at/fhv/sgr/graphiclib/draw/DrawableGeneralPath"
 Defines the full name of the DrawableGeneralPath-Class.
#define createShape   createShapeC
 Defines which function to call when createShape is called.
#define deleteShape   deleteShapeC
 Defines which function to call when deleteShape is called.

Typedefs

typedef Shape_ Shape
 Defines which structure is used as Shape.
typedef Shape_ Shape_
 A structure for C, which describes the Shape.
typedef ShapeCPP_ ShapeCPP_
 A structure for C++, which describes the Shape.
typedef ShapeData ShapeData
 This structure holds the data needed for the Shape for C and C++.

Functions

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


Detailed Description

Descripes the Shape structures, functions and constants.

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.

Author:
Stefan Gruber
Date:
24.01.2005

Definition in file shape.h.


Define Documentation

#define CLS_SHAPE   "at/fhv/sgr/graphiclib/draw/DrawableGeneralPath"
 

Defines the full name of the DrawableGeneralPath-Class.

Definition at line 25 of file shape.h.

#define createShape   createShapeC
 

Defines which function to call when createShape is called.

Definition at line 37 of file shape.h.

#define deleteShape   deleteShapeC
 

Defines which function to call when deleteShape is called.

Definition at line 38 of file shape.h.


Typedef Documentation

typedef struct Shape_ Shape
 

Defines which structure is used as Shape.

Definition at line 36 of file shape.h.

typedef struct Shape_ Shape_
 

A structure for C, which describes the Shape.

typedef struct ShapeCPP_ ShapeCPP_
 

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

typedef struct ShapeData ShapeData
 

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


Function Documentation

void createShapeC Shape_ shape  ) 
 

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

It initializes the Shape_ structure.

Parameters:
shape - A pointer to a Shape_ structure.

Definition at line 203 of file shape.c.

void createShapeCPP ShapeCPP_ shape  ) 
 

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

It initializes the ShapeCPP_ structure.

Parameters:
shape - A pointer to a ShapeCPP_ structure.

Definition at line 191 of file shape.c.

void deleteShapeC Shape_ shape  ) 
 

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

Parameters:
shape - A pointer to a Shape_ structure.

Definition at line 233 of file shape.c.

void deleteShapeCPP ShapeCPP_ shape  ) 
 

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

Parameters:
shape - A pointer to a ShapeCPP_ structure.

Definition at line 223 of file shape.c.


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