]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/carbon/uma.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / osx / carbon / uma.h
CommitLineData
5c6eb3a8 1/////////////////////////////////////////////////////////////////////////////
233f5738 2// Name: wx/osx/carbon/uma.h
5c6eb3a8
SC
3// Purpose: Universal MacOS API
4// Author: Stefan Csomor
5// Modified by:
6// Created: 03/02/99
5c6eb3a8
SC
7// Copyright: (c) Stefan Csomor
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef H_UMA
12#define H_UMA
13
ef0e9220 14#include "wx/osx/private.h"
5c6eb3a8 15
5c6eb3a8
SC
16#if wxUSE_GUI
17
18// menu manager
19
20MenuRef UMANewMenu( SInt16 id , const wxString& title , wxFontEncoding encoding) ;
21void UMASetMenuTitle( MenuRef menu , const wxString& title , wxFontEncoding encoding) ;
22void UMAEnableMenuItem( MenuRef inMenu , MenuItemIndex item , bool enable ) ;
23
5c6eb3a8
SC
24void UMAAppendMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , wxAcceleratorEntry *entry = NULL ) ;
25void UMAInsertMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , MenuItemIndex item , wxAcceleratorEntry *entry = NULL ) ;
26void UMASetMenuItemShortcut( MenuRef menu , MenuItemIndex item , wxAcceleratorEntry *entry ) ;
27
28void UMASetMenuItemText( MenuRef menu, MenuItemIndex item, const wxString& title , wxFontEncoding encoding ) ;
29
30// Retrieves the Help menu handle. Warning: As a side-effect this functions also
31// creates the Help menu if it didn't exist yet.
32OSStatus UMAGetHelpMenu(
33 MenuRef * outHelpMenu,
34 MenuItemIndex * outFirstCustomItemIndex); /* can be NULL */
35
36// Same as UMAGetHelpMenu, but doesn't create the Help menu if UMAGetHelpMenu hasn't been called yet.
37OSStatus UMAGetHelpMenuDontCreate(
38 MenuRef * outHelpMenu,
39 MenuItemIndex * outFirstCustomItemIndex); /* can be NULL */
40
41#endif // wxUSE_GUI
42
43#endif