diff options
author | Jonas Kohl <gitlab@jonaskohl.de> | 2024-08-29 17:00:11 +0200 |
---|---|---|
committer | Jonas Kohl <gitlab@jonaskohl.de> | 2024-08-29 17:00:11 +0200 |
commit | 84ad096896e9948c722a957d07ed6868e252a9f7 (patch) | |
tree | b8ad1afadd89f1dc7599436cfb0f7f5fb0c177b6 /includes/rect.h |
Initial commit
Diffstat (limited to 'includes/rect.h')
-rw-r--r-- | includes/rect.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/includes/rect.h b/includes/rect.h new file mode 100644 index 0000000..fca9602 --- /dev/null +++ b/includes/rect.h @@ -0,0 +1,32 @@ +#ifndef RECT_H +#define RECT_H + +#include "oo.h" + +#define TYPE Rect + +DEFINE_OBJECT(TYPE); + +CONSTRUCTOR(TYPE); + +void METHOD_ARG(TYPE, init, int l, int t, int w, int h); +int METHOD_ARG(TYPE, toString, char* buffer); + +GETTER(TYPE, int, left); +SETTER(TYPE, int, left); + +GETTER(TYPE, int, top); +SETTER(TYPE, int, top); + +GETTER(TYPE, int, width); +SETTER(TYPE, int, width); + +GETTER(TYPE, int, height); +SETTER(TYPE, int, height); + +GETTER(TYPE, int, right); +GETTER(TYPE, int, bottom); + +#undef TYPE + +#endif |