]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/NSButton.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / cocoa / NSButton.h
CommitLineData
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
feb82768 7// Copyright: (c) 2002-2004 David Elliott
65571936 8// Licence: wxWindows licence
fb896a32
DE
9///////////////////////////////////////////////////////////////////////////////
10
feb82768
DE
11#ifndef _WX_COCOA_NSBUTTON_H__
12#define _WX_COCOA_NSBUTTON_H__
fb896a32
DE
13
14#include "wx/hashmap.h"
e6686511 15#include "wx/cocoa/ObjcAssociate.h"
feb82768 16#include "wx/cocoa/ObjcRef.h"
fb896a32
DE
17
18WX_DECLARE_OBJC_HASHMAP(NSButton);
19
20class wxCocoaNSButton
21{
22 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSButton);
23public:
24 void AssociateNSButton(WX_NSButton cocoaNSButton);
31e57091 25 void DisassociateNSButton(WX_NSButton cocoaNSButton)
fb896a32 26 {
bac6f234
DE
27 if(cocoaNSButton)
28 sm_cocoaHash.erase(cocoaNSButton);
fb896a32
DE
29 }
30
fb896a32 31 virtual void Cocoa_wxNSButtonAction(void) = 0;
31e57091
VZ
32 virtual ~wxCocoaNSButton() { }
33
feb82768
DE
34protected:
35 static const wxObjcAutoRefFromAlloc<struct objc_object*> sm_cocoaTarget;
fb896a32
DE
36};
37
feb82768 38#endif // _WX_COCOA_NSBUTTON_H__