]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/uma.h
check that the version of __sync_sub_and_fetch that returns a value is supported...
[wxWidgets.git] / include / wx / mac / carbon / uma.h
CommitLineData
8cf73271 1/////////////////////////////////////////////////////////////////////////////
1c4e8f38 2// Name: wx/mac/carbon/uma.h
8cf73271
SC
3// Purpose: Universal MacOS API
4// Author: Stefan Csomor
5// Modified by:
6// Created: 03/02/99
1c4e8f38 7// RCS-ID: $Id$
8cf73271 8// Copyright: (c) Stefan Csomor
65571936 9// Licence: wxWindows licence
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef H_UMA
13#define H_UMA
14
15#include "wx/mac/private.h"
16
17void UMAInitToolbox( UInt16 inMoreMastersCalls, bool isEmbedded) ;
8cf73271 18long UMAGetSystemVersion() ;
8cf73271 19
8cf73271
SC
20#if wxUSE_GUI
21
22// menu manager
23
24MenuRef UMANewMenu( SInt16 id , const wxString& title , wxFontEncoding encoding) ;
25void UMASetMenuTitle( MenuRef menu , const wxString& title , wxFontEncoding encoding) ;
8cf73271
SC
26void UMAEnableMenuItem( MenuRef inMenu , MenuItemIndex item , bool enable ) ;
27
28void UMAAppendSubMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , SInt16 submenuid ) ;
29void UMAInsertSubMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , MenuItemIndex item , SInt16 submenuid ) ;
30void UMAAppendMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , wxAcceleratorEntry *entry = NULL ) ;
31void UMAInsertMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , MenuItemIndex item , wxAcceleratorEntry *entry = NULL ) ;
32void UMASetMenuItemShortcut( MenuRef menu , MenuItemIndex item , wxAcceleratorEntry *entry ) ;
33
34void UMASetMenuItemText( MenuRef menu, MenuItemIndex item, const wxString& title , wxFontEncoding encoding ) ;
35
4dd25308
VZ
36// Retrieves the Help menu handle. Warning: As a side-effect this functions also
37// creates the Help menu if it didn't exist yet.
8cf73271
SC
38OSStatus UMAGetHelpMenu(
39 MenuRef * outHelpMenu,
40 MenuItemIndex * outFirstCustomItemIndex); /* can be NULL */
41
4dd25308
VZ
42// Same as UMAGetHelpMenu, but doesn't create the Help menu if UMAGetHelpMenu hasn't been called yet.
43OSStatus UMAGetHelpMenuDontCreate(
44 MenuRef * outHelpMenu,
45 MenuItemIndex * outFirstCustomItemIndex); /* can be NULL */
46
8cf73271
SC
47#endif // wxUSE_GUI
48
49#endif