]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/carbon/uma.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/carbon/uma.h
3 // Purpose: Universal MacOS API
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/osx/private.h"
17 long UMAGetSystemVersion() ;
23 MenuRef
UMANewMenu( SInt16 id
, const wxString
& title
, wxFontEncoding encoding
) ;
24 void UMASetMenuTitle( MenuRef menu
, const wxString
& title
, wxFontEncoding encoding
) ;
25 void UMAEnableMenuItem( MenuRef inMenu
, MenuItemIndex item
, bool enable
) ;
27 void UMAAppendSubMenuItem( MenuRef menu
, const wxString
& title
, wxFontEncoding encoding
, SInt16 submenuid
) ;
28 void UMAInsertSubMenuItem( MenuRef menu
, const wxString
& title
, wxFontEncoding encoding
, MenuItemIndex item
, SInt16 submenuid
) ;
29 void UMAAppendMenuItem( MenuRef menu
, const wxString
& title
, wxFontEncoding encoding
, wxAcceleratorEntry
*entry
= NULL
) ;
30 void UMAInsertMenuItem( MenuRef menu
, const wxString
& title
, wxFontEncoding encoding
, MenuItemIndex item
, wxAcceleratorEntry
*entry
= NULL
) ;
31 void UMASetMenuItemShortcut( MenuRef menu
, MenuItemIndex item
, wxAcceleratorEntry
*entry
) ;
33 void UMASetMenuItemText( MenuRef menu
, MenuItemIndex item
, const wxString
& title
, wxFontEncoding encoding
) ;
35 // Retrieves the Help menu handle. Warning: As a side-effect this functions also
36 // creates the Help menu if it didn't exist yet.
37 OSStatus
UMAGetHelpMenu(
38 MenuRef
* outHelpMenu
,
39 MenuItemIndex
* outFirstCustomItemIndex
); /* can be NULL */
41 // Same as UMAGetHelpMenu, but doesn't create the Help menu if UMAGetHelpMenu hasn't been called yet.
42 OSStatus
UMAGetHelpMenuDontCreate(
43 MenuRef
* outHelpMenu
,
44 MenuItemIndex
* outFirstCustomItemIndex
); /* can be NULL */