Revision 2, 1.3 KB
(checked in by jon, 16 years ago)
|
Initial commit of skeletal project.
|
Line | |
---|
1 | // |
---|
2 | // AIRolloverButton.h |
---|
3 | // AIUtilities.framework |
---|
4 | // |
---|
5 | // Created by Evan Schoenberg on 12/2/04. |
---|
6 | // Copyright (c) 2004-2005 The Adium Team. All rights reserved. |
---|
7 | // |
---|
8 | |
---|
9 | @class AIRolloverButton; |
---|
10 | |
---|
11 | /*! |
---|
12 | * @protocol AIRolloverButtonDelegate |
---|
13 | * @brief Required protocol for the <tt>AIRolloverButton</tt> delegate |
---|
14 | */ |
---|
15 | @protocol AIRolloverButtonDelegate |
---|
16 | |
---|
17 | /*! |
---|
18 | * @brief Informs the delegate of the mouse entering/leaving the button's bounds |
---|
19 | * @param button The button whose status changed |
---|
20 | * @param isInside YES if the mouse is now within the button; NO if it is now outside the button |
---|
21 | */ |
---|
22 | - (void)rolloverButton:(AIRolloverButton *)button mouseChangedToInsideButton:(BOOL)isInside; |
---|
23 | @end |
---|
24 | |
---|
25 | /*! |
---|
26 | * @class AIRolloverButton |
---|
27 | * @brief An NSButton subclass which informs its delegate when the mouse is within its bounds |
---|
28 | */ |
---|
29 | @interface AIRolloverButton : NSButton { |
---|
30 | NSObject<AIRolloverButtonDelegate> *delegate; |
---|
31 | NSTrackingRectTag trackingTag; |
---|
32 | } |
---|
33 | |
---|
34 | #pragma mark Configuration |
---|
35 | /*! |
---|
36 | * @brief Set the delegate |
---|
37 | * |
---|
38 | * Set the delegate. See <tt>AIRolloverButtonDelegate</tt> protocol discussion for details. |
---|
39 | * @param inDelegate The delegate, which must conform to <tt>AIRolloverButtonDelegate</tt>. |
---|
40 | */ |
---|
41 | - (void)setDelegate:(NSObject<AIRolloverButtonDelegate> *)inDelegate; |
---|
42 | |
---|
43 | /*! |
---|
44 | * @brief Return the delegate |
---|
45 | * @return The delegate |
---|
46 | */ |
---|
47 | - (NSObject<AIRolloverButtonDelegate> *)delegate; |
---|
48 | @end |
---|