2004-02-04 02:35:57 +00:00
|
|
|
#ifndef __ruamoko_gui_View_h
|
|
|
|
#define __ruamoko_gui_View_h
|
2003-01-08 15:56:11 +00:00
|
|
|
|
|
|
|
#include "Object.h"
|
2010-11-17 06:50:07 +00:00
|
|
|
#include "gui/Rect.h"
|
2003-01-08 15:56:11 +00:00
|
|
|
|
|
|
|
@interface View: Object
|
|
|
|
{
|
|
|
|
@public
|
|
|
|
integer xpos, ypos;
|
|
|
|
integer xlen, ylen;
|
|
|
|
integer xabs, yabs;
|
2011-02-14 13:13:55 +00:00
|
|
|
View *parent;
|
2004-11-18 05:08:00 +00:00
|
|
|
integer flags;
|
2003-01-08 15:56:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (id) initWithComponents: (integer)x : (integer)y : (integer)w : (integer)h;
|
2004-02-03 08:31:26 +00:00
|
|
|
- (id) initWithOrigin: (Point)anOrigin size: (Size)aSize;
|
|
|
|
- (id) initWithBounds: (Rect)aRect;
|
2004-11-18 05:08:00 +00:00
|
|
|
- (id) canFocus: (integer)cf;
|
|
|
|
- (integer) canFocus;
|
2004-02-04 02:35:57 +00:00
|
|
|
- (void) setBasePos: (integer)x y: (integer)y;
|
2011-02-14 13:13:55 +00:00
|
|
|
- (void) setBasePosFromView: (View*)view;
|
2003-01-08 15:56:11 +00:00
|
|
|
- (void) draw;
|
2004-11-18 05:08:00 +00:00
|
|
|
|
|
|
|
- (integer) keyEvent:(integer)key unicode:(integer)unicode down:(integer)down;
|
2003-01-08 15:56:11 +00:00
|
|
|
@end
|
|
|
|
|
2004-02-04 02:35:57 +00:00
|
|
|
#endif //__ruamoko_gui_View_h
|