1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/NSScroller.h
3 // Purpose: wxCocoaNSScroller class
4 // Author: David Elliott
7 // Copyright: (c) 2004 David Elliott
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_COCOA_NSSCROLLER_H__
12 #define _WX_COCOA_NSSCROLLER_H__
14 #include "wx/hashmap.h"
15 #include "wx/cocoa/ObjcAssociate.h"
16 #include "wx/cocoa/ObjcRef.h"
18 DECLARE_WXCOCOA_OBJC_CLASS(NSScroller
);
20 WX_DECLARE_OBJC_HASHMAP(NSScroller
);
22 class wxCocoaNSScroller
24 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSScroller
);
26 void AssociateNSScroller(WX_NSScroller cocoaNSScroller
);
27 void DisassociateNSScroller(WX_NSScroller cocoaNSScroller
)
30 sm_cocoaHash
.erase(cocoaNSScroller
);
33 virtual void Cocoa_wxNSScrollerAction(void) = 0;
34 virtual ~wxCocoaNSScroller() { }
37 static const wxObjcAutoRefFromAlloc
<struct objc_object
*> sm_cocoaTarget
;
40 #endif // _WX_COCOA_NSSCROLLER_H__