1 \section{\class{wxDisplay
}}\label{wxdisplay
}
3 Determines the sizes and locations of displays connected to the system.
5 \wxheading{Derived from
}
9 \wxheading{Include files
}
15 \helpref{wxClientDisplayRect
}{wxclientdisplayrect
},
\helpref{wxDisplaySize
}{wxdisplaysize
},
\helpref{wxDisplaySizeMM
}{wxdisplaysizemm
}
17 \latexignore{\rtfignore{\wxheading{Members
}}}
20 \membersection{wxDisplay::wxDisplay
}\label{wxdisplayctor
}
22 \func{}{wxDisplay
}{\param{unsigned
}{index =
0}}
24 Constructor, setting up a wxDisplay instance with the specified display.
26 \wxheading{Parameters
}
28 \docparam{index
}{The index of the display to use. This must be non-negative
29 and lower than the value returned by
\helpref{GetCount()
}{wxdisplaygetcount
}.
}
32 \membersection{wxDisplay::
\destruct{wxDisplay
}}\label{wxdisplaydtor
}
34 \func{void
}{\destruct{wxDisplay
}}{\void}
39 \membersection{wxDisplay::ChangeMode
}\label{wxdisplaychangemode
}
41 \func{bool
}{ChangeMode
}{\param{const wxVideoMode\&
}{mode = wxDefaultVideoMode
}}
43 Changes the video mode of this display to the mode specified
44 in the mode parameter.
46 If wxDefaultVideoMode is passed in as the mode parameter,
47 the defined behaviour is that wxDisplay will reset the video
48 mode to the default mode used by the display. On Windows,
49 the behavior is normal. However, there are differences on other
50 platforms. On Unix variations using X11 extensions it should
51 behave as defined, but some irregularities may occur.
53 On wxMac passing in wxDefaultVideoMode as the mode
54 parameter does nothing. This happens because carbon
55 no longer has access to DMUseScreenPrefs, an undocumented
56 function that changed the video mode to the system
57 default by using the system's 'scrn' resource.
60 \membersection{wxDisplay::GetClientArea
}\label{wxdisplaygetclientarea
}
62 \constfunc{wxRect
}{GetClientArea
}{\void}
64 Returns the client area of the display. The client area is the part of the
65 display available for the normal (non full screen) windows, usually it is the
66 same as
\helpref{GetGeometry
}{wxdisplaygetgeometry
} but it could be less if
67 there is a taskbar (or equivalent) on this display.
71 \helpref{wxClientDisplayRect
}{wxclientdisplayrect
}
74 \membersection{wxDisplay::GetCount
}\label{wxdisplaygetcount
}
76 \func{static unsigned
}{GetCount
}{\void}
78 Returns the number of connected displays.
81 \membersection{wxDisplay::GetCurrentMode
}\label{wxdisplaygetcurrentmode
}
83 \constfunc{wxVideoMode
}{GetCurrentMode
}{\void}
85 Returns the current video mode that this display is in.
88 \membersection{wxDisplay::GetDepth
}\label{wxdisplaygetdepth
}
90 \constfunc{int
}{GetDepth
}{\void}
92 Returns the bit depth of the display whose index was passed to the constructor.
95 \membersection{wxDisplay::GetFromPoint
}\label{wxdisplaygetfrompoint
}
97 \func{static int
}{GetFromPoint
}{\param{const wxPoint\&
}{pt
}}
99 Returns the index of the display on which the given point lies. Returns
100 \texttt{wxNOT
\_FOUND} if the point is not on any connected display.
102 \wxheading{Parameters
}
104 \docparam{pt
}{The point to locate.
}
107 \membersection{wxDisplay::GetFromWindow
}\label{wxdisplaygetfromwindow
}
109 \func{static int
}{GetFromWindow
}{\param{wxWindow*
}{win
}}
111 Returns the index of the display on which the given window lies.
113 If the window is on more than one display it gets the display that overlaps the window the most.
115 Returns
\texttt{wxNOT
\_FOUND} if the window is not on any connected display.
117 \wxheading{Parameters
}
119 \docparam{win
}{The window to locate.
}
122 \membersection{wxDisplay::GetGeometry
}\label{wxdisplaygetgeometry
}
124 \constfunc{wxRect
}{GetGeometry
}{\void}
126 Returns the bounding rectangle of the display whose index was passed to the
129 \wxheading{See also:
}
131 \helpref{GetClientArea
}{wxdisplaygetclientarea
},
\helpref{wxDisplaySize
}{wxdisplaysize
}
134 \membersection{wxDisplay::GetModes
}\label{wxdisplaygetmodes
}
136 \constfunc{wxArrayVideoModes
}{GetModes
}{\param{const wxVideoMode\&
}{mode = wxDefaultVideoMode
}}
138 Fills and returns an array with all the video modes that
139 are supported by this display, or video modes that are
140 supported by this display and match the mode parameter
141 (if mode is not wxDefaultVideoMode).
144 \membersection{wxDisplay::GetName
}\label{wxdisplaygetname
}
146 \constfunc{wxString
}{GetName
}{\void}
148 Returns the display's name. A name is not available on all platforms.
151 \membersection{wxDisplay::IsPrimary
}\label{wxdisplayisprimary
}
153 \func{bool
}{IsPrimary
}{\void}
155 Returns true if the display is the primary display. The primary display is the
156 one whose index is
0.