2002-07-19 16:42:34 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: display.h
|
|
|
|
// Purpose: wxDisplay class customization for WXMSW
|
|
|
|
// Author: Royce Mitchell III
|
2004-08-24 06:31:41 -04:00
|
|
|
// Modified by:
|
2002-07-19 16:42:34 -04:00
|
|
|
// Created: 06/21/02
|
|
|
|
// RCS-ID: $Id$
|
2004-05-23 10:56:36 -04:00
|
|
|
// Copyright: (c) wxWidgets team
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2002-07-19 16:42:34 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
2003-03-02 09:17:20 -05:00
|
|
|
#pragma interface "display.h"
|
|
|
|
#endif
|
|
|
|
|
2002-07-19 16:42:34 -04:00
|
|
|
#ifndef _WX_MSW_DISPLAY_H_
|
|
|
|
#define _WX_MSW_DISPLAY_H_
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxDisplay : public wxDisplayBase
|
|
|
|
{
|
|
|
|
public:
|
2003-04-06 20:30:18 -04:00
|
|
|
// this function may be called *before* using any other wxDisplay methods
|
|
|
|
// to tell it to use DirectX functions instead of the standard Windows ones
|
|
|
|
static void UseDirectX(bool useDX);
|
|
|
|
|
|
|
|
// create the display object for the given physical display
|
2003-03-02 09:17:20 -05:00
|
|
|
wxDisplay(size_t index = 0);
|
2002-07-19 16:42:34 -04:00
|
|
|
|
2003-04-06 20:30:18 -04:00
|
|
|
virtual ~wxDisplay();
|
|
|
|
|
2003-03-02 09:17:20 -05:00
|
|
|
// implement base class pure virtuals
|
2003-04-06 20:30:18 -04:00
|
|
|
virtual bool IsOk() const;
|
2002-07-19 16:42:34 -04:00
|
|
|
virtual wxRect GetGeometry() const;
|
|
|
|
virtual wxString GetName() const;
|
|
|
|
|
2003-03-02 09:17:20 -05:00
|
|
|
virtual wxArrayVideoModes
|
|
|
|
GetModes(const wxVideoMode& mode = wxVideoMode()) const;
|
|
|
|
virtual wxVideoMode GetCurrentMode() const;
|
|
|
|
virtual bool ChangeMode(const wxVideoMode& mode = wxVideoMode());
|
|
|
|
|
2004-11-06 19:48:37 -05:00
|
|
|
virtual bool IsPrimary() const;
|
|
|
|
|
2003-03-02 09:17:20 -05:00
|
|
|
private:
|
|
|
|
// get the display name to use with EnumDisplaySettings()
|
|
|
|
wxString GetNameForEnumSettings() const;
|
|
|
|
|
2003-04-06 20:30:18 -04:00
|
|
|
// we have different implementations using DirectDraw and without it
|
|
|
|
wxArrayVideoModes DoGetModesDirectX(const wxVideoMode& modeMatch) const;
|
|
|
|
bool DoChangeModeDirectX(const wxVideoMode& mode);
|
|
|
|
|
|
|
|
wxArrayVideoModes DoGetModesWindows(const wxVideoMode& modeMatch) const;
|
|
|
|
bool DoChangeModeWindows(const wxVideoMode& mode);
|
|
|
|
|
2004-08-24 06:31:41 -04:00
|
|
|
|
2003-07-07 07:58:52 -04:00
|
|
|
DECLARE_NO_COPY_CLASS(wxDisplay)
|
2002-07-19 16:42:34 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_MSW_DISPLAY_H_
|