X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..0d6fba37931bde89e7161ff173e2f818e4b15ac0:/include/wx/mac/carbon/uma.h?ds=sidebyside diff --git a/include/wx/mac/carbon/uma.h b/include/wx/mac/carbon/uma.h index 91f023fc99..641b26eb14 100644 --- a/include/wx/mac/carbon/uma.h +++ b/include/wx/mac/carbon/uma.h @@ -1,12 +1,12 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: uma.h +// Name: wx/mac/carbon/uma.h // Purpose: Universal MacOS API // Author: Stefan Csomor // Modified by: // Created: 03/02/99 -// RCS-ID: $Id: +// RCS-ID: $Id$ // Copyright: (c) Stefan Csomor -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef H_UMA @@ -17,14 +17,9 @@ void UMAInitToolbox( UInt16 inMoreMastersCalls, bool isEmbedded) ; void UMACleanupToolbox() ; long UMAGetSystemVersion() ; -bool UMAHasAppearance() ; -long UMAGetAppearanceVersion() ; -bool UMAHasWindowManager() ; -long UMAGetWindowManagerAttr() ; -bool UMAHasAquaLayout() ; -bool UMASystemIsInitialized() ; -void UMASetSystemIsInitialized(bool val); +WXDLLIMPEXP_BASE bool UMASystemIsInitialized(); +WXDLLIMPEXP_BASE void UMASetSystemIsInitialized(bool val); // process manager @@ -55,7 +50,7 @@ void UMAShowArrowCursor() ; // window manager -GrafPtr UMAGetWindowPort( WindowRef inWindowRef ) ; +WXDLLIMPEXP_BASE GrafPtr UMAGetWindowPort( WindowRef inWindowRef ) ; void UMADisposeWindow( WindowRef inWindowRef ) ; void UMASetWTitle( WindowRef inWindowRef , const wxString& title , wxFontEncoding encoding) ; @@ -99,19 +94,27 @@ bool UMAIsWindowModal( WindowRef inWindow ) ; void UMAHighlightAndActivateWindow( WindowRef inWindowRef , bool inActivate ) ; +// Retrieves the Help menu handle. Warning: As a side-effect this functions also +// creates the Help menu if it didn't exist yet. OSStatus UMAGetHelpMenu( MenuRef * outHelpMenu, MenuItemIndex * outFirstCustomItemIndex); /* can be NULL */ +// Same as UMAGetHelpMenu, but doesn't create the Help menu if UMAGetHelpMenu hasn't been called yet. +OSStatus UMAGetHelpMenuDontCreate( + MenuRef * outHelpMenu, + MenuItemIndex * outFirstCustomItemIndex); /* can be NULL */ + // Appearance Drawing OSStatus UMADrawThemePlacard( const Rect *inRect , ThemeDrawState inState ) ; -// Clipboard support +#define GetWindowUpdateRgn( inWindow , updateRgn ) GetWindowRegion( inWindow , kWindowUpdateRgn, updateRgn ) -OSStatus UMAPutScrap( Size size , OSType type , void *data ) ; +// Quartz -#define GetWindowUpdateRgn( inWindow , updateRgn ) GetWindowRegion( inWindow , kWindowUpdateRgn, updateRgn ) +CGDataProviderRef UMACGDataProviderCreateWithCFData( CFDataRef data ); +CGDataConsumerRef UMACGDataConsumerCreateWithCFData( CFMutableDataRef data ); #endif // wxUSE_GUI