1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/carbon/private/overlay.h
3 // Purpose: wxOverlayImpl declaration
4 // Author: Stefan Csomor
7 // Copyright: (c) wxWidgets team
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_MAC_CARBON_PRIVATE_OVERLAY_H_
12 #define _WX_MAC_CARBON_PRIVATE_OVERLAY_H_
14 #include "wx/osx/private.h"
15 #include "wx/toplevel.h"
16 #include "wx/graphics.h"
25 // clears the overlay without restoring the former state
26 // to be done eg when the window content has been changed and repainted
29 // returns true if it has been setup
32 void Init( wxDC
* dc
, int x
, int y
, int width
, int height
);
34 void BeginDrawing( wxDC
* dc
);
36 void EndDrawing( wxDC
* dc
);
38 void Clear( wxDC
* dc
);
41 OSStatus
CreateOverlayWindow();
43 void MacGetBounds( Rect
*bounds
);
45 WindowRef m_overlayWindow
;
46 WindowRef m_overlayParentWindow
;
47 CGContextRef m_overlayContext
;
48 // we store the window in case we would have to issue a Refresh()
57 #endif // _WX_MAC_CARBON_PRIVATE_OVERLAY_H_