]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/display.h
wxMovieCtrl - for playing movies - mac carbon QT 3 MSW-compatable implementation...
[wxWidgets.git] / include / wx / msw / display.h
CommitLineData
a536e411
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: display.h
3// Purpose: wxDisplay class customization for WXMSW
4// Author: Royce Mitchell III
d71cc120 5// Modified by:
a536e411
JS
6// Created: 06/21/02
7// RCS-ID: $Id$
77ffb593 8// Copyright: (c) wxWidgets team
65571936 9// Licence: wxWindows licence
a536e411
JS
10/////////////////////////////////////////////////////////////////////////////
11
12028905 12#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
8585e2b5
VZ
13 #pragma interface "display.h"
14#endif
15
a536e411
JS
16#ifndef _WX_MSW_DISPLAY_H_
17#define _WX_MSW_DISPLAY_H_
18
19class WXDLLEXPORT wxDisplay : public wxDisplayBase
20{
21public:
06efac1f
VZ
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
8585e2b5 27 wxDisplay(size_t index = 0);
a536e411 28
06efac1f
VZ
29 virtual ~wxDisplay();
30
8585e2b5 31 // implement base class pure virtuals
06efac1f 32 virtual bool IsOk() const;
a536e411 33 virtual wxRect GetGeometry() const;
a536e411
JS
34 virtual wxString GetName() const;
35
8585e2b5
VZ
36 virtual wxArrayVideoModes
37 GetModes(const wxVideoMode& mode = wxVideoMode()) const;
38 virtual wxVideoMode GetCurrentMode() const;
39 virtual bool ChangeMode(const wxVideoMode& mode = wxVideoMode());
40
24d2b4f5
RN
41 virtual bool IsPrimary() const;
42
8585e2b5
VZ
43private:
44 // get the display name to use with EnumDisplaySettings()
45 wxString GetNameForEnumSettings() const;
46
06efac1f
VZ
47 // we have different implementations using DirectDraw and without it
48 wxArrayVideoModes DoGetModesDirectX(const wxVideoMode& modeMatch) const;
49 bool DoChangeModeDirectX(const wxVideoMode& mode);
50
51 wxArrayVideoModes DoGetModesWindows(const wxVideoMode& modeMatch) const;
52 bool DoChangeModeWindows(const wxVideoMode& mode);
53
d71cc120 54
d9f7c16d 55 DECLARE_NO_COPY_CLASS(wxDisplay)
a536e411
JS
56};
57
58#endif // _WX_MSW_DISPLAY_H_