]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/NSWindow.h
Update to Scintilla 1.53
[wxWidgets.git] / include / wx / cocoa / NSWindow.h
CommitLineData
fb896a32
DE
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/NSWindow.h
3// Purpose: wxCocoaNSWindow class
4// Author: David Elliott
5// Modified by:
6// Created: 2003/03/16
7// RCS-ID: $Id:
8// Copyright: (c) 2003 David Elliott
9// Licence: wxWindows license
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef __WX_COCOA_NSWINDOW_H__
13#define __WX_COCOA_NSWINDOW_H__
14
15#include "wx/hashmap.h"
e6686511 16#include "wx/cocoa/ObjcAssociate.h"
fb896a32
DE
17
18WX_DECLARE_OBJC_HASHMAP(NSWindow);
19
20class wxCocoaNSWindow
21{
22/* NSWindow is a rather special case and requires some extra attention */
23 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSWindow)
24public:
25 void AssociateNSWindow(WX_NSWindow cocoaNSWindow);
26 inline void DisassociateNSWindow(WX_NSWindow cocoaNSWindow)
27 {
bac6f234
DE
28 if(cocoaNSWindow)
29 sm_cocoaHash.erase(cocoaNSWindow);
fb896a32
DE
30 }
31 virtual void Cocoa_close(void) = 0;
32 virtual bool Cocoa_windowShouldClose(void) = 0;
33 virtual void Cocoa_wxMenuItemAction(wxMenuItem& item) = 0;
34};
35
36#endif // _WX_COCOA_NSWINDOW_H_