]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/carbon/uma.h
814e5b625334eb9b5a9fbfbac9a99340215072f0
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/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"
21 MenuRef
UMANewMenu( SInt16 id
, const wxString
& title
, wxFontEncoding encoding
) ;
22 void UMASetMenuTitle( MenuRef menu
, const wxString
& title
, wxFontEncoding encoding
) ;
23 void UMAEnableMenuItem( MenuRef inMenu
, MenuItemIndex item
, bool enable
) ;
25 void UMAAppendMenuItem( MenuRef menu
, const wxString
& title
, wxFontEncoding encoding
, wxAcceleratorEntry
*entry
= NULL
) ;
26 void UMAInsertMenuItem( MenuRef menu
, const wxString
& title
, wxFontEncoding encoding
, MenuItemIndex item
, wxAcceleratorEntry
*entry
= NULL
) ;
27 void UMASetMenuItemShortcut( MenuRef menu
, MenuItemIndex item
, wxAcceleratorEntry
*entry
) ;
29 void UMASetMenuItemText( MenuRef menu
, MenuItemIndex item
, const wxString
& title
, wxFontEncoding encoding
) ;
31 // Retrieves the Help menu handle. Warning: As a side-effect this functions also
32 // creates the Help menu if it didn't exist yet.
33 OSStatus
UMAGetHelpMenu(
34 MenuRef
* outHelpMenu
,
35 MenuItemIndex
* outFirstCustomItemIndex
); /* can be NULL */
37 // Same as UMAGetHelpMenu, but doesn't create the Help menu if UMAGetHelpMenu hasn't been called yet.
38 OSStatus
UMAGetHelpMenuDontCreate(
39 MenuRef
* outHelpMenu
,
40 MenuItemIndex
* outFirstCustomItemIndex
); /* can be NULL */