]>
Commit | Line | Data |
---|---|---|
fb896a32 DE |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/cocoa/NSButton.h | |
3 | // Purpose: wxCocoaNSButton class | |
4 | // Author: David Elliott | |
5 | // Modified by: | |
6 | // Created: 2002/12/09 | |
7 | // RCS-ID: $Id: | |
8 | // Copyright: (c) 2002 David Elliott | |
9 | // Licence: wxWindows license | |
10 | /////////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef __WX_COCOA_NSBUTTON_H__ | |
13 | #define __WX_COCOA_NSBUTTON_H__ | |
14 | ||
15 | #include "wx/hashmap.h" | |
e6686511 | 16 | #include "wx/cocoa/ObjcAssociate.h" |
fb896a32 DE |
17 | |
18 | WX_DECLARE_OBJC_HASHMAP(NSButton); | |
19 | ||
20 | class wxCocoaNSButton | |
21 | { | |
22 | WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSButton); | |
23 | public: | |
24 | void AssociateNSButton(WX_NSButton cocoaNSButton); | |
25 | inline void DisassociateNSButton(WX_NSButton cocoaNSButton) | |
26 | { | |
27 | sm_cocoaHash.erase(cocoaNSButton); | |
28 | } | |
29 | ||
30 | public: | |
31 | virtual void Cocoa_wxNSButtonAction(void) = 0; | |
32 | }; | |
33 | ||
34 | #endif // _WX_COCOA_NSBUTTON_H_ |