blob: a7dc60b0ee6c89e016605aada5b4d73f3d435c84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef POINT_H
#define POINT_H
#include "oo.h"
#define TYPE Point
DEFINE_OBJECT(TYPE);
// Constructor
CONSTRUCTOR(TYPE);
// Methods
void METHOD(TYPE, init, float x, float y);
int METHOD(TYPE, toString, char* buffer);
// Properties (getters & setters)
GETTER(TYPE, float, x);
SETTER(TYPE, float, x);
GETTER(TYPE, float, y);
SETTER(TYPE, float, y);
#undef TYPE
#endif
|