]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/display.h
Support for G_FILENAME_ENCODING=@locale
[wxWidgets.git] / include / wx / palmos / display.h
CommitLineData
ffecfa5a 1/////////////////////////////////////////////////////////////////////////////
e1d63b79 2// Name: wx/palmos/display.h
ffecfa5a 3// Purpose: wxDisplay class customization for Palm OS
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a
JS
5// Modified by:
6// Created: 10/13/04
e1d63b79 7// RCS-ID: $Id$
ffecfa5a
JS
8// Copyright: (c) William Osborne
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
13 #pragma interface "display.h"
14#endif
15
16#ifndef _WX_PALMOS_DISPLAY_H_
17#define _WX_PALMOS_DISPLAY_H_
18
19class WXDLLEXPORT wxDisplay : public wxDisplayBase
20{
21public:
22 // this function may be called *before* using any other wxDisplay methods
23 // to tell it to use DirectX functions instead of the standard Windows ones
24 static void UseDirectX(bool useDX);
25
26 // create the display object for the given physical display
27 wxDisplay(size_t index = 0);
28
29 virtual ~wxDisplay();
30
31 // implement base class pure virtuals
32 virtual bool IsOk() const;
33 virtual wxRect GetGeometry() const;
34 virtual wxString GetName() const;
35
36 virtual wxArrayVideoModes
37 GetModes(const wxVideoMode& mode = wxVideoMode()) const;
38 virtual wxVideoMode GetCurrentMode() const;
39 virtual bool ChangeMode(const wxVideoMode& mode = wxVideoMode());
40
41private:
42 // get the display name to use with EnumDisplaySettings()
43 wxString GetNameForEnumSettings() const;
44
45 // we have different implementations using DirectDraw and without it
46 wxArrayVideoModes DoGetModesDirectX(const wxVideoMode& modeMatch) const;
47 bool DoChangeModeDirectX(const wxVideoMode& mode);
48
49 wxArrayVideoModes DoGetModesWindows(const wxVideoMode& modeMatch) const;
50 bool DoChangeModeWindows(const wxVideoMode& mode);
51
e1d63b79 52
ffecfa5a
JS
53 DECLARE_NO_COPY_CLASS(wxDisplay)
54};
55
56#endif // _WX_PALMOS_DISPLAY_H_