2004-10-19 09:40:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2005-01-18 16:14:27 -05:00
|
|
|
// Name: wx/palmos/display.h
|
2004-10-19 09:40:30 -04:00
|
|
|
// Purpose: wxDisplay class customization for Palm OS
|
2005-01-18 16:14:27 -05:00
|
|
|
// Author: William Osborne - minimal working wxPalmOS port
|
2004-10-19 09:40:30 -04:00
|
|
|
// Modified by:
|
|
|
|
// Created: 10/13/04
|
2005-01-18 16:14:27 -05:00
|
|
|
// RCS-ID: $Id$
|
2004-10-19 09:40:30 -04:00
|
|
|
// Copyright: (c) William Osborne
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
|
|
#pragma interface "display.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _WX_PALMOS_DISPLAY_H_
|
|
|
|
#define _WX_PALMOS_DISPLAY_H_
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxDisplay : public wxDisplayBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// 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
|
|
|
|
wxDisplay(size_t index = 0);
|
|
|
|
|
|
|
|
virtual ~wxDisplay();
|
|
|
|
|
|
|
|
// implement base class pure virtuals
|
|
|
|
virtual bool IsOk() const;
|
|
|
|
virtual wxRect GetGeometry() const;
|
|
|
|
virtual wxString GetName() const;
|
|
|
|
|
|
|
|
virtual wxArrayVideoModes
|
|
|
|
GetModes(const wxVideoMode& mode = wxVideoMode()) const;
|
|
|
|
virtual wxVideoMode GetCurrentMode() const;
|
|
|
|
virtual bool ChangeMode(const wxVideoMode& mode = wxVideoMode());
|
|
|
|
|
|
|
|
private:
|
|
|
|
// get the display name to use with EnumDisplaySettings()
|
|
|
|
wxString GetNameForEnumSettings() const;
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
|
2005-01-18 16:14:27 -05:00
|
|
|
|
2004-10-19 09:40:30 -04:00
|
|
|
DECLARE_NO_COPY_CLASS(wxDisplay)
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_PALMOS_DISPLAY_H_
|