quakeforge/ruamoko/qwaq/ui/button.h
Bill Currie 6ff5b5c101 [qwaq] Clean up the qwaq directory
Things were getting rather cluttered with everything being qwaq-* and
all in one directory. Now most have lost the qwaq- prefix and have been
moved into subdirectories (non-recursive make).
2020-03-30 02:34:08 +09:00

37 lines
801 B
Objective-C

#ifndef __qwaq_ui_button_h
#define __qwaq_ui_button_h
#include "ui/draw.h"
#include "ui/view.h"
@class ListenerGroup;
@interface Button : View
{
DrawBuffer *icon[2];
int pressed;
int click;
Point dragBase;
Point dragPos;
ListenerGroup *onPress;
ListenerGroup *onRelease;
ListenerGroup *onClick;
ListenerGroup *onDrag;
ListenerGroup *onAuto;
ListenerGroup *onHover;
}
-initWithPos: (Point) pos releasedIcon: (DrawBuffer *) released
pressedIcon: (DrawBuffer *) pressed;
-initWithRect: (Rect) rect; // invisible button
-(ListenerGroup *) onPress;
-(ListenerGroup *) onRelease;
-(ListenerGroup *) onClick;
-(ListenerGroup *) onDrag;
-(ListenerGroup *) onAuto;
-(ListenerGroup *) onHover;
- (int) click;
- (Point) delta;
@end
#endif//__qwaq_ui_button_h