]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/display.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxDisplay class customization for WXMSW
4 // Author: Royce Mitchell III
8 // Copyright: (c) wxWidgets team
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_MSW_DISPLAY_H_
13 #define _WX_MSW_DISPLAY_H_
15 class WXDLLEXPORT wxDisplay
: public wxDisplayBase
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
);
22 // create the display object for the given physical display
23 wxDisplay(size_t index
= 0);
27 // implement base class pure virtuals
28 virtual bool IsOk() const;
29 virtual wxRect
GetGeometry() const;
30 virtual wxString
GetName() const;
32 virtual wxArrayVideoModes
33 GetModes(const wxVideoMode
& mode
= wxVideoMode()) const;
34 virtual wxVideoMode
GetCurrentMode() const;
35 virtual bool ChangeMode(const wxVideoMode
& mode
= wxVideoMode());
37 virtual bool IsPrimary() const;
40 // we have different implementations using DirectDraw and without it
41 wxArrayVideoModes
DoGetModesDirectX(const wxVideoMode
& modeMatch
) const;
42 bool DoChangeModeDirectX(const wxVideoMode
& mode
);
44 wxArrayVideoModes
DoGetModesWindows(const wxVideoMode
& modeMatch
) const;
45 bool DoChangeModeWindows(const wxVideoMode
& mode
);
48 DECLARE_NO_COPY_CLASS(wxDisplay
)
51 #endif // _WX_MSW_DISPLAY_H_