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
|
|
|
|
2020-03-03 06:24:41 +00:00
|
|
|
#include <Object.h>
|
|
|
|
#include <gui/Rect.h>
|
2003-01-08 15:56:11 +00:00
|
|
|
|
2011-07-10 08:33:43 +00:00
|
|
|
/** \defgroup gui GUI goo for gooey chewing
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** \addtogroup gui */
|
2020-02-11 06:20:49 +00:00
|
|
|
///@{
|
2011-07-10 08:33:43 +00:00
|
|
|
|
2011-06-14 17:16:15 +00:00
|
|
|
/** The View class.
|
|
|
|
*/
|
2003-01-08 15:56:11 +00:00
|
|
|
@interface View: Object
|
|
|
|
{
|
|
|
|
@public
|
2011-03-25 07:46:32 +00:00
|
|
|
int xpos, ypos;
|
|
|
|
int xlen, ylen;
|
|
|
|
int xabs, yabs;
|
2011-02-14 13:13:55 +00:00
|
|
|
View *parent;
|
2011-03-25 07:46:32 +00:00
|
|
|
int flags;
|
2003-01-08 15:56:11 +00:00
|
|
|
}
|
|
|
|
|
2011-03-25 07:46:32 +00:00
|
|
|
- (id) initWithComponents: (int)x : (int)y : (int)w : (int)h;
|
2004-02-03 08:31:26 +00:00
|
|
|
- (id) initWithOrigin: (Point)anOrigin size: (Size)aSize;
|
|
|
|
- (id) initWithBounds: (Rect)aRect;
|
2011-03-25 07:46:32 +00:00
|
|
|
- (id) canFocus: (int)cf;
|
|
|
|
- (int) canFocus;
|
|
|
|
- (void) setBasePos: (int)x y: (int)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
|
|
|
|
2011-03-25 07:46:32 +00:00
|
|
|
- (int) keyEvent:(int)key unicode:(int)unicode down:(int)down;
|
2003-01-08 15:56:11 +00:00
|
|
|
@end
|
|
|
|
|
2020-02-11 06:20:49 +00:00
|
|
|
///@}
|
2011-07-10 08:33:43 +00:00
|
|
|
|
2004-02-04 02:35:57 +00:00
|
|
|
#endif //__ruamoko_gui_View_h
|