]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/display.tex
add wxSYS_DCLICK_TIME system metric constant; use it for the generic list control...
[wxWidgets.git] / docs / latex / wx / display.tex
CommitLineData
a7fee33e
JS
1\section{\class{wxDisplay}}\label{wxdisplay}
2
3Determines the sizes and locations of displays connected to the system.
4
5\wxheading{Derived from}
6
7None
8
9\wxheading{Include files}
10
11<wx/display.h>
12
a7af285d
VZ
13\wxheading{Library}
14
15\helpref{wxCore}{librarieslist}
16
a7fee33e
JS
17\wxheading{See also}
18
19\helpref{wxClientDisplayRect}{wxclientdisplayrect}, \helpref{wxDisplaySize}{wxdisplaysize}, \helpref{wxDisplaySizeMM}{wxdisplaysizemm}
20
21\latexignore{\rtfignore{\wxheading{Members}}}
22
93255dad 23
b236c10f 24\membersection{wxDisplay::wxDisplay}\label{wxdisplayctor}
a7fee33e 25
4e675101 26\func{}{wxDisplay}{\param{unsigned }{index = 0}}
a7fee33e
JS
27
28Constructor, setting up a wxDisplay instance with the specified display.
29
30\wxheading{Parameters}
31
32\docparam{index}{The index of the display to use. This must be non-negative
93255dad
VZ
33and lower than the value returned by \helpref{GetCount()}{wxdisplaygetcount}.}
34
a7fee33e 35
b236c10f 36\membersection{wxDisplay::\destruct{wxDisplay}}\label{wxdisplaydtor}
a7fee33e
JS
37
38\func{void}{\destruct{wxDisplay}}{\void}
39
40Destructor.
41
93255dad 42
d6108c66
VZ
43\membersection{wxDisplay::ChangeMode}\label{wxdisplaychangemode}
44
45\func{bool }{ChangeMode}{\param{const wxVideoMode\& }{mode = wxDefaultVideoMode}}
46
47Changes the video mode of this display to the mode specified
48in the mode parameter.
49
50If wxDefaultVideoMode is passed in as the mode parameter,
51the defined behaviour is that wxDisplay will reset the video
52mode to the default mode used by the display. On Windows,
53the behavior is normal. However, there are differences on other
54platforms. On Unix variations using X11 extensions it should
55behave as defined, but some irregularities may occur.
56
57On wxMac passing in wxDefaultVideoMode as the mode
58parameter does nothing. This happens because carbon
59no longer has access to DMUseScreenPrefs, an undocumented
60function that changed the video mode to the system
61default by using the system's 'scrn' resource.
62
63
6c5d6291
VZ
64\membersection{wxDisplay::GetClientArea}\label{wxdisplaygetclientarea}
65
66\constfunc{wxRect }{GetClientArea}{\void}
67
68Returns the client area of the display. The client area is the part of the
69display available for the normal (non full screen) windows, usually it is the
70same as \helpref{GetGeometry}{wxdisplaygetgeometry} but it could be less if
71there is a taskbar (or equivalent) on this display.
72
73\wxheading{See also:}
74
75\helpref{wxClientDisplayRect}{wxclientdisplayrect}
76
77
a7fee33e
JS
78\membersection{wxDisplay::GetCount}\label{wxdisplaygetcount}
79
4e675101 80\func{static unsigned }{GetCount}{\void}
a7fee33e
JS
81
82Returns the number of connected displays.
83
93255dad 84
d6108c66
VZ
85\membersection{wxDisplay::GetCurrentMode}\label{wxdisplaygetcurrentmode}
86
87\constfunc{wxVideoMode }{GetCurrentMode}{\void}
88
89Returns the current video mode that this display is in.
90
91
a7fee33e
JS
92\membersection{wxDisplay::GetDepth}\label{wxdisplaygetdepth}
93
94\constfunc{int }{GetDepth}{\void}
95
96Returns the bit depth of the display whose index was passed to the constructor.
97
93255dad 98
a7fee33e
JS
99\membersection{wxDisplay::GetFromPoint}\label{wxdisplaygetfrompoint}
100
101\func{static int}{GetFromPoint}{\param{const wxPoint\& }{pt}}
102
9d4e821b
VZ
103Returns the index of the display on which the given point lies. Returns
104\texttt{wxNOT\_FOUND} if the point is not on any connected display.
a7fee33e
JS
105
106\wxheading{Parameters}
107
108\docparam{pt}{The point to locate.}
109
93255dad 110
940bbac1
RN
111\membersection{wxDisplay::GetFromWindow}\label{wxdisplaygetfromwindow}
112
1e93d595 113\func{static int}{GetFromWindow}{\param{const wxWindow* }{win}}
940bbac1
RN
114
115Returns the index of the display on which the given window lies.
116
117If the window is on more than one display it gets the display that overlaps the window the most.
118
9d4e821b 119Returns \texttt{wxNOT\_FOUND} if the window is not on any connected display.
af7e4f87 120
940bbac1
RN
121\wxheading{Parameters}
122
123\docparam{win}{The window to locate.}
124
125
a7fee33e
JS
126\membersection{wxDisplay::GetGeometry}\label{wxdisplaygetgeometry}
127
128\constfunc{wxRect }{GetGeometry}{\void}
129
130Returns the bounding rectangle of the display whose index was passed to the
131constructor.
132
6c5d6291
VZ
133\wxheading{See also:}
134
135\helpref{GetClientArea}{wxdisplaygetclientarea}, \helpref{wxDisplaySize}{wxdisplaysize}
136
93255dad 137
d6108c66
VZ
138\membersection{wxDisplay::GetModes}\label{wxdisplaygetmodes}
139
140\constfunc{wxArrayVideoModes }{GetModes}{\param{const wxVideoMode\& }{mode = wxDefaultVideoMode}}
141
142Fills and returns an array with all the video modes that
143are supported by this display, or video modes that are
144supported by this display and match the mode parameter
145(if mode is not wxDefaultVideoMode).
146
147
a7fee33e
JS
148\membersection{wxDisplay::GetName}\label{wxdisplaygetname}
149
150\constfunc{wxString }{GetName}{\void}
151
152Returns the display's name. A name is not available on all platforms.
153
93255dad 154
a7fee33e
JS
155\membersection{wxDisplay::IsPrimary}\label{wxdisplayisprimary}
156
157\func{bool }{IsPrimary}{\void}
158
159Returns true if the display is the primary display. The primary display is the
160one whose index is 0.
161