]>
Commit | Line | Data |
---|---|---|
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 | ||
ffecfa5a JS |
12 | #ifndef _WX_PALMOS_DISPLAY_H_ |
13 | #define _WX_PALMOS_DISPLAY_H_ | |
14 | ||
15 | class WXDLLEXPORT wxDisplay : public wxDisplayBase | |
16 | { | |
17 | public: | |
18 | // this function may be called *before* using any other wxDisplay methods | |
19 | // to tell it to use DirectX functions instead of the standard Windows ones | |
20 | static void UseDirectX(bool useDX); | |
21 | ||
22 | // create the display object for the given physical display | |
23 | wxDisplay(size_t index = 0); | |
24 | ||
25 | virtual ~wxDisplay(); | |
26 | ||
27 | // implement base class pure virtuals | |
28 | virtual bool IsOk() const; | |
29 | virtual wxRect GetGeometry() const; | |
30 | virtual wxString GetName() const; | |
31 | ||
32 | virtual wxArrayVideoModes | |
33 | GetModes(const wxVideoMode& mode = wxVideoMode()) const; | |
34 | virtual wxVideoMode GetCurrentMode() const; | |
35 | virtual bool ChangeMode(const wxVideoMode& mode = wxVideoMode()); | |
36 | ||
37 | private: | |
38 | // get the display name to use with EnumDisplaySettings() | |
39 | wxString GetNameForEnumSettings() const; | |
40 | ||
41 | // we have different implementations using DirectDraw and without it | |
42 | wxArrayVideoModes DoGetModesDirectX(const wxVideoMode& modeMatch) const; | |
43 | bool DoChangeModeDirectX(const wxVideoMode& mode); | |
44 | ||
45 | wxArrayVideoModes DoGetModesWindows(const wxVideoMode& modeMatch) const; | |
46 | bool DoChangeModeWindows(const wxVideoMode& mode); | |
47 | ||
e1d63b79 | 48 | |
ffecfa5a JS |
49 | DECLARE_NO_COPY_CLASS(wxDisplay) |
50 | }; | |
51 | ||
52 | #endif // _WX_PALMOS_DISPLAY_H_ |