2002-02-05 11:34:33 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcscreen.h
|
|
|
|
// Purpose: wxScreenDC class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17/09/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_DCSCREEN_H_
|
|
|
|
#define _WX_DCSCREEN_H_
|
|
|
|
|
2003-05-11 14:08:58 -04:00
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
2002-02-05 11:34:33 -05:00
|
|
|
#pragma interface "dcscreen.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/dcclient.h"
|
|
|
|
|
2002-02-11 15:41:24 -05:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxScreenDC
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxScreenDC : public wxPaintDC
|
2002-02-05 11:34:33 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxScreenDC();
|
2002-02-11 15:41:24 -05:00
|
|
|
virtual ~wxScreenDC();
|
|
|
|
|
|
|
|
static bool StartDrawingOnTop( wxWindow *window );
|
|
|
|
static bool StartDrawingOnTop( wxRect *rect = (wxRect *) NULL );
|
2002-02-05 11:34:33 -05:00
|
|
|
static bool EndDrawingOnTop();
|
2002-02-11 15:41:24 -05:00
|
|
|
|
|
|
|
// implementation
|
|
|
|
|
|
|
|
static WXWindow *sm_overlayWindow;
|
|
|
|
static int sm_overlayWindowX;
|
|
|
|
static int sm_overlayWindowY;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void DoGetSize(int *width, int *height) const;
|
|
|
|
|
2002-02-05 11:34:33 -05:00
|
|
|
private:
|
2002-02-11 15:41:24 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxScreenDC)
|
2002-02-05 11:34:33 -05:00
|
|
|
};
|
|
|
|
|
2002-02-11 15:41:24 -05:00
|
|
|
|
2002-02-05 11:34:33 -05:00
|
|
|
#endif
|
|
|
|
// _WX_DCSCREEN_H_
|
|
|
|
|