]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/cocoa/private/overlay.h
indicating the memory ownership of our c-method for the clang analyzer
[wxWidgets.git] / include / wx / osx / cocoa / private / overlay.h
CommitLineData
13f0c85a
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/osx/cocoa/private/overlay.h
3// Purpose: wxOverlayImpl declaration
4// Author: Stefan Csomor
5// Modified by:
6// Created: 2006-10-20
a9a4f229 7// RCS-ID: $Id$
13f0c85a
SC
8// Copyright: (c) wxWidgets team
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_OSX_COCOA_PRIVATE_OVERLAY_H_
13#define _WX_OSX_COCOA_PRIVATE_OVERLAY_H_
14
15#include "wx/osx/private.h"
16#include "wx/toplevel.h"
17#include "wx/graphics.h"
18
19class wxOverlayImpl
20{
21public:
22 wxOverlayImpl() ;
23 ~wxOverlayImpl() ;
24
25
26 // clears the overlay without restoring the former state
27 // to be done eg when the window content has been changed and repainted
28 void Reset();
29
30 // returns true if it has been setup
31 bool IsOk();
32
33 void Init( wxDC* dc, int x , int y , int width , int height );
34
35 void BeginDrawing( wxDC* dc);
36
37 void EndDrawing( wxDC* dc);
38
39 void Clear( wxDC* dc);
40
41private:
42 void CreateOverlayWindow();
43
44 WXWindow m_overlayWindow;
45 WXWindow m_overlayParentWindow;
46 CGContextRef m_overlayContext ;
47 // we store the window in case we would have to issue a Refresh()
48 wxWindow* m_window ;
49
50 int m_x ;
51 int m_y ;
52 int m_width ;
53 int m_height ;
54} ;
55
56#endif // _WX_MAC_CARBON_PRIVATE_OVERLAY_H_