X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4e41ce37ac7bcb43663241439cee68ebeff7ffc..4c3ebca927cea2742ec128c9c3ef3676d1ecae01:/include/wx/mac/private.h?ds=inline diff --git a/include/wx/mac/private.h b/include/wx/mac/private.h index 2f2c4c6345..5ebbdf1857 100644 --- a/include/wx/mac/private.h +++ b/include/wx/mac/private.h @@ -33,6 +33,8 @@ #error "please update to Apple's lastest universal headers from http://developer.apple.com/sdk/" #endif +#if wxUSE_GUI + #include "wx/window.h" class wxMacPortStateHelper @@ -107,6 +109,8 @@ private: // app.h bool wxMacConvertEventToRecord( EventRef event , EventRecord *rec) ; +#endif // wxUSE_GUI + // filefn.h WXDLLEXPORT wxString wxMacFSSpec2MacFilename( const FSSpec *spec ) ; WXDLLEXPORT void wxMacFilename2FSSpec( const char *path , FSSpec *spec ) ; @@ -124,6 +128,8 @@ WXDLLEXPORT wxString wxMacFindFolder(short vRefNum, OSType folderType, Boolean createFolder); +#if wxUSE_GUI + GWorldPtr wxMacCreateGWorld( int width , int height , int depth ) ; void wxMacDestroyGWorld( GWorldPtr gw ) ; PicHandle wxMacCreatePict( GWorldPtr gw , GWorldPtr mask = NULL ) ; @@ -143,6 +149,8 @@ void wxMacCreateBitmapButton( ControlButtonContentInfo*info , const wxBitmap& bi #define MAC_WXPOINTPTR(a) ((Point*)a) #define MAC_WXHMENU(a) ((MenuHandle)a) +#endif // wxUSE_GUI + //--------------------------------------------------------------------------- // wxMac string conversions //--------------------------------------------------------------------------- @@ -293,7 +301,7 @@ inline CFStringRef wxMacStringToCFString( const wxString &str ) #endif //TARGET_CARBON -#endif +#endif // 0 #endif // _WX_PRIVATE_H_