mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 07:42:18 +00:00
29 lines
597 B
C
29 lines
597 B
C
|
#ifndef __qwaq_button_h
|
||
|
#define __qwaq_button_h
|
||
|
|
||
|
#include "qwaq-draw.h"
|
||
|
#include "qwaq-view.h"
|
||
|
|
||
|
@class ListenerGroup;
|
||
|
|
||
|
@interface Button : View
|
||
|
{
|
||
|
DrawBuffer *icon[2];
|
||
|
int pressed;
|
||
|
ListenerGroup *onPress;
|
||
|
ListenerGroup *onRelease;
|
||
|
ListenerGroup *onClick;
|
||
|
ListenerGroup *onDrag;
|
||
|
ListenerGroup *onAuto;
|
||
|
}
|
||
|
-initWithPos: (Point) pos releasedIcon: (DrawBuffer *) released
|
||
|
pressedIcon: (DrawBuffer *) pressed;
|
||
|
-(ListenerGroup *) onPress;
|
||
|
-(ListenerGroup *) onRelease;
|
||
|
-(ListenerGroup *) onClick;
|
||
|
-(ListenerGroup *) onDrag;
|
||
|
-(ListenerGroup *) onAuto;
|
||
|
@end
|
||
|
|
||
|
#endif//__qwaq_button_h
|