-
-
-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 ) ;
- }
-}
-
-
-
-bool UMAIsControlActive (ControlHandle inControl)
-{
- if ( UMAHasAppearance() )
- {
- return IsControlActive( inControl ) ;
- }
- else
- return (**inControl).contrlHilite == 0 ;
-}
-
-
-bool UMAIsControlVisible (ControlHandle inControl)
-{
- if ( UMAHasAppearance() )
- {
- return IsControlVisible( inControl ) ;
- }
- return true ;
-}
-
-OSErr UMAGetBestControlRect (ControlHandle inControl,
- Rect * outRect,
- SInt16 * outBaseLineOffset)
-{
- if ( UMAHasAppearance() )
- {
- return GetBestControlRect( inControl , outRect , outBaseLineOffset ) ;
- }
- else
- {
- return AGAGetBestControlRect( inControl , outRect , outBaseLineOffset ) ;
- }
-}
-
-
-OSErr UMASetControlFontStyle (ControlHandle inControl,
- const ControlFontStyleRec * inStyle)
-{
- if ( UMAHasAppearance() )
- {
- return ::SetControlFontStyle( inControl , inStyle ) ;
- }
- else
- return AGASetControlFontStyle( inControl , inStyle ) ;
-}
-
-
-
-// control hierarchy
-
-OSErr UMACreateRootControl (WindowPtr inWindow,
- ControlHandle * outControl)
-{
- if ( UMAHasAppearance() )
- {
- return CreateRootControl( inWindow , outControl ) ;
- }
- else
- return AGACreateRootControl( inWindow , outControl ) ;
-}
-
-
-
-OSErr UMAEmbedControl (ControlHandle inControl,
- ControlHandle inContainer)
-{
- if ( UMAHasAppearance() )
- {
- return EmbedControl( inControl , inContainer ) ;
- }
- else
- return AGAEmbedControl( inControl , inContainer ) ; ;
-}
-
-
-