Files
wxWidgets/include/wx/dcscreen.h
T
Vadim Zeitlin 9c4a376367 Document that wxScreenDC doesn't work in more places
Try to make it as clear as possible that this class shouldn't be used
any longer without formally deprecating it (as it does still work in
wxMSW and, also, is still used in some of our own code).
2024-10-15 15:05:52 +02:00

36 lines
902 B
C++

/////////////////////////////////////////////////////////////////////////////
// Name: wx/dcscreen.h
// Purpose: wxScreenDC base header
// Author: Julian Smart
// Created:
// Copyright: (c) Julian Smart
// Licence: wxWindows Licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_DCSCREEN_H_BASE_
#define _WX_DCSCREEN_H_BASE_
#include "wx/defs.h"
#include "wx/dc.h"
// This class is obsolete and doesn't work, don't use it.
class WXDLLIMPEXP_CORE wxScreenDC : public wxDC
{
public:
wxScreenDC();
static bool StartDrawingOnTop(wxWindow * WXUNUSED(window))
{ return true; }
static bool StartDrawingOnTop(wxRect * WXUNUSED(rect) = nullptr)
{ return true; }
static bool EndDrawingOnTop()
{ return true; }
private:
wxDECLARE_DYNAMIC_CLASS(wxScreenDC);
};
#endif
// _WX_DCSCREEN_H_BASE_