1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/NSScroller.h
3 // Purpose: wxCocoaNSScroller class
4 // Author: David Elliott
8 // Copyright: (c) 2004 David Elliott
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_COCOA_NSSCROLLER_H__
13 #define _WX_COCOA_NSSCROLLER_H__
15 #include "wx/hashmap.h"
16 #include "wx/cocoa/ObjcAssociate.h"
17 #include "wx/cocoa/ObjcRef.h"
19 DECLARE_WXCOCOA_OBJC_CLASS(NSScroller
);
21 WX_DECLARE_OBJC_HASHMAP(NSScroller
);
23 class wxCocoaNSScroller
25 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSScroller
);
27 void AssociateNSScroller(WX_NSScroller cocoaNSScroller
);
28 void DisassociateNSScroller(WX_NSScroller cocoaNSScroller
)
31 sm_cocoaHash
.erase(cocoaNSScroller
);
34 virtual void Cocoa_wxNSScrollerAction(void) = 0;
35 virtual ~wxCocoaNSScroller() { }
38 static const wxObjcAutoRefFromAlloc
<struct objc_object
*> sm_cocoaTarget
;
41 #endif // _WX_COCOA_NSSCROLLER_H__