-void UMADisposeWindow( WindowRef inWindowRef )
-{
- wxASSERT( inWindowRef != NULL ) ;
- DisposeWindow( inWindowRef ) ;
-}
-
-void UMASetWTitleC( WindowRef inWindowRef , const char *title )
-{
- Str255 ptitle ;
- strncpy( (char*)ptitle , title , 96 ) ;
- ptitle[96] = 0 ;
- c2pstr( (char*)ptitle ) ;
- SetWTitle( inWindowRef , ptitle ) ;
-}
-void UMAGetWTitleC( WindowRef inWindowRef , char *title )
-{
- GetWTitle( inWindowRef , (unsigned char*)title ) ;
- p2cstr( (unsigned char*)title ) ;
-}
-
-void UMAShowWindow( WindowRef inWindowRef )
-{
- ShowWindow( inWindowRef ) ;
-}
-
-void UMAHideWindow( WindowRef inWindowRef )
-{
- HideWindow( inWindowRef) ;
-}
-
-void UMASelectWindow( WindowRef inWindowRef )
-{
- SelectWindow( inWindowRef ) ;
-}
-
-void UMABringToFront( WindowRef inWindowRef )
-{
- BringToFront( inWindowRef ) ;
-}
-
-void UMASendBehind( WindowRef inWindowRef , WindowRef behindWindow )
-{
- SendBehind( inWindowRef , behindWindow ) ;
-}
-
-void UMACloseWindow(WindowRef inWindowRef)
-{
-#if TARGET_CARBON
-#else
- CloseWindow( inWindowRef ) ;
-#endif
-}
-
-// appearance additions
-
-void UMAActivateControl( ControlHandle inControl )
-{
- if ( UMAHasAppearance() )
- {
- ::ActivateControl( inControl ) ;
- }
- else
- {
- AGAActivateControl( inControl ) ;
- }
-}
-
-void UMADrawControl( ControlHandle inControl )
-{
- if ( UMAHasAppearance() )
- {
- ::DrawControlInCurrentPort( inControl ) ;
- }
- else
- {
- AGADrawControl( inControl ) ;
- }
-}
-
-void UMAMoveControl( ControlHandle inControl , short x , short y )
-{
- if ( UMAHasAppearance() )
- {
- ::MoveControl( inControl , x , y ) ;
- }
- else
- {
- AGAMoveControl( inControl , x ,y ) ;
- }
-}
-
-void UMASizeControl( ControlHandle inControl , short x , short y )
-{
- if ( UMAHasAppearance() )
- {
- ::SizeControl( inControl , x , y ) ;
- }
- else
- {
- AGASizeControl( inControl , x ,y ) ;
- }
-}
-
-void UMADeactivateControl( ControlHandle inControl )
-{
- if ( UMAHasAppearance() )
- {
- ::DeactivateControl( inControl ) ;
- }
- else
- {
- AGADeactivateControl( inControl ) ;
- }
-}
-
-void UMASetThemeWindowBackground (WindowRef inWindow,
- ThemeBrush inBrush,
- Boolean inUpdate){
- if ( UMAHasAppearance() )
- {
- ::SetThemeWindowBackground( inWindow ,inBrush , inUpdate ) ;
- }
- else
- {
- AGASetThemeWindowBackground( inWindow , inBrush , inUpdate ) ;
- }
-}
-
-
-ControlHandle UMANewControl(WindowPtr owningWindow,
- const Rect * boundsRect,
- ConstStr255Param controlTitle,
- Boolean initiallyVisible,
- SInt16 initialValue,
- SInt16 minimumValue,
- SInt16 maximumValue,
- SInt16 procID,
- SInt32 controlReference)
-{
- ControlHandle theControl = NULL ;
- if ( UMAHasAppearance() )
- {
- theControl = NewControl( owningWindow , boundsRect , controlTitle , initiallyVisible ,
- initialValue , minimumValue , maximumValue , procID , controlReference ) ;
- }
- else
- {
- theControl = AGANewControl( owningWindow , boundsRect , controlTitle , initiallyVisible ,
- initialValue , minimumValue , maximumValue , procID , controlReference ) ;
- }
- return theControl ;
-}
-
-void UMADisposeControl (ControlHandle theControl)
-{
- if ( UMAHasAppearance() )
- {
- ::DisposeControl( theControl ) ;
- }
- else
- {
- ::DisposeControl( theControl ) ;
- }
-}
-
-
-void UMAHiliteControl (ControlHandle theControl,
- ControlPartCode hiliteState)
- {
- if ( UMAHasAppearance() )
- {
- ::HiliteControl( theControl , hiliteState ) ;
- }
- else
- {
- ::HiliteControl( theControl , hiliteState ) ;
- }
-}
-
-
-void UMAShowControl (ControlHandle theControl)
-{
- if ( UMAHasAppearance() )
- {
- ::ShowControl( theControl ) ;
- }
- else
- {
- ::ShowControl( theControl ) ;
- }
-}
-
-
-void UMAHideControl (ControlHandle theControl)
-{
- if ( UMAHasAppearance() )
- {
- ::HideControl( theControl ) ;
- }
- else
- {
- ::HideControl( theControl ) ;
- }
-}
-
-
-void UMASetControlVisibility (ControlHandle inControl,
- Boolean inIsVisible,
- Boolean inDoDraw)
- {
- if ( UMAHasAppearance() )
- {
- ::SetControlVisibility( inControl , inIsVisible, inDoDraw ) ;
- }
-}
-