]> git.saurik.com Git - wxWidgets.git/blob - src/os2/display.cpp
reformat for readability; more prep. for patch 1376506
[wxWidgets.git] / src / os2 / display.cpp
1 ///////////////////////////////////////////////////////////////////////////
2 // Name: displayx11.cpp
3 // Purpose: Unix/X11 implementation of wxDisplay class
4 // Author: Brian Victor
5 // Modified by:
6 // Created: 12/05/02
7 // RCS-ID: $Id$
8 // Copyright: (c) wxWidgets team
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
14
15 #ifdef __BORLANDC__
16 #pragma hdrstop
17 #endif
18
19 #include "wx/display.h"
20 #include "wx/intl.h"
21 #include "wx/log.h"
22
23 #ifndef WX_PRECOMP
24 #include "wx/dynarray.h"
25 #include "wx/gdicmn.h"
26 #include "wx/string.h"
27 #include "wx/utils.h"
28 #endif /* WX_PRECOMP */
29
30 #if wxUSE_DISPLAY
31
32 size_t wxDisplayBase::GetCount()
33 {
34 return 1;
35 }
36
37 int wxDisplayBase::GetFromPoint(const wxPoint &p)
38 {
39 return -1;
40 }
41
42 wxDisplay::wxDisplay(size_t index)
43 : wxDisplayBase ( index )
44 {
45 }
46
47 wxDisplay::~wxDisplay()
48 {
49 }
50
51 wxRect wxDisplay::GetGeometry() const
52 {
53 wxRect vRect(0,0,0,0);
54
55 return vRect;
56 }
57
58 int wxDisplay::GetDepth() const
59 {
60 return 24;
61 }
62
63 wxString wxDisplay::GetName() const
64 {
65 return wxEmptyString;
66 }
67
68
69 wxArrayVideoModes wxDisplay::GetModes(const wxVideoMode& mode) const
70 {
71 wxArrayVideoModes modes;
72 return modes;
73 }
74
75 wxVideoMode wxDisplay::GetCurrentMode() const
76 {
77 // Not implemented
78 return wxVideoMode();
79 }
80
81 bool wxDisplay::ChangeMode(const wxVideoMode& mode)
82 {
83 // Not implemented
84 return false;
85 }
86
87 #endif /* wxUSE_DISPLAY */