mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
toss these in before they get lost
This commit is contained in:
parent
34d4483424
commit
b2e1160cfd
2 changed files with 40 additions and 0 deletions
21
ruamoko/include/View.h
Normal file
21
ruamoko/include/View.h
Normal file
|
@ -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
|
19
ruamoko/lib/View.r
Normal file
19
ruamoko/lib/View.r
Normal file
|
@ -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
|
Loading…
Reference in a new issue