]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/aga.h
Fixed some wxDragImage bugs
[wxWidgets.git] / include / wx / mac / aga.h
index 8d976e17e16a40b668e1129b7df7763429dd2e59..8c6f598f7ad5e5fd6d91fcac1912764d779f0d54 100644 (file)
@@ -77,8 +77,37 @@ OSErr AGAGetRootControl( WindowPtr inWindow , ControlHandle *outControl ) ;
 void                   AGASetThemeWindowBackground             (WindowRef                              inWindow,
                                                                 ThemeBrush                     inBrush,
                                                                 Boolean                                inUpdate) ;
 void                   AGASetThemeWindowBackground             (WindowRef                              inWindow,
                                                                 ThemeBrush                     inBrush,
                                                                 Boolean                                inUpdate) ;
+void                   AGAApplyThemeBackground                 (ThemeBackgroundKind    inKind,
+                                                                const Rect *                   bounds,
+                                                                ThemeDrawState                 inState,
+                                                                SInt16                                 inDepth,
+                                                                Boolean                                inColorDev) ;
 void AGAMoveControl( ControlHandle inControl , short x , short y ) ;
 void AGASizeControl( ControlHandle inControl , short x , short y ) ;
 
 void AGAMoveControl( ControlHandle inControl , short x , short y ) ;
 void AGASizeControl( ControlHandle inControl , short x , short y ) ;
 
+class AGAPortHelper 
+{
+public :
+       AGAPortHelper( GrafPtr newport) ; 
+       AGAPortHelper() ;
+       void Setup( GrafPtr newport ) ;
+       void Clear() ;
+       bool IsCleared() { return clip == NULL ; }
+       GrafPtr GetCurrentPort() { return nport ; }
+       ~AGAPortHelper() ;
+
+private :
+                               GrafPtr                 nport ;
+                               GrafPtr                 port ;
+                               PenState                oldPenState ;
+                               RGBColor                oldForeColor ;
+                               RGBColor                oldBackColor ;
+                               RgnHandle               clip ;
+                               short                   font ;
+                               short                   size ;
+                               short                   style ;
+                               short                   mode ;
+} ;
+
 
 #endif
\ No newline at end of file
 
 #endif
\ No newline at end of file