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