]> git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/NSScroller.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / cocoa / NSScroller.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/NSScroller.h
3 // Purpose: wxCocoaNSScroller class
4 // Author: David Elliott
5 // Modified by:
6 // Created: 2004/04/27
7 // Copyright: (c) 2004 David Elliott
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_COCOA_NSSCROLLER_H__
12 #define _WX_COCOA_NSSCROLLER_H__
13
14 #include "wx/hashmap.h"
15 #include "wx/cocoa/ObjcAssociate.h"
16 #include "wx/cocoa/ObjcRef.h"
17
18 DECLARE_WXCOCOA_OBJC_CLASS(NSScroller);
19
20 WX_DECLARE_OBJC_HASHMAP(NSScroller);
21
22 class wxCocoaNSScroller
23 {
24 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSScroller);
25 public:
26 void AssociateNSScroller(WX_NSScroller cocoaNSScroller);
27 void DisassociateNSScroller(WX_NSScroller cocoaNSScroller)
28 {
29 if(cocoaNSScroller)
30 sm_cocoaHash.erase(cocoaNSScroller);
31 }
32
33 virtual void Cocoa_wxNSScrollerAction(void) = 0;
34 virtual ~wxCocoaNSScroller() { }
35
36 protected:
37 static const wxObjcAutoRefFromAlloc<struct objc_object*> sm_cocoaTarget;
38 };
39
40 #endif // _WX_COCOA_NSSCROLLER_H__