]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/NSView.h
moved wxFloat/DoubleToStringStr from src/*/data.cpp to src/common/utils.cpp; took...
[wxWidgets.git] / include / wx / cocoa / NSView.h
CommitLineData
fb896a32
DE
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/NSView.h
3// Purpose: wxCocoaNSView class
4// Author: David Elliott
5// Modified by:
6// Created: 2003/02/15
7// RCS-ID: $Id:
8// Copyright: (c) 2003 David Elliott
9// Licence: wxWindows license
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef __WX_COCOA_NSVIEW_H__
13#define __WX_COCOA_NSVIEW_H__
14
15#include "wx/hashmap.h"
16#include "wx/cocoa/ObjcPose.h"
17
8ea5271e
DE
18typedef struct _NSRect NSRect;
19
fb896a32
DE
20WX_DECLARE_OBJC_HASHMAP(NSView);
21class wxCocoaNSView
22{
23/* NSView is a rather special case and requires some extra attention */
24 WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSView)
25public:
26 void AssociateNSView(WX_NSView cocoaNSView);
27 void DisassociateNSView(WX_NSView cocoaNSView);
28protected:
29 static void *sm_cocoaObserver;
30public:
31 virtual void Cocoa_FrameChanged(void) = 0;
8ea5271e 32 virtual bool Cocoa_drawRect(const NSRect &rect) = 0;
fb896a32
DE
33};
34
35#endif // _WX_COCOA_NSVIEW_H_