quakeforge/ruamoko/qwaq/qwaq-button.h
Bill Currie db39f7ed3e [qwaq] Add hover listener to button
Forgot about this (very useful for tooltips etc).
2020-03-19 13:57:10 +09:00

30 lines
650 B
Objective-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;
ListenerGroup *onHover;
}
-initWithPos: (Point) pos releasedIcon: (DrawBuffer *) released
pressedIcon: (DrawBuffer *) pressed;
-(ListenerGroup *) onPress;
-(ListenerGroup *) onRelease;
-(ListenerGroup *) onClick;
-(ListenerGroup *) onDrag;
-(ListenerGroup *) onAuto;
-(ListenerGroup *) onHover;
@end
#endif//__qwaq_button_h