]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/mac/carbon/uma.h
Solaris /usr/bin/tr requires [] around character ranges
[wxWidgets.git] / include / wx / mac / carbon / uma.h
... / ...
CommitLineData
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
15#include "wx/mac/private.h"
16
17void UMAInitToolbox( UInt16 inMoreMastersCalls, bool isEmbedded) ;
18long UMAGetSystemVersion() ;
19
20// process manager
21
22long UMAGetProcessMode() ;
23bool UMAGetProcessModeDoesActivateOnFGSwitch() ;
24
25#if wxUSE_GUI
26
27// menu manager
28
29MenuRef UMANewMenu( SInt16 id , const wxString& title , wxFontEncoding encoding) ;
30void UMASetMenuTitle( MenuRef menu , const wxString& title , wxFontEncoding encoding) ;
31void UMAEnableMenuItem( MenuRef inMenu , MenuItemIndex item , bool enable ) ;
32
33void UMAAppendSubMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , SInt16 submenuid ) ;
34void UMAInsertSubMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , MenuItemIndex item , SInt16 submenuid ) ;
35void UMAAppendMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , wxAcceleratorEntry *entry = NULL ) ;
36void UMAInsertMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , MenuItemIndex item , wxAcceleratorEntry *entry = NULL ) ;
37void UMASetMenuItemShortcut( MenuRef menu , MenuItemIndex item , wxAcceleratorEntry *entry ) ;
38
39void UMASetMenuItemText( MenuRef menu, MenuItemIndex item, const wxString& title , wxFontEncoding encoding ) ;
40
41// quickdraw
42
43void UMAShowWatchCursor() ;
44
45// control hierarchy
46
47Rect * UMAGetControlBoundsInWindowCoords(ControlRef theControl, Rect *bounds) ;
48
49// events
50
51void UMAUpdateControls( WindowPtr inWindow , RgnHandle inRgn ) ;
52OSErr UMAGetRootControl( WindowPtr inWindow , ControlRef *outControl ) ;
53
54void UMAHighlightAndActivateWindow( WindowRef inWindowRef , bool inActivate ) ;
55
56// Retrieves the Help menu handle. Warning: As a side-effect this functions also
57// creates the Help menu if it didn't exist yet.
58OSStatus UMAGetHelpMenu(
59 MenuRef * outHelpMenu,
60 MenuItemIndex * outFirstCustomItemIndex); /* can be NULL */
61
62// Same as UMAGetHelpMenu, but doesn't create the Help menu if UMAGetHelpMenu hasn't been called yet.
63OSStatus UMAGetHelpMenuDontCreate(
64 MenuRef * outHelpMenu,
65 MenuItemIndex * outFirstCustomItemIndex); /* can be NULL */
66
67// Appearance Drawing
68
69#define GetWindowUpdateRgn( inWindow , updateRgn ) GetWindowRegion( inWindow , kWindowUpdateRgn, updateRgn )
70
71// Quartz
72
73CGDataProviderRef UMACGDataProviderCreateWithCFData( CFDataRef data );
74CGDataConsumerRef UMACGDataConsumerCreateWithCFData( CFMutableDataRef data );
75
76#endif // wxUSE_GUI
77
78#endif