1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcscreen.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-26 05:56:58 -05:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
2004-05-23 10:56:36 -04:00
|
|
|
// Licence: wxWidgets licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __GTKDCSCREENH__
|
|
|
|
#define __GTKDCSCREENH__
|
|
|
|
|
|
|
|
#include "wx/dcclient.h"
|
|
|
|
|
1998-10-26 05:56:58 -05:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// classes
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxScreenDC;
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxScreenDC
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2000-10-30 11:43:37 -05:00
|
|
|
class wxScreenDC : public wxPaintDC
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
1998-12-01 07:55:09 -05:00
|
|
|
public:
|
1999-11-22 14:44:25 -05:00
|
|
|
wxScreenDC();
|
2000-10-30 11:43:37 -05:00
|
|
|
virtual ~wxScreenDC();
|
1999-11-22 14:44:25 -05:00
|
|
|
|
|
|
|
static bool StartDrawingOnTop( wxWindow *window );
|
|
|
|
static bool StartDrawingOnTop( wxRect *rect = (wxRect *) NULL );
|
|
|
|
static bool EndDrawingOnTop();
|
|
|
|
|
|
|
|
// implementation
|
2000-10-30 11:43:37 -05:00
|
|
|
|
1999-11-22 14:44:25 -05:00
|
|
|
static GdkWindow *sm_overlayWindow;
|
|
|
|
static int sm_overlayWindowX;
|
|
|
|
static int sm_overlayWindowY;
|
2000-10-30 11:43:37 -05:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void DoGetSize(int *width, int *height) const;
|
|
|
|
|
1999-11-22 14:44:25 -05:00
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxScreenDC)
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-10-26 05:56:58 -05:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
// __GTKDCSCREENH__
|
|
|
|
|