mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-05 20:50:43 +00:00
ec26083228
the volume settings. doesn't /quite/ work properly yet
39 lines
651 B
R
39 lines
651 B
R
#include "gui/Size.h"
|
|
#include "gui/Point.h"
|
|
#include "gui/Rect.h"
|
|
#include "gui/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;
|
|
}
|
|
|
|
- (id) initWithOrigin: (Point)anOrigin size: (Size)aSize
|
|
{
|
|
return [self initWithComponents:anOrigin.x :anOrigin.y
|
|
:aSize.width :aSize.height];
|
|
}
|
|
|
|
- (id) initWithBounds: (Rect)aRect
|
|
{
|
|
return [self initWithOrigin:aRect.origin size:aRect.size];
|
|
}
|
|
|
|
- (void) setBasePos: (integer) x y: (integer) y
|
|
{
|
|
xabs = xpos + x;
|
|
yabs = ypos + y;
|
|
}
|
|
|
|
-(void) draw
|
|
{
|
|
}
|
|
|
|
@end
|