]> git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/display.h
fixed bug in Set() on DST days (patch 1097811)
[wxWidgets.git] / include / wx / cocoa / display.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: include/wx/cocoa/display.h
3 // Purpose: wxDisplay class for wxCocoa
4 // Author: Ryan Norton
5 // Modified by:
6 // Created: 2004-10-03
7 // RCS-ID: $Id$
8 // Copyright: (c) Ryan Norton
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_COCOA_DISPLAY_H_
13 #define _WX_COCOA_DISPLAY_H_
14
15 #include "wx/object.h"
16 #include "wx/display.h"
17
18 class wxRect;
19 class wxString;
20
21 class WXDLLEXPORT wxDisplay : public wxDisplayBase
22 {
23 public:
24 wxDisplay ( size_t index = 0 );
25
26 ~wxDisplay();
27
28 virtual wxRect GetGeometry() const;
29 virtual int GetDepth() const;
30 virtual wxString GetName() const;
31
32 virtual wxArrayVideoModes
33 GetModes(const wxVideoMode& mode = wxDefaultVideoMode) const;
34
35 virtual wxVideoMode GetCurrentMode() const;
36
37 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode);
38
39 private:
40 struct _CGDirectDisplayID * m_id;
41
42 DECLARE_NO_COPY_CLASS(wxDisplay)
43 };
44
45 #endif // _WX_COCOA_DISPLAY_H_