]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/NSScroller.h
Add lambda-friendly wxDialog::ShowWindowModalThenDo().
[wxWidgets.git] / include / wx / cocoa / NSScroller.h
CommitLineData
5369a054
DE
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/NSScroller.h
3// Purpose: wxCocoaNSScroller class
4// Author: David Elliott
5// Modified by:
6// Created: 2004/04/27
5369a054
DE
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
18DECLARE_WXCOCOA_OBJC_CLASS(NSScroller);
19
20WX_DECLARE_OBJC_HASHMAP(NSScroller);
21
22class wxCocoaNSScroller
23{
24 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSScroller);
25public:
26 void AssociateNSScroller(WX_NSScroller cocoaNSScroller);
31e57091 27 void DisassociateNSScroller(WX_NSScroller cocoaNSScroller)
5369a054
DE
28 {
29 if(cocoaNSScroller)
30 sm_cocoaHash.erase(cocoaNSScroller);
31 }
32
33 virtual void Cocoa_wxNSScrollerAction(void) = 0;
31e57091
VZ
34 virtual ~wxCocoaNSScroller() { }
35
5369a054
DE
36protected:
37 static const wxObjcAutoRefFromAlloc<struct objc_object*> sm_cocoaTarget;
38};
39
40#endif // _WX_COCOA_NSSCROLLER_H__