2020-03-19 04:52:14 +00:00
|
|
|
#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;
|
2020-03-19 04:57:10 +00:00
|
|
|
ListenerGroup *onHover;
|
2020-03-19 04:52:14 +00:00
|
|
|
}
|
|
|
|
-initWithPos: (Point) pos releasedIcon: (DrawBuffer *) released
|
|
|
|
pressedIcon: (DrawBuffer *) pressed;
|
|
|
|
-(ListenerGroup *) onPress;
|
|
|
|
-(ListenerGroup *) onRelease;
|
|
|
|
-(ListenerGroup *) onClick;
|
|
|
|
-(ListenerGroup *) onDrag;
|
|
|
|
-(ListenerGroup *) onAuto;
|
2020-03-19 04:57:10 +00:00
|
|
|
-(ListenerGroup *) onHover;
|
2020-03-19 04:52:14 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif//__qwaq_button_h
|