mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
[qwaq] Add hover listener to button
Forgot about this (very useful for tooltips etc).
This commit is contained in:
parent
bd3884f6fa
commit
db39f7ed3e
2 changed files with 7 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
ListenerGroup *onClick;
|
||||
ListenerGroup *onDrag;
|
||||
ListenerGroup *onAuto;
|
||||
ListenerGroup *onHover;
|
||||
}
|
||||
-initWithPos: (Point) pos releasedIcon: (DrawBuffer *) released
|
||||
pressedIcon: (DrawBuffer *) pressed;
|
||||
|
@ -23,6 +24,7 @@
|
|||
-(ListenerGroup *) onClick;
|
||||
-(ListenerGroup *) onDrag;
|
||||
-(ListenerGroup *) onAuto;
|
||||
-(ListenerGroup *) onHover;
|
||||
@end
|
||||
|
||||
#endif//__qwaq_button_h
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
onClick = [[ListenerGroup alloc] init];
|
||||
onDrag = [[ListenerGroup alloc] init];
|
||||
onAuto = [[ListenerGroup alloc] init];
|
||||
onHover = [[ListenerGroup alloc] init];
|
||||
return self;
|
||||
}
|
||||
|
||||
|
@ -88,4 +89,8 @@
|
|||
return onAuto;
|
||||
}
|
||||
|
||||
-(ListenerGroup *) onHover
|
||||
{
|
||||
return onHover;
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue