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 PicHandle
wxMacCreatePicHandle( const wxBitmap
&bmp
) ;
358 IconRef
wxMacCreateIconRef(const wxBitmap
& bmp
) ;
359 void wxMacCreateBitmapButton( ControlButtonContentInfo
*info
, const wxBitmap
& bitmap
, int forceType
= 0 ) ;
360 void wxMacReleaseBitmapButton( ControlButtonContentInfo
*info
) ;
362 #define MAC_WXCOLORREF(a) (*((RGBColor*)&(a)))
363 #define MAC_WXHBITMAP(a) (GWorldPtr(a))
364 #define MAC_WXHMETAFILE(a) (PicHandle(a))
365 #define MAC_WXHICON(a) (IconRef(a))
366 #define MAC_WXHCURSOR(a) (CursHandle(a))
367 #define MAC_WXHRGN(a) (RgnHandle(a))
368 #define MAC_WXHWND(a) (WindowPtr(a))
369 #define MAC_WXRECPTR(a) ((Rect*)a)
370 #define MAC_WXPOINTPTR(a) ((Point*)a)
371 #define MAC_WXHMENU(a) ((MenuHandle)a)
373 struct wxOpaqueWindowRef
375 wxOpaqueWindowRef( WindowRef ref
) { m_data
= ref
; }
376 operator WindowRef() { return m_data
; }
381 wxWindow
* wxFindControlFromMacControl(ControlRef inControl
) ;
382 wxTopLevelWindowMac
* wxFindWinFromMacWindow( WindowRef inWindow
) ;
383 wxMenu
* wxFindMenuFromMacMenu(MenuRef inMenuRef
) ;
385 extern wxWindow
* g_MacLastWindow
;
386 pascal OSStatus
wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler
, EventRef event
, void *data
) ;
387 Rect
wxMacGetBoundsForControl( wxWindow
* window
, const wxPoint
& pos
, const wxSize
&size
, bool adjustForOrigin
= true ) ;
394 m_controlRef
= NULL
;
397 wxMacControl( ControlRef control
)
399 m_controlRef
= control
;
401 wxMacControl( WXWidget control
)
403 m_controlRef
= (ControlRef
) control
;
405 virtual ~wxMacControl()
409 virtual void Dispose() ;
411 bool Ok() const { return GetControlRef() != NULL
; }
413 virtual ControlRef
* GetControlRefAddr() { return &m_controlRef
; }
414 virtual ControlRef
GetControlRef() const { return m_controlRef
; }
416 virtual void SetReference( SInt32 data
) ;
418 void operator= (ControlRef c) { m_controlRef = c ; }
419 operator ControlRef () { return m_controlRef; }
420 operator ControlRef * () { return &m_controlRef; }
422 // accessing data and values
424 virtual OSStatus
SetData( ControlPartCode inPartCode
, ResType inTag
, Size inSize
, const void * inData
) ;
425 virtual OSStatus
GetData( ControlPartCode inPartCode
, ResType inTag
, Size inBufferSize
, void * inOutBuffer
, Size
* outActualSize
) const ;
426 virtual OSStatus
GetDataSize( ControlPartCode inPartCode
, ResType inTag
, Size
* outActualSize
) const ;
427 virtual OSStatus
SendEvent( EventRef ref
, OptionBits inOptions
= 0 ) ;
428 virtual OSStatus
SendHICommand( HICommand
&command
, OptionBits inOptions
= 0 ) ;
430 virtual OSStatus
SendHICommand( UInt32 commandID
, OptionBits inOptions
= 0 ) ;
432 virtual SInt32
GetValue() const ;
433 virtual SInt32
GetMaximum() const ;
434 virtual SInt32
GetMinimum() const ;
436 virtual void SetValue( SInt32 v
) ;
437 virtual void SetMinimum( SInt32 v
) ;
438 virtual void SetMaximum( SInt32 v
) ;
440 virtual void SetValueAndRange( SInt32 value
, SInt32 minimum
, SInt32 maximum
) ;
441 virtual void SetRange( SInt32 minimum
, SInt32 maximum
) ;
443 virtual OSStatus
SetFocus( ControlFocusPart focusPart
) ;
444 virtual bool HasFocus() const ;
445 virtual bool NeedsFocusRect() const ;
449 Size
GetDataSize( ControlPartCode inPartCode
, ResType inTag
) const
452 verify_noerr( GetDataSize( inPartCode
, inTag
, &sz
) ) ;
455 template <typename T
> OSStatus
SetData( ControlPartCode inPartCode
, ResType inTag
, const T
*data
)
457 return SetData( inPartCode
, inTag
, sizeof( T
) , data
) ;
459 template <typename T
> OSStatus
SetData( ControlPartCode inPartCode
, ResType inTag
, const T
& data
)
461 return SetData( inPartCode
, inTag
, sizeof( T
) , &data
) ;
463 template <typename T
> OSStatus
GetData( ControlPartCode inPartCode
, ResType inTag
, T
*data
) const
466 return GetData( inPartCode
, inTag
, sizeof( T
) , data
, &dummy
) ;
468 template <typename T
> T
GetData( ControlPartCode inPartCode
, ResType inTag
) const
471 verify_noerr( GetData
<T
>( inPartCode
, inTag
, &value
) ) ;
475 // Flash the control for the specified amount of time
476 virtual void Flash( ControlPartCode part
, UInt32 ticks
= 8 ) ;
477 virtual void VisibilityChanged( bool shown
) ;
478 virtual void SetFont( const wxFont
& font
, const wxColour
& foreground
, long windowStyle
) ;
479 virtual void SetBackground( const wxBrush
&brush
) ;
480 virtual ControlPartCode
HandleKey( SInt16 keyCode
, SInt16 charCode
, EventModifiers modifiers
) ;
481 void SetActionProc( ControlActionUPP actionProc
) ;
482 void SetViewSize( SInt32 viewSize
) ;
483 SInt32
GetViewSize() const ;
485 virtual bool IsVisible() const ;
486 virtual void SetVisibility( bool visible
, bool redraw
) ;
487 virtual bool IsEnabled() const ;
488 virtual bool IsActive() const ;
489 virtual void Enable( bool enable
) ;
491 // invalidates this control and all children
492 virtual void InvalidateWithChildren() ;
493 virtual void SetDrawingEnabled( bool enable
) ;
494 virtual bool GetNeedsDisplay() const ;
495 virtual void SetNeedsDisplay( bool needsDisplay
, RgnHandle where
= NULL
) ;
497 virtual void ScrollRect( const wxRect
&rect
, int dx
, int dy
) ;
499 virtual void GetRect( Rect
*r
) ;
500 virtual void SetRect( Rect
*r
) ;
501 virtual void GetRectInWindowCoords( Rect
*r
) ;
502 virtual void GetBestRect( Rect
*r
) ;
503 virtual void SetTitle( const wxString
&title
) ;
504 // converts from Toplevel-Content relative to local
505 static void Convert( wxPoint
*pt
, wxMacControl
*convert
, wxMacControl
*to
) ;
507 virtual void GetFeatures( UInt32
*features
) ;
508 virtual OSStatus
GetRegion( ControlPartCode partCode
, RgnHandle region
) ;
509 virtual OSStatus
SetZOrder( bool above
, wxMacControl
* other
) ;
510 // to be moved into a databrowser subclass
512 virtual OSStatus
SetSelectionFlags( DataBrowserSelectionFlags
) ;
513 virtual OSStatus
AddListViewColumn( DataBrowserListViewColumnDesc
*columnDesc
,
514 DataBrowserTableViewColumnIndex position
) ;
515 virtual OSStatus
AutoSizeListViewColumns() ;
516 virtual OSStatus
SetHasScrollBars( bool horiz
, bool vert
) ;
517 virtual OSStatus
SetTableViewHiliteStyle( DataBrowserTableViewHiliteStyle hiliteStyle
) ;
518 virtual OSStatus
SetListViewHeaderBtnHeight(UInt16 height
) ;
519 virtual OSStatus
SetCallbacks(const DataBrowserCallbacks
* callbacks
) ;
520 virtual OSStatus
UpdateItems( DataBrowserItemID container
, UInt32 numItems
,
521 const DataBrowserItemID
* items
,
522 DataBrowserPropertyID preSortProperty
,
523 DataBrowserPropertyID propertyID
) ;
524 virtual OSStatus
AddItems( DataBrowserItemID container
, UInt32 numItems
,
525 const DataBrowserItemID
* items
,
526 DataBrowserPropertyID preSortProperty
) ;
527 virtual OSStatus
RemoveItems( DataBrowserItemID container
, UInt32 numItems
,
528 const DataBrowserItemID
* items
,
529 DataBrowserPropertyID preSortProperty
) ;
530 virtual OSStatus
RevealItem( DataBrowserItemID item
,
531 DataBrowserPropertyID propertyID
,
532 DataBrowserRevealOptions options
) ;
533 virtual OSStatus
GetSelectionAnchor( DataBrowserItemID
* first
, DataBrowserItemID
* last
) ;
534 virtual bool IsItemSelected( DataBrowserItemID item
) ;
535 virtual OSStatus
SetSelectedItems(UInt32 numItems
,
536 const DataBrowserItemID
* items
,
537 DataBrowserSetOption operation
) ;
539 // to be moved into a tab control class
541 virtual OSStatus
SetTabEnabled( SInt16 tabNo
, bool enable
) ;
543 ControlRef m_controlRef
;
548 #if wxMAC_USE_CORE_GRAPHICS
550 class WXDLLEXPORT wxMacCGPath
: public wxGraphicPath
552 DECLARE_NO_COPY_CLASS(wxMacCGPath
)
557 // Starts a new subpath at
558 void MoveToPoint( wxCoord x1
, wxCoord y1
) ;
559 void AddLineToPoint( wxCoord x1
, wxCoord y1
) ;
560 void AddRectangle( wxCoord x
, wxCoord y
, wxCoord w
, wxCoord h
) ;
561 void AddCircle( wxCoord x
, wxCoord y
, wxCoord r
) ;
563 // closes the current subpath
564 void CloseSubpath() ;
566 CGPathRef
GetPath() const ;
568 CGMutablePathRef m_path
;
571 class WXDLLEXPORT wxMacCGContext
: public wxGraphicContext
573 DECLARE_NO_COPY_CLASS(wxMacCGContext
)
576 wxMacCGContext( CGrafPtr port
) ;
577 wxMacCGContext( CGContextRef cgcontext
) ;
581 virtual void Clip( const wxRegion
®ion
) ;
582 virtual void StrokePath( const wxGraphicPath
*p
) ;
583 virtual void DrawPath( const wxGraphicPath
*p
, int fillStyle
= wxWINDING_RULE
) ;
584 virtual void FillPath( const wxGraphicPath
*p
, const wxColor
&fillColor
, int fillStyle
= wxWINDING_RULE
) ;
586 virtual wxGraphicPath
* CreatePath() ;
587 virtual void SetPen( const wxPen
&pen
) ;
588 virtual void SetBrush( const wxBrush
&brush
) ;
589 CGContextRef
GetNativeContext() ;
590 void SetNativeContext( CGContextRef cg
) ;
591 CGPathDrawingMode
GetDrawingMode() const { return m_mode
; }
593 CGContextRef m_cgContext
;
595 CGPathDrawingMode m_mode
;
600 CGColorSpaceRef
wxMacGetGenericRGBColorSpace(void) ;
601 void wxMacMemoryBufferReleaseProc(void *info
, const void *data
, size_t size
) ;
603 #endif // wxMAC_USE_CORE_GRAPHICS
605 class WXDLLEXPORT wxBitmapRefData
: public wxGDIRefData
607 DECLARE_NO_COPY_CLASS(wxBitmapRefData
)
609 friend class WXDLLEXPORT wxIcon
;
610 friend class WXDLLEXPORT wxCursor
;
612 wxBitmapRefData(int width
, int height
, int depth
);
617 bool Ok() const { return m_ok
; }
618 void SetOk( bool isOk
) { m_ok
= isOk
; }
620 void SetWidth( int width
) { m_width
= width
; }
621 void SetHeight( int height
) { m_height
= height
; }
622 void SetDepth( int depth
) { m_depth
= depth
; }
624 int GetWidth() const { return m_width
; }
625 int GetHeight() const { return m_height
; }
626 int GetDepth() const { return m_depth
; }
628 void *GetRawAccess() const ;
629 void *BeginRawAccess() ;
630 void EndRawAccess() ;
632 bool HasAlpha() const { return m_hasAlpha
; }
633 void UseAlpha( bool useAlpha
) ;
637 wxPalette m_bitmapPalette
;
638 #endif // wxUSE_PALETTE
640 wxMask
* m_bitmapMask
; // Optional mask
641 #if wxMAC_USE_CORE_GRAPHICS
642 CGImageRef
CGImageCreate() const ;
644 GWorldPtr
GetHBITMAP(GWorldPtr
* mask
= NULL
) const ;
645 void UpdateAlphaMask() const ;
648 bool Create(int width
, int height
, int depth
) ;
656 wxMemoryBuffer m_memBuf
;
657 int m_rawAccessCount
;
659 #if wxMAC_USE_CORE_GRAPHICS
660 mutable CGImageRef m_cgImageRef
;
663 GWorldPtr m_hMaskBitmap
;
664 wxMemoryBuffer m_maskMemBuf
;
665 int m_maskBytesPerRow
;
668 #define M_BITMAPDATA ((wxBitmapRefData *)m_refData)
670 class WXDLLEXPORT wxIconRefData
: public wxGDIRefData
674 wxIconRefData( WXHICON
) ;
675 virtual ~wxIconRefData() { Free(); }
679 WXHICON
GetHICON() const { return (WXHICON
) m_iconRef
; }
686 //---------------------------------------------------------------------------
687 // wxMac string conversions
688 //---------------------------------------------------------------------------
690 void wxMacSetupConverters() ;
691 void wxMacCleanupConverters() ;
693 void wxMacStringToPascal( const wxString
&from
, StringPtr to
) ;
694 wxString
wxMacMakeStringFromPascal( ConstStringPtr from
) ;
698 ControlRef
wxMacFindControlUnderMouse( Point location
, WindowRef window
, ControlPartCode
*outPart
) ;
702 wxString
wxMacFSRefToPath( const FSRef
*fsRef
, CFStringRef additionalPathComponent
= NULL
) ;
703 OSStatus
wxMacPathToFSRef( const wxString
&path
, FSRef
*fsRef
) ;
704 wxString
wxMacHFSUniStrToString( ConstHFSUniStr255Param uniname
) ;