]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/carbon/uma.h
use different strings for wchar_t and UTF-8-based Unicode builds
[wxWidgets.git] / include / wx / osx / carbon / uma.h
CommitLineData
5c6eb3a8
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/mac/carbon/uma.h
3// Purpose: Universal MacOS API
4// Author: Stefan Csomor
5// Modified by:
6// Created: 03/02/99
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef H_UMA
13#define H_UMA
14
ef0e9220 15#include "wx/osx/private.h"
5c6eb3a8 16
5c6eb3a8
SC
17long UMAGetSystemVersion() ;
18
19#if wxUSE_GUI
20
21// menu manager
22
23MenuRef UMANewMenu( SInt16 id , const wxString& title , wxFontEncoding encoding) ;
24void UMASetMenuTitle( MenuRef menu , const wxString& title , wxFontEncoding encoding) ;
25void UMAEnableMenuItem( MenuRef inMenu , MenuItemIndex item , bool enable ) ;
26
27void UMAAppendSubMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , SInt16 submenuid ) ;
28void UMAInsertSubMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , MenuItemIndex item , SInt16 submenuid ) ;
29void UMAAppendMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , wxAcceleratorEntry *entry = NULL ) ;
30void UMAInsertMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , MenuItemIndex item , wxAcceleratorEntry *entry = NULL ) ;
31void UMASetMenuItemShortcut( MenuRef menu , MenuItemIndex item , wxAcceleratorEntry *entry ) ;
32
33void UMASetMenuItemText( MenuRef menu, MenuItemIndex item, const wxString& title , wxFontEncoding encoding ) ;
34
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.
37OSStatus UMAGetHelpMenu(
38 MenuRef * outHelpMenu,
39 MenuItemIndex * outFirstCustomItemIndex); /* can be NULL */
40
41// Same as UMAGetHelpMenu, but doesn't create the Help menu if UMAGetHelpMenu hasn't been called yet.
42OSStatus UMAGetHelpMenuDontCreate(
43 MenuRef * outHelpMenu,
44 MenuItemIndex * outFirstCustomItemIndex); /* can be NULL */
45
46#endif // wxUSE_GUI
47
48#endif