diff --git a/ruamoko/include/View.h b/ruamoko/include/View.h new file mode 100644 index 000000000..298909e49 --- /dev/null +++ b/ruamoko/include/View.h @@ -0,0 +1,21 @@ +#ifndef __ruamoko_View_h +#define __ruamoko_View_h + +#include "Object.h" +#include "Point.h" +#include "Size.h" + +@interface View: Object +{ +@public + integer xpos, ypos; + integer xlen, ylen; + integer xabs, yabs; + View parent; +} + +- (id) initWithComponents: (integer)x : (integer)y : (integer)w : (integer)h; +- (void) draw; +@end + +#endif //__ruamoko_Rect_h diff --git a/ruamoko/lib/View.r b/ruamoko/lib/View.r new file mode 100644 index 000000000..8eabd1180 --- /dev/null +++ b/ruamoko/lib/View.r @@ -0,0 +1,19 @@ +#include "View.h" + +@implementation View + +-(id) initWithComponents: (integer)x : (integer)y : (integer)w : (integer)h +{ + xpos = xabs = x; + ypos = yabs = y; + xlen = w; + ylen = y; + parent = NIL; + return self; +} + +-(void) draw +{ +} + +@end