1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Gray Controls implementation
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 ControlHandle
AGANewControl(WindowPtr owningWindow
,
16 const Rect
* boundsRect
,
17 ConstStr255Param controlTitle
,
18 Boolean initiallyVisible
,
23 SInt32 controlReference
) ;
25 OSErr
AGASetControlFontStyle (ControlHandle inControl
,
26 const ControlFontStyleRec
* inStyle
) ;
28 OSErr
AGAGetControlDataSize (ControlHandle inControl
,
29 ControlPartCode inPart
,
34 OSErr
AGASetControlData (ControlHandle inControl
,
35 ControlPartCode inPart
,
40 OSErr
AGAGetControlData (ControlHandle inControl
,
41 ControlPartCode inPart
,
45 Size
* outActualSize
) ;
47 OSErr
AGAGetBestControlRect (ControlHandle inControl
,
49 SInt16
* outBaseLineOffset
) ;
51 SInt16
AGAHandleControlKey (ControlHandle inControl
,
56 ControlPartCode
AGAHandleControlClick (ControlHandle inControl
,
59 ControlActionUPP inAction
) ;
61 void AGAIdleControls (WindowPtr inWindow
) ;
63 void AGADrawControl( ControlHandle inControl
) ;
64 void AGADeactivateControl( ControlHandle inControl
) ;
65 void AGAActivateControl( ControlHandle inControl
) ;
66 OSErr
AGASetKeyboardFocus (WindowPtr inWindow
,
67 ControlHandle inControl
,
68 ControlFocusPart inPart
) ;
70 OSErr
AGACreateRootControl (WindowPtr inWindow
,
71 ControlHandle
* outControl
) ;
72 OSErr
AGAEmbedControl (ControlHandle inControl
,
73 ControlHandle inContainer
) ;
75 void AGAUpdateControls( WindowPtr inWindow
, RgnHandle inRgn
) ;
76 OSErr
AGAGetRootControl( WindowPtr inWindow
, ControlHandle
*outControl
) ;
77 void AGASetThemeWindowBackground (WindowRef inWindow
,
80 void AGAApplyThemeBackground (ThemeBackgroundKind inKind
,
82 ThemeDrawState inState
,
85 void AGAMoveControl( ControlHandle inControl
, short x
, short y
) ;
86 void AGASizeControl( ControlHandle inControl
, short x
, short y
) ;
91 AGAPortHelper( GrafPtr newport
) ;
93 void Setup( GrafPtr newport
) ;
95 bool IsCleared() { return clip
== NULL
; }
96 GrafPtr
GetCurrentPort() { return nport
; }
102 PenState oldPenState
;
103 RGBColor oldForeColor
;
104 RGBColor oldBackColor
;