1 /////////////////////////////////////////////////////////////////////////////
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_H_
15 #define _WX_PRIVATE_H_
21 # include <Carbon/Carbon.h>
23 # include <Debugging.h>
24 # include <Quickdraw.h>
25 # include <Appearance.h>
27 # include <Controls.h>
28 # include <ControlDefinitions.h>
34 #if UNIVERSAL_INTERFACES_VERSION < 0x0340
35 #error "please update to Apple's lastest universal headers from http://developer.apple.com/sdk/"
38 #ifndef MAC_OS_X_VERSION_10_3
39 #define MAC_OS_X_VERSION_10_3 1030
42 #ifdef __WXMAC_CARBON__
43 #include "wx/mac/corefoundation/cfstring.h"
47 // as macro in FixMath.h for 10.3
48 inline Fixed
IntToFixed( int inInt
)
50 return (((SInt32
) inInt
) << 16);
53 inline int FixedToInt( Fixed inFixed
)
55 return (((SInt32
) inFixed
) >> 16);
62 #include "wx/window.h"
64 class wxMacPortStateHelper
66 DECLARE_NO_COPY_CLASS(wxMacPortStateHelper
)
69 wxMacPortStateHelper( GrafPtr newport
) ;
70 wxMacPortStateHelper() ;
71 ~wxMacPortStateHelper() ;
73 void Setup( GrafPtr newport
) ;
75 bool IsCleared() { return m_clip
== NULL
; }
76 GrafPtr
GetCurrentPort() { return m_currentPort
; }
79 GrafPtr m_currentPort
;
82 ThemeDrawingState m_drawingState
;
89 class WXDLLEXPORT wxMacPortSaver
91 DECLARE_NO_COPY_CLASS(wxMacPortSaver
)
94 wxMacPortSaver( GrafPtr port
)
96 ::GetPort( &m_port
) ;
101 ::SetPort( m_port
) ;
107 class WXDLLEXPORT wxMacPortSetter
109 DECLARE_NO_COPY_CLASS(wxMacPortSetter
)
112 wxMacPortSetter( const wxDC
* dc
) ;
115 wxMacPortStateHelper m_ph
;
120 Clips to the visible region of a control within the current port
123 class WXDLLEXPORT wxMacWindowClipper
: public wxMacPortSaver
125 DECLARE_NO_COPY_CLASS(wxMacWindowClipper
)
128 wxMacWindowClipper( const wxWindow
* win
) ;
129 ~wxMacWindowClipper() ;
132 RgnHandle m_formerClip
;
133 RgnHandle m_newClip
;
136 class WXDLLEXPORT wxMacWindowStateSaver
: public wxMacWindowClipper
138 DECLARE_NO_COPY_CLASS(wxMacWindowStateSaver
)
141 wxMacWindowStateSaver( const wxWindow
* win
) ;
142 ~wxMacWindowStateSaver() ;
145 ThemeDrawingState m_themeDrawingState
;
149 class wxMacDrawingHelper
151 DECLARE_NO_COPY_CLASS(wxMacDrawingHelper)
154 wxMacDrawingHelper( wxWindowMac * theWindow , bool clientArea = false ) ;
155 ~wxMacDrawingHelper() ;
156 bool Ok() { return m_ok ; }
157 void LocalToWindow( Rect *rect) { OffsetRect( rect , m_origin.h , m_origin.v ) ; }
158 void LocalToWindow( Point *pt ) { AddPt( m_origin , pt ) ; }
159 void LocalToWindow( RgnHandle rgn ) { OffsetRgn( rgn , m_origin.h , m_origin.v ) ; }
160 const Point& GetOrigin() { return m_origin ; }
163 GrafPtr m_formerPort ;
164 GrafPtr m_currentPort ;
165 PenState m_savedPenState ;
171 bool wxMacConvertEventToRecord( EventRef event
, EventRecord
*rec
) ;
176 WXDLLEXPORT wxString
wxMacFSSpec2MacFilename( const FSSpec
*spec
) ;
177 WXDLLEXPORT
void wxMacFilename2FSSpec( const wxString
&path
, FSSpec
*spec
) ;
180 WXDLLEXPORT wxString
wxMacFindFolder(short vRefNum
,
182 Boolean createFolder
);
184 template<typename T
> EventParamType
wxMacGetEventParamType() { wxFAIL_MSG( wxT("Unknown Param Type") ) ; return 0 ; }
185 template<> inline EventParamType wxMacGetEventParamType
<RgnHandle
>() { return typeQDRgnHandle
; }
186 template<> inline EventParamType wxMacGetEventParamType
<ControlRef
>() { return typeControlRef
; }
187 template<> inline EventParamType wxMacGetEventParamType
<WindowRef
>() { return typeWindowRef
; }
188 template<> inline EventParamType wxMacGetEventParamType
<MenuRef
>() { return typeMenuRef
; }
189 template<> inline EventParamType wxMacGetEventParamType
<EventRef
>() { return typeEventRef
; }
190 template<> inline EventParamType wxMacGetEventParamType
<Point
>() { return typeQDPoint
; }
191 template<> inline EventParamType wxMacGetEventParamType
<Rect
>() { return typeQDRectangle
; }
192 template<> inline EventParamType wxMacGetEventParamType
<Boolean
>() { return typeBoolean
; }
193 #if TARGET_API_MAC_OSX
194 template<> inline EventParamType wxMacGetEventParamType
<HICommand
>() { return typeHICommand
; }
195 template<> inline EventParamType wxMacGetEventParamType
<HIPoint
>() { return typeHIPoint
; }
196 template<> inline EventParamType wxMacGetEventParamType
<HISize
>() { return typeHISize
; }
197 template<> inline EventParamType wxMacGetEventParamType
<HIRect
>() { return typeHIRect
; }
198 template<> inline EventParamType wxMacGetEventParamType
<void*>() { return typeVoidPtr
; }
200 template<> inline EventParamType wxMacGetEventParamType
<Collection
>() { return typeCollection
; }
201 template<> inline EventParamType wxMacGetEventParamType
<CGContextRef
>() { return typeCGContextRef
; }
204 template<> EventParamType wxMacGetEventParamType<GrafPtr>() { return typeGrafPtr ; }
205 template<> EventParamType wxMacGetEventParamType<OSStatus>() { return typeOSStatus ; }
206 template<> EventParamType wxMacGetEventParamType<CFIndex>() { return typeCFIndex ; }
207 template<> EventParamType wxMacGetEventParamType<GWorldPtr>() { return typeGWorldPtr ; }
210 class wxMacCarbonEvent
220 wxMacCarbonEvent( EventRef event
, bool release
= false )
223 m_release
= release
;
226 wxMacCarbonEvent(UInt32 inClassID
,UInt32 inKind
,EventTime inWhen
= 0 /*now*/,EventAttributes inAttributes
=kEventAttributeNone
)
229 verify_noerr( MacCreateEvent( NULL
, inClassID
, inKind
,inWhen
,inAttributes
,&m_eventRef
) ) ;
236 ReleaseEvent( m_eventRef
) ;
239 OSStatus
Create(UInt32 inClassID
,UInt32 inKind
,EventTime inWhen
= 0 /*now*/,EventAttributes inAttributes
=kEventAttributeNone
)
241 verify( (m_eventRef
== NULL
) || m_release
) ;
242 if ( m_eventRef
&& m_release
)
244 ReleaseEvent( m_eventRef
) ;
249 OSStatus err
= MacCreateEvent( NULL
, inClassID
, inKind
,inWhen
,inAttributes
,&m_eventRef
) ;
255 OSStatus
GetParameter( EventParamName inName
, EventParamType inDesiredType
, UInt32 inBufferSize
, void * outData
) ;
257 template <typename T
> OSStatus
GetParameter( EventParamName inName
, EventParamType type
, T
*data
)
259 return GetParameter( inName
, type
, sizeof( T
) , data
) ;
261 template <typename T
> OSStatus
GetParameter( EventParamName inName
, T
*data
)
263 return GetParameter
<T
>( inName
, wxMacGetEventParamType
<T
>() , data
) ;
266 template <typename T
> T
GetParameter( EventParamName inName
)
269 verify_noerr( GetParameter
<T
>( inName
, &value
) ) ;
272 template <typename T
> T
GetParameter( EventParamName inName
, EventParamType inDesiredType
)
275 verify_noerr( GetParameter
<T
>( inName
, inDesiredType
, &value
) ) ;
279 OSStatus
SetParameter( EventParamName inName
, EventParamType inType
, UInt32 inSize
, const void * inData
) ;
280 template <typename T
> OSStatus
SetParameter( EventParamName inName
, EventParamType inDesiredType
, const T
*data
)
282 return SetParameter( inName
, inDesiredType
, sizeof( T
) , data
) ;
284 template <typename T
> OSStatus
SetParameter( EventParamName inName
, EventParamType inDesiredType
, const T
& data
)
286 return SetParameter
<T
>( inName
, inDesiredType
, &data
) ;
288 template <typename T
> OSStatus
SetParameter( EventParamName inName
, const T
*data
)
290 return SetParameter
<T
>( inName
, wxMacGetEventParamType
<T
>() , data
) ;
292 template <typename T
> OSStatus
SetParameter( EventParamName inName
, const T
& data
)
294 return SetParameter
<T
>( inName
, wxMacGetEventParamType
<T
>() , &data
) ;
298 return ::GetEventClass( m_eventRef
) ;
302 return ::GetEventKind( m_eventRef
) ;
306 return ::GetEventTime( m_eventRef
) ;
310 return EventTimeToTicks( GetTime() ) ;
312 OSStatus
SetTime( EventTime inWhen
= 0 /*now*/ )
314 return ::SetEventTime( m_eventRef
, inWhen
? inWhen
: GetCurrentEventTime() ) ;
316 operator EventRef () { return m_eventRef
; }
318 bool IsValid() { return m_eventRef
!= 0 ; }
320 EventRef m_eventRef
;
325 // helper class for allocating and deallocating Universal Proc Ptrs
328 template <typename procType
, typename uppType
, uppType (*newUPP
)(procType
) , void (*disposeUPP
)(uppType
) > class wxMacUPP
331 wxMacUPP( procType proc
)
334 m_upp
= (*newUPP
)( NULL
) ;
339 disposeUPP( m_upp
) ;
341 operator uppType() { return m_upp
; }
346 typedef wxMacUPP
<NMProcPtr
,NMUPP
,NewNMUPP
,DisposeNMUPP
> wxMacNMUPP
;
350 GWorldPtr wxMacCreateGWorld( int width , int height , int depth ) ;
351 void wxMacDestroyGWorld( GWorldPtr gw ) ;
352 PicHandle wxMacCreatePict( GWorldPtr gw , GWorldPtr mask = NULL ) ;
353 CIconHandle wxMacCreateCIcon(GWorldPtr image , GWorldPtr mask , short dstDepth , short iconSize ) ;
354 void wxMacSetColorTableEntry( CTabHandle newColors , int index , int red , int green , int blue ) ;
355 CTabHandle wxMacCreateColorTable( int numColors ) ;
357 IconRef
wxMacCreateIconRef(const wxBitmap
& bmp
) ;
358 void wxMacCreateBitmapButton( ControlButtonContentInfo
*info
, const wxBitmap
& bitmap
, int forceType
= 0 ) ;
359 void wxMacReleaseBitmapButton( ControlButtonContentInfo
*info
) ;
361 #define MAC_WXCOLORREF(a) (*((RGBColor*)&(a)))
362 #define MAC_WXHBITMAP(a) (GWorldPtr(a))
363 #define MAC_WXHMETAFILE(a) (PicHandle(a))
364 #define MAC_WXHICON(a) (IconRef(a))
365 #define MAC_WXHCURSOR(a) (CursHandle(a))
366 #define MAC_WXHRGN(a) (RgnHandle(a))
367 #define MAC_WXHWND(a) (WindowPtr(a))
368 #define MAC_WXRECPTR(a) ((Rect*)a)
369 #define MAC_WXPOINTPTR(a) ((Point*)a)
370 #define MAC_WXHMENU(a) ((MenuHandle)a)
372 struct wxOpaqueWindowRef
374 wxOpaqueWindowRef( WindowRef ref
) { m_data
= ref
; }
375 operator WindowRef() { return m_data
; }
380 wxWindow
* wxFindControlFromMacControl(ControlRef inControl
) ;
381 wxTopLevelWindowMac
* wxFindWinFromMacWindow( WindowRef inWindow
) ;
382 wxMenu
* wxFindMenuFromMacMenu(MenuRef inMenuRef
) ;
384 extern wxWindow
* g_MacLastWindow
;
385 pascal OSStatus
wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler
, EventRef event
, void *data
) ;
386 Rect
wxMacGetBoundsForControl( wxWindow
* window
, const wxPoint
& pos
, const wxSize
&size
, bool adjustForOrigin
= true ) ;
393 m_controlRef
= NULL
;
396 wxMacControl( ControlRef control
)
398 m_controlRef
= control
;
400 wxMacControl( WXWidget control
)
402 m_controlRef
= (ControlRef
) control
;
404 virtual ~wxMacControl()
408 virtual void Dispose() ;
410 bool Ok() const { return GetControlRef() != NULL
; }
412 virtual ControlRef
* GetControlRefAddr() { return &m_controlRef
; }
413 virtual ControlRef
GetControlRef() const { return m_controlRef
; }
415 virtual void SetReference( SInt32 data
) ;
417 void operator= (ControlRef c) { m_controlRef = c ; }
418 operator ControlRef () { return m_controlRef; }
419 operator ControlRef * () { return &m_controlRef; }
421 // accessing data and values
423 virtual OSStatus
SetData( ControlPartCode inPartCode
, ResType inTag
, Size inSize
, const void * inData
) ;
424 virtual OSStatus
GetData( ControlPartCode inPartCode
, ResType inTag
, Size inBufferSize
, void * inOutBuffer
, Size
* outActualSize
) const ;
425 virtual OSStatus
GetDataSize( ControlPartCode inPartCode
, ResType inTag
, Size
* outActualSize
) const ;
426 virtual OSStatus
SendEvent( EventRef ref
, OptionBits inOptions
= 0 ) ;
427 virtual OSStatus
SendHICommand( HICommand
&command
, OptionBits inOptions
= 0 ) ;
429 virtual OSStatus
SendHICommand( UInt32 commandID
, OptionBits inOptions
= 0 ) ;
431 virtual SInt32
GetValue() const ;
432 virtual SInt32
GetMaximum() const ;
433 virtual SInt32
GetMinimum() const ;
435 virtual void SetValue( SInt32 v
) ;
436 virtual void SetMinimum( SInt32 v
) ;
437 virtual void SetMaximum( SInt32 v
) ;
439 virtual void SetValueAndRange( SInt32 value
, SInt32 minimum
, SInt32 maximum
) ;
440 virtual void SetRange( SInt32 minimum
, SInt32 maximum
) ;
442 virtual OSStatus
SetFocus( ControlFocusPart focusPart
) ;
443 virtual bool HasFocus() const ;
444 virtual bool NeedsFocusRect() const ;
448 Size
GetDataSize( ControlPartCode inPartCode
, ResType inTag
) const
451 verify_noerr( GetDataSize( inPartCode
, inTag
, &sz
) ) ;
454 template <typename T
> OSStatus
SetData( ControlPartCode inPartCode
, ResType inTag
, const T
*data
)
456 return SetData( inPartCode
, inTag
, sizeof( T
) , data
) ;
458 template <typename T
> OSStatus
SetData( ControlPartCode inPartCode
, ResType inTag
, const T
& data
)
460 return SetData( inPartCode
, inTag
, sizeof( T
) , &data
) ;
462 template <typename T
> OSStatus
GetData( ControlPartCode inPartCode
, ResType inTag
, T
*data
) const
465 return GetData( inPartCode
, inTag
, sizeof( T
) , data
, &dummy
) ;
467 template <typename T
> T
GetData( ControlPartCode inPartCode
, ResType inTag
) const
470 verify_noerr( GetData
<T
>( inPartCode
, inTag
, &value
) ) ;
474 // Flash the control for the specified amount of time
475 virtual void Flash( ControlPartCode part
, UInt32 ticks
= 8 ) ;
476 virtual void VisibilityChanged( bool shown
) ;
477 virtual void SetFont( const wxFont
& font
, const wxColour
& foreground
, long windowStyle
) ;
478 virtual void SetBackground( const wxBrush
&brush
) ;
479 virtual ControlPartCode
HandleKey( SInt16 keyCode
, SInt16 charCode
, EventModifiers modifiers
) ;
480 void SetActionProc( ControlActionUPP actionProc
) ;
481 void SetViewSize( SInt32 viewSize
) ;
482 SInt32
GetViewSize() const ;
484 virtual bool IsVisible() const ;
485 virtual void SetVisibility( bool visible
, bool redraw
) ;
486 virtual bool IsEnabled() const ;
487 virtual bool IsActive() const ;
488 virtual void Enable( bool enable
) ;
490 // invalidates this control and all children
491 virtual void InvalidateWithChildren() ;
492 virtual void SetDrawingEnabled( bool enable
) ;
493 virtual bool GetNeedsDisplay() const ;
494 virtual void SetNeedsDisplay( bool needsDisplay
, RgnHandle where
= NULL
) ;
496 virtual void ScrollRect( const wxRect
&rect
, int dx
, int dy
) ;
498 virtual void GetRect( Rect
*r
) ;
499 virtual void SetRect( Rect
*r
) ;
500 virtual void GetRectInWindowCoords( Rect
*r
) ;
501 virtual void GetBestRect( Rect
*r
) ;
502 virtual void SetTitle( const wxString
&title
) ;
503 // converts from Toplevel-Content relative to local
504 static void Convert( wxPoint
*pt
, wxMacControl
*convert
, wxMacControl
*to
) ;
506 virtual void GetFeatures( UInt32
*features
) ;
507 virtual OSStatus
GetRegion( ControlPartCode partCode
, RgnHandle region
) ;
508 virtual OSStatus
SetZOrder( bool above
, wxMacControl
* other
) ;
509 // to be moved into a databrowser subclass
511 virtual OSStatus
SetSelectionFlags( DataBrowserSelectionFlags
) ;
512 virtual OSStatus
AddListViewColumn( DataBrowserListViewColumnDesc
*columnDesc
,
513 DataBrowserTableViewColumnIndex position
) ;
514 virtual OSStatus
AutoSizeListViewColumns() ;
515 virtual OSStatus
SetHasScrollBars( bool horiz
, bool vert
) ;
516 virtual OSStatus
SetTableViewHiliteStyle( DataBrowserTableViewHiliteStyle hiliteStyle
) ;
517 virtual OSStatus
SetListViewHeaderBtnHeight(UInt16 height
) ;
518 virtual OSStatus
SetCallbacks(const DataBrowserCallbacks
* callbacks
) ;
519 virtual OSStatus
UpdateItems( DataBrowserItemID container
, UInt32 numItems
,
520 const DataBrowserItemID
* items
,
521 DataBrowserPropertyID preSortProperty
,
522 DataBrowserPropertyID propertyID
) ;
523 virtual OSStatus
AddItems( DataBrowserItemID container
, UInt32 numItems
,
524 const DataBrowserItemID
* items
,
525 DataBrowserPropertyID preSortProperty
) ;
526 virtual OSStatus
RemoveItems( DataBrowserItemID container
, UInt32 numItems
,
527 const DataBrowserItemID
* items
,
528 DataBrowserPropertyID preSortProperty
) ;
529 virtual OSStatus
RevealItem( DataBrowserItemID item
,
530 DataBrowserPropertyID propertyID
,
531 DataBrowserRevealOptions options
) ;
532 virtual OSStatus
GetSelectionAnchor( DataBrowserItemID
* first
, DataBrowserItemID
* last
) ;
533 virtual bool IsItemSelected( DataBrowserItemID item
) ;
534 virtual OSStatus
SetSelectedItems(UInt32 numItems
,
535 const DataBrowserItemID
* items
,
536 DataBrowserSetOption operation
) ;
538 // to be moved into a tab control class
540 virtual OSStatus
SetTabEnabled( SInt16 tabNo
, bool enable
) ;
542 ControlRef m_controlRef
;
547 #if wxMAC_USE_CORE_GRAPHICS
549 class WXDLLEXPORT wxMacCGPath
: public wxGraphicPath
551 DECLARE_NO_COPY_CLASS(wxMacCGPath
)
556 // Starts a new subpath at
557 void MoveToPoint( wxCoord x1
, wxCoord y1
) ;
558 void AddLineToPoint( wxCoord x1
, wxCoord y1
) ;
559 void AddRectangle( wxCoord x
, wxCoord y
, wxCoord w
, wxCoord h
) ;
560 void AddCircle( wxCoord x
, wxCoord y
, wxCoord r
) ;
562 // closes the current subpath
563 void CloseSubpath() ;
565 CGPathRef
GetPath() const ;
567 CGMutablePathRef m_path
;
570 class WXDLLEXPORT wxMacCGContext
: public wxGraphicContext
572 DECLARE_NO_COPY_CLASS(wxMacCGContext
)
575 wxMacCGContext( CGrafPtr port
) ;
576 wxMacCGContext( CGContextRef cgcontext
) ;
580 virtual void Clip( const wxRegion
®ion
) ;
581 virtual void StrokePath( const wxGraphicPath
*p
) ;
582 virtual void DrawPath( const wxGraphicPath
*p
, int fillStyle
= wxWINDING_RULE
) ;
583 virtual void FillPath( const wxGraphicPath
*p
, const wxColor
&fillColor
, int fillStyle
= wxWINDING_RULE
) ;
585 virtual wxGraphicPath
* CreatePath() ;
586 virtual void SetPen( const wxPen
&pen
) ;
587 virtual void SetBrush( const wxBrush
&brush
) ;
588 CGContextRef
GetNativeContext() ;
589 void SetNativeContext( CGContextRef cg
) ;
590 CGPathDrawingMode
GetDrawingMode() const { return m_mode
; }
592 CGContextRef m_cgContext
;
594 CGPathDrawingMode m_mode
;
599 CGColorSpaceRef
wxMacGetGenericRGBColorSpace(void) ;
601 #endif // wxMAC_USE_CORE_GRAPHICS
603 class WXDLLEXPORT wxBitmapRefData
: public wxGDIRefData
605 DECLARE_NO_COPY_CLASS(wxBitmapRefData
)
607 friend class WXDLLEXPORT wxIcon
;
608 friend class WXDLLEXPORT wxCursor
;
610 wxBitmapRefData(int width
, int height
, int depth
);
615 bool Ok() const { return m_ok
; }
616 void SetOk( bool isOk
) { m_ok
= isOk
; }
618 void SetWidth( int width
) { m_width
= width
; }
619 void SetHeight( int height
) { m_height
= height
; }
620 void SetDepth( int depth
) { m_depth
= depth
; }
622 int GetWidth() const { return m_width
; }
623 int GetHeight() const { return m_height
; }
624 int GetDepth() const { return m_depth
; }
626 void *GetRawAccess() const ;
627 void *BeginRawAccess() ;
628 void EndRawAccess() ;
630 bool HasAlpha() const { return m_hasAlpha
; }
631 void UseAlpha( bool useAlpha
) ;
635 wxPalette m_bitmapPalette
;
636 #endif // wxUSE_PALETTE
638 wxMask
* m_bitmapMask
; // Optional mask
639 #if wxMAC_USE_CORE_GRAPHICS
640 CGImageRef
CGImageCreate() const ;
642 GWorldPtr
GetHBITMAP(GWorldPtr
* mask
= NULL
) const ;
643 void UpdateAlphaMask() const ;
646 bool Create(int width
, int height
, int depth
) ;
654 wxMemoryBuffer m_memBuf
;
655 int m_rawAccessCount
;
657 #if wxMAC_USE_CORE_GRAPHICS
658 mutable CGImageRef m_cgImageRef
;
661 GWorldPtr m_hMaskBitmap
;
662 wxMemoryBuffer m_maskMemBuf
;
663 int m_maskBytesPerRow
;
667 #define M_BITMAPDATA ((wxBitmapRefData *)m_refData)
669 class WXDLLEXPORT wxIconRefData
: public wxGDIRefData
673 wxIconRefData( WXHICON
) ;
674 virtual ~wxIconRefData() { Free(); }
678 WXHICON
GetHICON() const { return (WXHICON
) m_iconRef
; }
685 //---------------------------------------------------------------------------
686 // wxMac string conversions
687 //---------------------------------------------------------------------------
689 void wxMacSetupConverters() ;
690 void wxMacCleanupConverters() ;
692 void wxMacStringToPascal( const wxString
&from
, StringPtr to
) ;
693 wxString
wxMacMakeStringFromPascal( ConstStringPtr from
) ;
697 ControlRef
wxMacFindControlUnderMouse( Point location
, WindowRef window
, ControlPartCode
*outPart
) ;
701 wxString
wxMacFSRefToPath( const FSRef
*fsRef
, CFStringRef additionalPathComponent
= NULL
) ;
702 OSStatus
wxMacPathToFSRef( const wxString
&path
, FSRef
*fsRef
) ;
703 wxString
wxMacHFSUniStrToString( ConstHFSUniStr255Param uniname
) ;