]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/carbon/private/overlay.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / osx / carbon / private / overlay.h
CommitLineData
5c6eb3a8 1/////////////////////////////////////////////////////////////////////////////
233f5738 2// Name: wx/osx/carbon/private/overlay.h
5c6eb3a8
SC
3// Purpose: wxOverlayImpl declaration
4// Author: Stefan Csomor
5// Modified by:
6// Created: 2006-10-20
5c6eb3a8
SC
7// Copyright: (c) wxWidgets team
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_MAC_CARBON_PRIVATE_OVERLAY_H_
12#define _WX_MAC_CARBON_PRIVATE_OVERLAY_H_
13
ef0e9220 14#include "wx/osx/private.h"
5c6eb3a8
SC
15#include "wx/toplevel.h"
16#include "wx/graphics.h"
17
18class wxOverlayImpl
19{
20public:
21 wxOverlayImpl() ;
22 ~wxOverlayImpl() ;
03647350
VZ
23
24
5c6eb3a8
SC
25 // clears the overlay without restoring the former state
26 // to be done eg when the window content has been changed and repainted
27 void Reset();
03647350 28
5c6eb3a8
SC
29 // returns true if it has been setup
30 bool IsOk();
03647350 31
5c6eb3a8 32 void Init( wxDC* dc, int x , int y , int width , int height );
03647350 33
5c6eb3a8 34 void BeginDrawing( wxDC* dc);
03647350 35
5c6eb3a8 36 void EndDrawing( wxDC* dc);
03647350 37
5c6eb3a8
SC
38 void Clear( wxDC* dc);
39
40private:
41 OSStatus CreateOverlayWindow();
03647350 42
5c6eb3a8 43 void MacGetBounds( Rect *bounds );
03647350 44
5c6eb3a8
SC
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()
49 wxWindow* m_window ;
03647350 50
5c6eb3a8
SC
51 int m_x ;
52 int m_y ;
53 int m_width ;
54 int m_height ;
55} ;
56
57#endif // _WX_MAC_CARBON_PRIVATE_OVERLAY_H_