foowindow.c 1/14
[top][prev][next]
#include "foowindow.h"
void FooWindow_redraw ( FooWindow *this ){
}
foowindow.h 2/14
[top][prev][next]
#ifndef __FOOWINDOW_H__
#define __FOOWINDOW_H__
#define FOOWINDOW(OBJ) ((FooWindow*)OBJ)
#ifndef String
#define String char*
#endif
#include "window.h"
typedef struct _FooWindow FooWindow;
struct _FooWindow {
Window super;
/** Attributes **/
/** Associations **/
/** Operations **/
};
/** Operations **/
/*public*/
void FooWindow_redraw ( FooWindow *this );
#endif
foowindowmanager.c 3/14
[top][prev][next]
#include "foowindowmanager.h"
foowindowmanager.h 4/14
[top][prev][next]
#ifndef __FOOWINDOWMANAGER_H__
#define __FOOWINDOWMANAGER_H__
#define FOOWINDOWMANAGER(OBJ) ((FooWindowManager*)OBJ)
#ifndef String
#define String char*
#endif
#include "windowmanager.h"
typedef struct _FooWindowManager FooWindowManager;
struct _FooWindowManager {
WindowManager super;
/** Attributes **/
/** Associations **/
/** Operations **/
};
/** Operations **/
#endif
point.c 5/14
[top][prev][next]
#include "point.h"
Point_Point ( Point *this, float x, float y ){
}
float Point_getX ( Point *this ){
}
float Point_getY ( Point *this ){
}
point.h 6/14
[top][prev][next]
#ifndef __POINT_H__
#define __POINT_H__
#define POINT(OBJ) ((Point*)OBJ)
#ifndef String
#define String char*
#endif
typedef struct _Point Point;
struct _Point {
/** Attributes **/
/*private*/
float x;
float y;
/** Associations **/
/** Operations **/
};
/** Operations **/
/*public*/
Point_Point ( Point *this, float x, float y );
float Point_getX ( Point *this );
float Point_getY ( Point *this );
#endif
rectangle.c 7/14
[top][prev][next]
#include "rectangle.h"
float Rectangle_getArea ( Rectangle *this ){
}
rectangle.h 8/14
[top][prev][next]
#ifndef __RECTANGLE_H__
#define __RECTANGLE_H__
#define RECTANGLE(OBJ) ((Rectangle*)OBJ)
#ifndef String
#define String char*
#endif
#include "point.h"
#include "shape.h"
typedef struct _Rectangle Rectangle;
struct _Rectangle {
Shape super;
/** Attributes **/
/** Associations **/
Point points;
/** Operations **/
};
/** Operations **/
/*public*/
float Rectangle_getArea ( Rectangle *this );
#endif
shape.c 9/14
[top][prev][next]
#include "shape.h"
float Shape_getArea ( Shape *this ){
this->getArea(this);
}
shape.h 10/14
[top][prev][next]
#ifndef __SHAPE_H__
#define __SHAPE_H__
#define SHAPE(OBJ) ((Shape*)OBJ)
#ifndef String
#define String char*
#endif
typedef struct _Shape Shape;
struct _Shape {
/** Attributes **/
/** Associations **/
/** Operations **/
/*public*/
float (*getArea) ( Shape *this );
};
/** Operations **/
/*public*/
float Shape_getArea ( Shape *this );
#endif
window.c 11/14
[top][prev][next]
#include "window.h"
void Window_redraw ( Window *this ){
this->redraw(this);
}
window.h 12/14
[top][prev][next]
#ifndef __WINDOW_H__
#define __WINDOW_H__
#define WINDOW(OBJ) ((Window*)OBJ)
#ifndef String
#define String char*
#endif
#include "shape.h"
typedef struct _Window Window;
struct _Window {
/** Attributes **/
/*private*/
Shape visualrep;
/** Associations **/
/** Operations **/
/*public*/
void (*redraw) ( Window *this );
};
/** Operations **/
/*public*/
void Window_redraw ( Window *this );
#endif
windowmanager.c 13/14
[top][prev][next]
#include "windowmanager.h"
windowmanager.h 14/14
[top][prev][next]
#ifndef __WINDOWMANAGER_H__
#define __WINDOWMANAGER_H__
#define WINDOWMANAGER(OBJ) ((WindowManager*)OBJ)
#ifndef String
#define String char*
#endif
#include "window.h"
typedef struct _WindowManager WindowManager;
struct _WindowManager {
/** Attributes **/
/** Associations **/
Window windows;
/** Operations **/
};
/** Operations **/
#endif
Generated by GNU enscript 1.6.1.