]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/display.h
added linear and concentric gradient fill functions (modified/fixed patch from Ryan...
[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
12#ifndef _WX_MSW_DISPLAY_H_
13#define _WX_MSW_DISPLAY_H_
14
15class WXDLLEXPORT wxDisplay : public wxDisplayBase
16{
17public:
06efac1f
VZ
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
8585e2b5 23 wxDisplay(size_t index = 0);
a536e411 24
06efac1f
VZ
25 virtual ~wxDisplay();
26
8585e2b5 27 // implement base class pure virtuals
06efac1f 28 virtual bool IsOk() const;
a536e411 29 virtual wxRect GetGeometry() const;
a536e411
JS
30 virtual wxString GetName() const;
31
8585e2b5
VZ
32 virtual wxArrayVideoModes
33 GetModes(const wxVideoMode& mode = wxVideoMode()) const;
34 virtual wxVideoMode GetCurrentMode() const;
35 virtual bool ChangeMode(const wxVideoMode& mode = wxVideoMode());
36
24d2b4f5
RN
37 virtual bool IsPrimary() const;
38
8585e2b5
VZ
39private:
40 // get the display name to use with EnumDisplaySettings()
41 wxString GetNameForEnumSettings() const;
42
06efac1f
VZ
43 // we have different implementations using DirectDraw and without it
44 wxArrayVideoModes DoGetModesDirectX(const wxVideoMode& modeMatch) const;
45 bool DoChangeModeDirectX(const wxVideoMode& mode);
46
47 wxArrayVideoModes DoGetModesWindows(const wxVideoMode& modeMatch) const;
48 bool DoChangeModeWindows(const wxVideoMode& mode);
49
d71cc120 50
d9f7c16d 51 DECLARE_NO_COPY_CLASS(wxDisplay)
a536e411
JS
52};
53
54#endif // _WX_MSW_DISPLAY_H_