1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/core/private.h
3 // Purpose: Private declarations: as this header is only included by
4 // wxWidgets itself, it may contain identifiers which don't start
6 // Author: Stefan Csomor
10 // Copyright: (c) Stefan Csomor
11 // Licence: wxWindows licence
12 /////////////////////////////////////////////////////////////////////////////
14 #ifndef _WX_PRIVATE_CORE_H_
15 #define _WX_PRIVATE_CORE_H_
19 #include <CoreFoundation/CoreFoundation.h>
21 #include "wx/osx/core/cfstring.h"
22 #include "wx/osx/core/cfdataref.h"
24 // Define helper macros allowing to insert small snippets of code to be
25 // compiled for high enough OS X version only: this shouldn't be abused for
26 // anything big but it's handy for e.g. specifying OS X 10.6-only protocols in
27 // the Objective C classes declarations when they're not supported under the
29 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
30 #define wxOSX_10_6_AND_LATER(x) x
32 #define wxOSX_10_6_AND_LATER(x)
35 #if ( !wxUSE_GUI && !wxOSX_USE_IPHONE ) || wxOSX_USE_COCOA_OR_CARBON
37 // Carbon functions are currently still used in wxOSX/Cocoa too (including
38 // wxBase part of it).
39 #include <Carbon/Carbon.h>
41 WXDLLIMPEXP_BASE
long UMAGetSystemVersion() ;
43 void WXDLLIMPEXP_CORE
wxMacStringToPascal( const wxString
&from
, unsigned char * to
);
44 wxString WXDLLIMPEXP_CORE
wxMacMakeStringFromPascal( const unsigned char * from
);
46 WXDLLIMPEXP_BASE wxString
wxMacFSRefToPath( const FSRef
*fsRef
, CFStringRef additionalPathComponent
= NULL
);
47 WXDLLIMPEXP_BASE OSStatus
wxMacPathToFSRef( const wxString
&path
, FSRef
*fsRef
);
48 WXDLLIMPEXP_BASE wxString
wxMacHFSUniStrToString( ConstHFSUniStr255Param uniname
);
50 // keycode utils from app.cpp
52 WXDLLIMPEXP_BASE CGKeyCode
wxCharCodeWXToOSX(wxKeyCode code
);
53 WXDLLIMPEXP_BASE
long wxMacTranslateKey(unsigned char key
, unsigned char code
);
60 #include <CoreGraphics/CoreGraphics.h>
62 #include <ApplicationServices/ApplicationServices.h>
65 #include "wx/bitmap.h"
66 #include "wx/window.h"
68 class WXDLLIMPEXP_CORE wxMacCGContextStateSaver
70 wxDECLARE_NO_COPY_CLASS(wxMacCGContextStateSaver
);
73 wxMacCGContextStateSaver( CGContextRef cg
)
76 CGContextSaveGState( cg
);
78 ~wxMacCGContextStateSaver()
80 CGContextRestoreGState( m_cg
);
86 class WXDLLIMPEXP_CORE wxDeferredObjectDeleter
: public wxObject
89 wxDeferredObjectDeleter( wxObject
* obj
) : m_obj(obj
)
92 virtual ~wxDeferredObjectDeleter()
102 WXDLLIMPEXP_CORE CGImageRef
wxMacCreateCGImageFromBitmap( const wxBitmap
& bitmap
);
104 WXDLLIMPEXP_CORE CGDataProviderRef
wxMacCGDataProviderCreateWithCFData( CFDataRef data
);
105 WXDLLIMPEXP_CORE CGDataConsumerRef
wxMacCGDataConsumerCreateWithCFData( CFMutableDataRef data
);
106 WXDLLIMPEXP_CORE CGDataProviderRef
wxMacCGDataProviderCreateWithMemoryBuffer( const wxMemoryBuffer
& buf
);
108 CGColorSpaceRef WXDLLIMPEXP_CORE
wxMacGetGenericRGBColorSpace(void);
112 extern wxWindow
* g_MacLastWindow
;
113 class wxNonOwnedWindow
;
115 // temporary typedef so that no additional casts are necessary within carbon code at the moment
124 WXDLLIMPEXP_CORE wxWindowMac
* wxFindWindowFromWXWidget(WXWidget inControl
);
127 typedef wxMacControl wxWidgetImplType
;
129 typedef wxWidgetImpl wxWidgetImplType
;
133 class wxMenuItemImpl
: public wxObject
136 wxMenuItemImpl( wxMenuItem
* peer
) : m_peer(peer
)
140 virtual ~wxMenuItemImpl() ;
141 virtual void SetBitmap( const wxBitmap
& bitmap
) = 0;
142 virtual void Enable( bool enable
) = 0;
143 virtual void Check( bool check
) = 0;
144 virtual void SetLabel( const wxString
& text
, wxAcceleratorEntry
*entry
) = 0;
145 virtual void Hide( bool hide
= true ) = 0;
147 virtual void * GetHMenuItem() = 0;
149 wxMenuItem
* GetWXPeer() { return m_peer
; }
151 static wxMenuItemImpl
* Create( wxMenuItem
* peer
, wxMenu
*pParentMenu
,
153 const wxString
& text
,
154 wxAcceleratorEntry
*entry
,
155 const wxString
& strHelp
,
159 // handle OS specific menu items if they weren't handled during normal processing
160 virtual bool DoDefault() { return false; }
164 DECLARE_ABSTRACT_CLASS(wxMenuItemImpl
)
167 class wxMenuImpl
: public wxObject
170 wxMenuImpl( wxMenu
* peer
) : m_peer(peer
)
174 virtual ~wxMenuImpl() ;
175 virtual void InsertOrAppend(wxMenuItem
*pItem
, size_t pos
) = 0;
176 virtual void Remove( wxMenuItem
*pItem
) = 0;
178 virtual void MakeRoot() = 0;
180 virtual void SetTitle( const wxString
& text
) = 0;
182 virtual WXHMENU
GetHMenu() = 0;
184 wxMenu
* GetWXPeer() { return m_peer
; }
186 virtual void PopUp( wxWindow
*win
, int x
, int y
) = 0;
188 static wxMenuImpl
* Create( wxMenu
* peer
, const wxString
& title
);
189 static wxMenuImpl
* CreateRootMenu( wxMenu
* peer
);
193 DECLARE_ABSTRACT_CLASS(wxMenuItemImpl
)
198 class WXDLLIMPEXP_CORE wxWidgetImpl
: public wxObject
201 wxWidgetImpl( wxWindowMac
* peer
, bool isRootControl
= false, bool isUserPane
= false );
203 virtual ~wxWidgetImpl();
207 bool IsRootControl() const { return m_isRootControl
; }
209 bool IsUserPane() const { return m_isUserPane
; }
211 wxWindowMac
* GetWXPeer() const { return m_wxPeer
; }
213 bool IsOk() const { return GetWXWidget() != NULL
; }
215 // not only the control itself, but also all its parents must be visible
216 // in order for this function to return true
217 virtual bool IsVisible() const = 0;
218 // set the visibility of this widget (maybe latent)
219 virtual void SetVisibility( bool visible
) = 0;
221 virtual bool ShowWithEffect(bool WXUNUSED(show
),
222 wxShowEffect
WXUNUSED(effect
),
223 unsigned WXUNUSED(timeout
))
228 virtual void Raise() = 0;
230 virtual void Lower() = 0;
232 virtual void ScrollRect( const wxRect
*rect
, int dx
, int dy
) = 0;
234 virtual WXWidget
GetWXWidget() const = 0;
236 virtual void SetBackgroundColour( const wxColour
& col
) = 0;
237 virtual bool SetBackgroundStyle(wxBackgroundStyle style
) = 0;
239 // all coordinates in native parent widget relative coordinates
240 virtual void GetContentArea( int &left
, int &top
, int &width
, int &height
) const = 0;
241 virtual void Move(int x
, int y
, int width
, int height
) = 0;
242 virtual void GetPosition( int &x
, int &y
) const = 0;
243 virtual void GetSize( int &width
, int &height
) const = 0;
244 virtual void SetControlSize( wxWindowVariant variant
) = 0;
245 virtual float GetContentScaleFactor() const
250 // the native coordinates may have an 'aura' for shadows etc, if this is the case the layout
251 // inset indicates on which insets the real control is drawn
252 virtual void GetLayoutInset(int &left
, int &top
, int &right
, int &bottom
) const
254 left
= top
= right
= bottom
= 0;
257 // native view coordinates are topleft to bottom right (flipped regarding CoreGraphics origin)
258 virtual bool IsFlipped() const { return true; }
260 virtual void SetNeedsDisplay( const wxRect
* where
= NULL
) = 0;
261 virtual bool GetNeedsDisplay() const = 0;
263 virtual bool NeedsFocusRect() const;
264 virtual void SetNeedsFocusRect( bool needs
);
266 virtual bool NeedsFrame() const;
267 virtual void SetNeedsFrame( bool needs
);
269 virtual bool CanFocus() const = 0;
270 // return true if successful
271 virtual bool SetFocus() = 0;
272 virtual bool HasFocus() const = 0;
274 virtual void RemoveFromParent() = 0;
275 virtual void Embed( wxWidgetImpl
*parent
) = 0;
277 virtual void SetDefaultButton( bool isDefault
) = 0;
278 virtual void PerformClick() = 0;
279 virtual void SetLabel( const wxString
& title
, wxFontEncoding encoding
) = 0;
280 #if wxUSE_MARKUP && wxOSX_USE_COCOA
281 virtual void SetLabelMarkup( const wxString
& WXUNUSED(markup
) ) { }
284 virtual void SetCursor( const wxCursor
& cursor
) = 0;
285 virtual void CaptureMouse() = 0;
286 virtual void ReleaseMouse() = 0;
288 virtual wxInt32
GetValue() const = 0;
289 virtual void SetValue( wxInt32 v
) = 0;
290 virtual wxBitmap
GetBitmap() const = 0;
291 virtual void SetBitmap( const wxBitmap
& bitmap
) = 0;
292 virtual void SetBitmapPosition( wxDirection dir
) = 0;
293 virtual void SetupTabs( const wxNotebook
¬ebook
) =0;
294 virtual void GetBestRect( wxRect
*r
) const = 0;
295 virtual bool IsEnabled() const = 0;
296 virtual void Enable( bool enable
) = 0;
297 virtual void SetMinimum( wxInt32 v
) = 0;
298 virtual void SetMaximum( wxInt32 v
) = 0;
299 virtual wxInt32
GetMinimum() const = 0;
300 virtual wxInt32
GetMaximum() const = 0;
301 virtual void PulseGauge() = 0;
302 virtual void SetScrollThumb( wxInt32 value
, wxInt32 thumbSize
) = 0;
304 virtual void SetFont( const wxFont
& font
, const wxColour
& foreground
, long windowStyle
, bool ignoreBlack
= true ) = 0;
306 virtual void SetToolTip(wxToolTip
* WXUNUSED(tooltip
)) { }
308 // is the clicked event sent AFTER the state already changed, so no additional
309 // state changing logic is required from the outside
310 virtual bool ButtonClickDidStateChange() = 0;
312 virtual void InstallEventHandler( WXWidget control
= NULL
) = 0;
314 // Mechanism used to keep track of whether a change should send an event
315 // Do SendEvents(false) when starting actions that would trigger programmatic events
316 // and SendEvents(true) at the end of the block.
317 virtual void SendEvents(bool shouldSendEvents
) { m_shouldSendEvents
= shouldSendEvents
; }
318 virtual bool ShouldSendEvents() { return m_shouldSendEvents
; }
320 // static methods for associating native controls and their implementations
323 FindFromWXWidget(WXWidget control
);
325 static void RemoveAssociations( wxWidgetImpl
* impl
);
327 static void Associate( WXWidget control
, wxWidgetImpl
*impl
);
329 static WXWidget
FindFocus();
331 // static creation methods, must be implemented by all toolkits
333 static wxWidgetImplType
* CreateUserPane( wxWindowMac
* wxpeer
,
340 static wxWidgetImplType
* CreateContentView( wxNonOwnedWindow
* now
) ;
342 static wxWidgetImplType
* CreateButton( wxWindowMac
* wxpeer
,
345 const wxString
& label
,
351 static wxWidgetImplType
* CreateDisclosureTriangle( wxWindowMac
* wxpeer
,
354 const wxString
& label
,
360 static wxWidgetImplType
* CreateStaticLine( wxWindowMac
* wxpeer
,
368 static wxWidgetImplType
* CreateGroupBox( wxWindowMac
* wxpeer
,
371 const wxString
& label
,
377 static wxWidgetImplType
* CreateStaticText( wxWindowMac
* wxpeer
,
380 const wxString
& label
,
386 static wxWidgetImplType
* CreateTextControl( wxTextCtrl
* wxpeer
,
389 const wxString
& content
,
395 static wxWidgetImplType
* CreateSearchControl( wxSearchCtrl
* wxpeer
,
398 const wxString
& content
,
404 static wxWidgetImplType
* CreateCheckBox( wxWindowMac
* wxpeer
,
407 const wxString
& label
,
413 static wxWidgetImplType
* CreateRadioButton( wxWindowMac
* wxpeer
,
416 const wxString
& label
,
422 static wxWidgetImplType
* CreateToggleButton( wxWindowMac
* wxpeer
,
425 const wxString
& label
,
431 static wxWidgetImplType
* CreateBitmapToggleButton( wxWindowMac
* wxpeer
,
434 const wxBitmap
& bitmap
,
440 static wxWidgetImplType
* CreateBitmapButton( wxWindowMac
* wxpeer
,
443 const wxBitmap
& bitmap
,
449 static wxWidgetImplType
* CreateTabView( wxWindowMac
* wxpeer
,
457 static wxWidgetImplType
* CreateGauge( wxWindowMac
* wxpeer
,
468 static wxWidgetImplType
* CreateSlider( wxWindowMac
* wxpeer
,
479 static wxWidgetImplType
* CreateSpinButton( wxWindowMac
* wxpeer
,
490 static wxWidgetImplType
* CreateScrollBar( wxWindowMac
* wxpeer
,
498 static wxWidgetImplType
* CreateChoice( wxWindowMac
* wxpeer
,
507 static wxWidgetImplType
* CreateListBox( wxWindowMac
* wxpeer
,
516 static wxWidgetImplType
* CreateComboBox( wxComboBox
* wxpeer
,
526 // converts from Toplevel-Content relative to local
527 static void Convert( wxPoint
*pt
, wxWidgetImpl
*from
, wxWidgetImpl
*to
);
529 bool m_isRootControl
;
531 wxWindowMac
* m_wxPeer
;
532 bool m_needsFocusRect
;
534 bool m_shouldSendEvents
;
536 DECLARE_ABSTRACT_CLASS(wxWidgetImpl
)
540 // the interface to be implemented eg by a listbox
543 class WXDLLIMPEXP_CORE wxListWidgetColumn
546 virtual ~wxListWidgetColumn() {}
549 class WXDLLIMPEXP_CORE wxListWidgetCellValue
552 wxListWidgetCellValue() {}
553 virtual ~wxListWidgetCellValue() {}
555 virtual void Set( CFStringRef value
) = 0;
556 virtual void Set( const wxString
& value
) = 0;
557 virtual void Set( int value
) = 0;
558 virtual void Check( bool check
);
560 virtual bool IsChecked() const;
561 virtual int GetIntValue() const = 0;
562 virtual wxString
GetStringValue() const = 0;
565 class WXDLLIMPEXP_CORE wxListWidgetImpl
568 wxListWidgetImpl() {}
569 virtual ~wxListWidgetImpl() { }
571 virtual wxListWidgetColumn
* InsertTextColumn( unsigned pos
, const wxString
& title
, bool editable
= false,
572 wxAlignment just
= wxALIGN_LEFT
, int defaultWidth
= -1) = 0 ;
573 virtual wxListWidgetColumn
* InsertCheckColumn( unsigned pos
, const wxString
& title
, bool editable
= false,
574 wxAlignment just
= wxALIGN_LEFT
, int defaultWidth
= -1) = 0 ;
578 // TODO will be replaced
579 virtual void ListDelete( unsigned int n
) = 0;
580 virtual void ListInsert( unsigned int n
) = 0;
581 virtual void ListClear() = 0;
585 virtual void ListDeselectAll() = 0;
586 virtual void ListSetSelection( unsigned int n
, bool select
, bool multi
) = 0;
587 virtual int ListGetSelection() const = 0;
588 virtual int ListGetSelections( wxArrayInt
& aSelections
) const = 0;
589 virtual bool ListIsSelected( unsigned int n
) const = 0;
593 virtual void ListScrollTo( unsigned int n
) = 0;
594 virtual void UpdateLine( unsigned int n
, wxListWidgetColumn
* col
= NULL
) = 0;
595 virtual void UpdateLineToEnd( unsigned int n
) = 0;
599 virtual unsigned int ListGetCount() const = 0;
601 virtual int DoListHitTest( const wxPoint
& inpoint
) const = 0;
605 // interface to be implemented by a textcontrol
608 class WXDLLIMPEXP_FWD_CORE wxTextAttr
;
609 class WXDLLIMPEXP_FWD_CORE wxTextEntry
;
611 // common interface for all implementations
612 class WXDLLIMPEXP_CORE wxTextWidgetImpl
616 // Any widgets implementing this interface must be associated with a
617 // wxTextEntry so instead of requiring the derived classes to implement
618 // another (pure) virtual function, just take the pointer to this entry in
619 // our ctor and implement GetTextEntry() ourselves.
620 wxTextWidgetImpl(wxTextEntry
*entry
) : m_entry(entry
) {}
622 virtual ~wxTextWidgetImpl() {}
624 wxTextEntry
*GetTextEntry() const { return m_entry
; }
626 virtual bool CanFocus() const { return true; }
628 virtual wxString
GetStringValue() const = 0 ;
629 virtual void SetStringValue( const wxString
&val
) = 0 ;
630 virtual void SetSelection( long from
, long to
) = 0 ;
631 virtual void GetSelection( long* from
, long* to
) const = 0 ;
632 virtual void WriteText( const wxString
& str
) = 0 ;
634 virtual bool GetStyle( long position
, wxTextAttr
& style
);
635 virtual void SetStyle( long start
, long end
, const wxTextAttr
& style
) ;
636 virtual void Copy() ;
638 virtual void Paste() ;
639 virtual bool CanPaste() const ;
640 virtual void SetEditable( bool editable
) ;
641 virtual long GetLastPosition() const ;
642 virtual void Replace( long from
, long to
, const wxString
&str
) ;
643 virtual void Remove( long from
, long to
) ;
646 virtual bool HasOwnContextMenu() const
649 virtual bool SetupCursor( const wxPoint
& WXUNUSED(pt
) )
652 virtual void Clear() ;
653 virtual bool CanUndo() const;
654 virtual void Undo() ;
655 virtual bool CanRedo() const;
656 virtual void Redo() ;
657 virtual int GetNumberOfLines() const ;
658 virtual long XYToPosition(long x
, long y
) const;
659 virtual bool PositionToXY(long pos
, long *x
, long *y
) const ;
660 virtual void ShowPosition(long WXUNUSED(pos
)) ;
661 virtual int GetLineLength(long lineNo
) const ;
662 virtual wxString
GetLineText(long lineNo
) const ;
663 virtual void CheckSpelling(bool WXUNUSED(check
)) { }
665 virtual wxSize
GetBestSize() const { return wxDefaultSize
; }
667 virtual bool SetHint(const wxString
& WXUNUSED(hint
)) { return false; }
669 wxTextEntry
* const m_entry
;
671 wxDECLARE_NO_COPY_CLASS(wxTextWidgetImpl
);
674 // common interface for all implementations
675 class WXDLLIMPEXP_CORE wxComboWidgetImpl
679 wxComboWidgetImpl() {}
681 virtual ~wxComboWidgetImpl() {}
683 virtual int GetSelectedItem() const { return -1; };
684 virtual void SetSelectedItem(int WXUNUSED(item
)) {};
686 virtual int GetNumberOfItems() const { return -1; };
688 virtual void InsertItem(int WXUNUSED(pos
), const wxString
& WXUNUSED(item
)) {}
690 virtual void RemoveItem(int WXUNUSED(pos
)) {}
692 virtual void Clear() {}
694 virtual wxString
GetStringAtIndex(int WXUNUSED(pos
)) const { return wxEmptyString
; }
696 virtual int FindString(const wxString
& WXUNUSED(text
)) const { return -1; }
700 // common interface for buttons
707 virtual ~wxButtonImpl(){}
709 virtual void SetPressedBitmap( const wxBitmap
& bitmap
) = 0;
713 // common interface for search controls
716 class wxSearchWidgetImpl
719 wxSearchWidgetImpl(){}
720 virtual ~wxSearchWidgetImpl(){}
722 // search field options
723 virtual void ShowSearchButton( bool show
) = 0;
724 virtual bool IsSearchButtonVisible() const = 0;
726 virtual void ShowCancelButton( bool show
) = 0;
727 virtual bool IsCancelButtonVisible() const = 0;
729 virtual void SetSearchMenu( wxMenu
* menu
) = 0;
731 virtual void SetDescriptiveText(const wxString
& text
) = 0;
735 // toplevel window implementation class
738 class wxNonOwnedWindowImpl
: public wxObject
741 wxNonOwnedWindowImpl( wxNonOwnedWindow
* nonownedwnd
) : m_wxPeer(nonownedwnd
)
744 wxNonOwnedWindowImpl()
747 virtual ~wxNonOwnedWindowImpl()
751 virtual void WillBeDestroyed()
755 virtual void Create( wxWindow
* parent
, const wxPoint
& pos
, const wxSize
& size
,
756 long style
, long extraStyle
, const wxString
& name
) = 0;
759 virtual WXWindow
GetWXWindow() const = 0;
769 virtual bool Show(bool WXUNUSED(show
))
774 virtual bool ShowWithEffect(bool show
, wxShowEffect
WXUNUSED(effect
), unsigned WXUNUSED(timeout
))
779 virtual void Update()
783 virtual bool SetTransparent(wxByte
WXUNUSED(alpha
))
788 virtual bool SetBackgroundColour(const wxColour
& WXUNUSED(col
) )
793 virtual void SetExtraStyle( long WXUNUSED(exStyle
) )
797 virtual void SetWindowStyleFlag( long WXUNUSED(style
) )
801 virtual bool SetBackgroundStyle(wxBackgroundStyle
WXUNUSED(style
))
806 virtual bool CanSetTransparent()
811 virtual void GetContentArea( int &left
, int &top
, int &width
, int &height
) const = 0;
812 virtual void MoveWindow(int x
, int y
, int width
, int height
) = 0;
813 virtual void GetPosition( int &x
, int &y
) const = 0;
814 virtual void GetSize( int &width
, int &height
) const = 0;
816 virtual bool SetShape(const wxRegion
& WXUNUSED(region
))
821 virtual void SetTitle( const wxString
& title
, wxFontEncoding encoding
) = 0;
823 virtual bool IsMaximized() const = 0;
825 virtual bool IsIconized() const= 0;
827 virtual void Iconize( bool iconize
)= 0;
829 virtual void Maximize(bool maximize
) = 0;
831 virtual bool IsFullScreen() const= 0;
833 virtual void ShowWithoutActivating() { Show(true); }
835 virtual bool ShowFullScreen(bool show
, long style
)= 0;
837 virtual void RequestUserAttention(int flags
) = 0;
839 virtual void ScreenToWindow( int *x
, int *y
) = 0;
841 virtual void WindowToScreen( int *x
, int *y
) = 0;
843 virtual bool IsActive() = 0;
845 wxNonOwnedWindow
* GetWXPeer() { return m_wxPeer
; }
847 static wxNonOwnedWindowImpl
*
848 FindFromWXWindow(WXWindow window
);
850 static void RemoveAssociations( wxNonOwnedWindowImpl
* impl
);
852 static void Associate( WXWindow window
, wxNonOwnedWindowImpl
*impl
);
854 // static creation methods, must be implemented by all toolkits
856 static wxNonOwnedWindowImpl
* CreateNonOwnedWindow( wxNonOwnedWindow
* wxpeer
, wxWindow
* parent
, WXWindow native
) ;
858 static wxNonOwnedWindowImpl
* CreateNonOwnedWindow( wxNonOwnedWindow
* wxpeer
, wxWindow
* parent
, const wxPoint
& pos
, const wxSize
& size
,
859 long style
, long extraStyle
, const wxString
& name
) ;
861 virtual void SetModified(bool WXUNUSED(modified
)) { }
862 virtual bool IsModified() const { return false; }
865 virtual CGFloat
GetWindowLevel() const { return 0.0; }
867 virtual CGWindowLevel
GetWindowLevel() const { return kCGNormalWindowLevel
; }
869 virtual void RestoreWindowLevel() {}
871 wxNonOwnedWindow
* m_wxPeer
;
872 DECLARE_ABSTRACT_CLASS(wxNonOwnedWindowImpl
)
877 //---------------------------------------------------------------------------
878 // cocoa bridging utilities
879 //---------------------------------------------------------------------------
881 bool wxMacInitCocoa();
883 class WXDLLIMPEXP_CORE wxMacAutoreleasePool
886 wxMacAutoreleasePool();
887 ~wxMacAutoreleasePool();
894 void wxMacCocoaRelease( void* obj
);
895 void wxMacCocoaAutorelease( void* obj
);
896 void* wxMacCocoaRetain( void* obj
);
900 // _WX_PRIVATE_CORE_H_