1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/carbon/private/overlay.h
3 // Purpose: wxOverlayImpl declaration
4 // Author: Stefan Csomor
8 // Copyright: (c) wxWidgets team
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_MAC_CARBON_PRIVATE_OVERLAY_H_
13 #define _WX_MAC_CARBON_PRIVATE_OVERLAY_H_
15 #include "wx/mac/private.h"
16 #include "wx/toplevel.h"
17 #include "wx/graphics.h"
26 // clears the overlay without restoring the former state
27 // to be done eg when the window content has been changed and repainted
30 // returns true if it has been setup
33 void Init( wxDC
* dc
, int x
, int y
, int width
, int height
);
35 void BeginDrawing( wxDC
* dc
);
37 void EndDrawing( wxDC
* dc
);
39 void Clear( wxDC
* dc
);
42 OSStatus
CreateOverlayWindow();
44 void MacGetBounds( Rect
*bounds
);
46 WindowRef m_overlayWindow
;
47 WindowRef m_overlayParentWindow
;
48 CGContextRef m_overlayContext
;
49 // we store the window in case we would have to issue a Refresh()
58 #endif // _WX_MAC_CARBON_PRIVATE_OVERLAY_H_