1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/qgfxraster_qws.cpp:5792 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QScreen Class</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { background: #ffffff; color: black; }
|
---|
12 | --></style>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
17 | <tr bgcolor="#E5E5E5">
|
---|
18 | <td valign=center>
|
---|
19 | <a href="index.html">
|
---|
20 | <font color="#004faf">Home</font></a>
|
---|
21 | | <a href="classes.html">
|
---|
22 | <font color="#004faf">All Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main Classes</font></a>
|
---|
25 | | <a href="annotated.html">
|
---|
26 | <font color="#004faf">Annotated</font></a>
|
---|
27 | | <a href="groups.html">
|
---|
28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
29 | | <a href="functions.html">
|
---|
30 | <font color="#004faf">Functions</font></a>
|
---|
31 | </td>
|
---|
32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QScreen Class Reference</h1>
|
---|
33 |
|
---|
34 | <p>The QScreen class and its descendants manage the framebuffer and
|
---|
35 | palette.
|
---|
36 | <a href="#details">More...</a>
|
---|
37 | <p><tt>#include <<a href="qgfx_qws-h.html">qgfx_qws.h</a>></tt>
|
---|
38 | <p><a href="qscreen-members.html">List of all member functions.</a>
|
---|
39 | <h2>Public Members</h2>
|
---|
40 | <ul>
|
---|
41 | <li class=fn><a href="#QScreen"><b>QScreen</b></a> ( int display_id )</li>
|
---|
42 | <li class=fn>virtual <a href="#~QScreen"><b>~QScreen</b></a> ()</li>
|
---|
43 | <li class=fn>virtual bool <a href="#initDevice"><b>initDevice</b></a> () = 0</li>
|
---|
44 | <li class=fn>virtual bool <a href="#connect"><b>connect</b></a> ( const QString & displaySpec ) = 0</li>
|
---|
45 | <li class=fn>virtual void <a href="#disconnect"><b>disconnect</b></a> () = 0</li>
|
---|
46 | <li class=fn>virtual int <a href="#initCursor"><b>initCursor</b></a> ( void * end_of_location, bool init = FALSE )</li>
|
---|
47 | <li class=fn>virtual void <a href="#shutdownDevice"><b>shutdownDevice</b></a> ()</li>
|
---|
48 | <li class=fn>virtual void <a href="#setMode"><b>setMode</b></a> ( int, int, int ) = 0</li>
|
---|
49 | <li class=fn>virtual bool <a href="#supportsDepth"><b>supportsDepth</b></a> ( int d ) const</li>
|
---|
50 | <li class=fn>virtual QGfx * <a href="#createGfx"><b>createGfx</b></a> ( unsigned char * bytes, int w, int h, int d, int linestep )</li>
|
---|
51 | <li class=fn>virtual QGfx * <a href="#screenGfx"><b>screenGfx</b></a> ()</li>
|
---|
52 | <li class=fn>virtual void <a href="#save"><b>save</b></a> ()</li>
|
---|
53 | <li class=fn>virtual void <a href="#restore"><b>restore</b></a> ()</li>
|
---|
54 | <li class=fn>virtual void <a href="#blank"><b>blank</b></a> ( bool on )</li>
|
---|
55 | <li class=fn>virtual int <a href="#pixmapOffsetAlignment"><b>pixmapOffsetAlignment</b></a> ()</li>
|
---|
56 | <li class=fn>virtual int <a href="#pixmapLinestepAlignment"><b>pixmapLinestepAlignment</b></a> ()</li>
|
---|
57 | <li class=fn>virtual bool <a href="#onCard"><b>onCard</b></a> ( unsigned char * p ) const</li>
|
---|
58 | <li class=fn>virtual bool <a href="#onCard-2"><b>onCard</b></a> ( unsigned char * p, ulong & offset ) const</li>
|
---|
59 | <li class=fn>virtual void <a href="#set"><b>set</b></a> ( unsigned int, unsigned int, unsigned int, unsigned int )</li>
|
---|
60 | <li class=fn>virtual int <a href="#alloc"><b>alloc</b></a> ( unsigned int r, unsigned int g, unsigned int b )</li>
|
---|
61 | <li class=fn>int <a href="#width"><b>width</b></a> () const</li>
|
---|
62 | <li class=fn>int <a href="#height"><b>height</b></a> () const</li>
|
---|
63 | <li class=fn>int <a href="#depth"><b>depth</b></a> () const</li>
|
---|
64 | <li class=fn>virtual int <a href="#pixmapDepth"><b>pixmapDepth</b></a> () const</li>
|
---|
65 | <li class=fn>int <a href="#pixelType"><b>pixelType</b></a> () const</li>
|
---|
66 | <li class=fn>int <a href="#linestep"><b>linestep</b></a> () const</li>
|
---|
67 | <li class=fn>int <a href="#deviceWidth"><b>deviceWidth</b></a> () const</li>
|
---|
68 | <li class=fn>int <a href="#deviceHeight"><b>deviceHeight</b></a> () const</li>
|
---|
69 | <li class=fn>uchar * <a href="#base"><b>base</b></a> () const</li>
|
---|
70 | <li class=fn>virtual uchar * <a href="#cache"><b>cache</b></a> ( int, int )</li>
|
---|
71 | <li class=fn>virtual void <a href="#uncache"><b>uncache</b></a> ( uchar * )</li>
|
---|
72 | <li class=fn>int <a href="#screenSize"><b>screenSize</b></a> () const</li>
|
---|
73 | <li class=fn>int <a href="#totalSize"><b>totalSize</b></a> () const</li>
|
---|
74 | <li class=fn>QRgb * <a href="#clut"><b>clut</b></a> ()</li>
|
---|
75 | <li class=fn>int <a href="#numCols"><b>numCols</b></a> ()</li>
|
---|
76 | <li class=fn>virtual QSize <a href="#mapToDevice"><b>mapToDevice</b></a> ( const QSize & s ) const</li>
|
---|
77 | <li class=fn>virtual QSize <a href="#mapFromDevice"><b>mapFromDevice</b></a> ( const QSize & s ) const</li>
|
---|
78 | <li class=fn>virtual QPoint <a href="#mapToDevice-2"><b>mapToDevice</b></a> ( const QPoint &, const QSize & ) const</li>
|
---|
79 | <li class=fn>virtual QPoint <a href="#mapFromDevice-2"><b>mapFromDevice</b></a> ( const QPoint &, const QSize & ) const</li>
|
---|
80 | <li class=fn>virtual QRect <a href="#mapToDevice-3"><b>mapToDevice</b></a> ( const QRect & r, const QSize & ) const</li>
|
---|
81 | <li class=fn>virtual QRect <a href="#mapFromDevice-3"><b>mapFromDevice</b></a> ( const QRect & r, const QSize & ) const</li>
|
---|
82 | <li class=fn>virtual QImage <a href="#mapToDevice-4"><b>mapToDevice</b></a> ( const QImage & i ) const</li>
|
---|
83 | <li class=fn>virtual QImage <a href="#mapFromDevice-4"><b>mapFromDevice</b></a> ( const QImage & i ) const</li>
|
---|
84 | <li class=fn>virtual QRegion <a href="#mapToDevice-5"><b>mapToDevice</b></a> ( const QRegion & r, const QSize & ) const</li>
|
---|
85 | <li class=fn>virtual QRegion <a href="#mapFromDevice-5"><b>mapFromDevice</b></a> ( const QRegion & r, const QSize & ) const</li>
|
---|
86 | <li class=fn>virtual int <a href="#transformOrientation"><b>transformOrientation</b></a> () const</li>
|
---|
87 | <li class=fn>virtual bool <a href="#isTransformed"><b>isTransformed</b></a> () const</li>
|
---|
88 | <li class=fn>virtual bool <a href="#isInterlaced"><b>isInterlaced</b></a> () const</li>
|
---|
89 | <li class=fn>virtual void <a href="#setDirty"><b>setDirty</b></a> ( const QRect & )</li>
|
---|
90 | <li class=fn>int * <a href="#opType"><b>opType</b></a> ()</li>
|
---|
91 | <li class=fn>int * <a href="#lastOp"><b>lastOp</b></a> ()</li>
|
---|
92 | </ul>
|
---|
93 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
94 |
|
---|
95 |
|
---|
96 |
|
---|
97 | The QScreen class and its descendants manage the framebuffer and
|
---|
98 | palette.
|
---|
99 | <p> QScreens act as factories for the screen cursor and QGfx's. QLinuxFbScreen
|
---|
100 | manages a Linux framebuffer; accelerated drivers subclass QLinuxFbScreen.
|
---|
101 | There can only be one screen in a Qt/Embedded application.
|
---|
102 | <p>See also <a href="qws.html">Qt/Embedded</a>.
|
---|
103 |
|
---|
104 | <hr><h2>Member Function Documentation</h2>
|
---|
105 | <h3 class=fn><a name="QScreen"></a>QScreen::QScreen ( int display_id )
|
---|
106 | </h3>
|
---|
107 |
|
---|
108 | Create a screen; the <em>display_id</em> is the number of the Qt/Embedded server
|
---|
109 | to connect to.
|
---|
110 |
|
---|
111 | <h3 class=fn><a name="~QScreen"></a>QScreen::~QScreen ()<tt> [virtual]</tt>
|
---|
112 | </h3>
|
---|
113 | Destroys a QScreen
|
---|
114 |
|
---|
115 | <h3 class=fn>int <a name="alloc"></a>QScreen::alloc ( unsigned int r, unsigned int g, unsigned int b )<tt> [virtual]</tt>
|
---|
116 | </h3>
|
---|
117 | Given an RGB value <em>r</em> <em>g</em> <em>b</em>, return an index which is the closest
|
---|
118 | match to it in the screen's palette. Used in paletted modes only.
|
---|
119 |
|
---|
120 | <h3 class=fn>uchar * <a name="base"></a>QScreen::base () const
|
---|
121 | </h3>
|
---|
122 |
|
---|
123 | Returns a pointer to the start of the framebuffer.
|
---|
124 |
|
---|
125 | <h3 class=fn>void <a name="blank"></a>QScreen::blank ( bool on )<tt> [virtual]</tt>
|
---|
126 | </h3>
|
---|
127 |
|
---|
128 | If <em>on</em> is true, blank the screen. Otherwise unblank it.
|
---|
129 |
|
---|
130 | <h3 class=fn>uchar * <a name="cache"></a>QScreen::cache ( int, int )<tt> [virtual]</tt>
|
---|
131 | </h3>
|
---|
132 |
|
---|
133 | This function is used to store pixmaps in graphics memory for the
|
---|
134 | use of the accelerated drivers. See QLinuxFbScreen (where the cacheing
|
---|
135 | is implemented) for more information.
|
---|
136 |
|
---|
137 | <h3 class=fn>QRgb * <a name="clut"></a>QScreen::clut ()
|
---|
138 | </h3>
|
---|
139 |
|
---|
140 | Returns the screen's color lookup table (color palette). This is only
|
---|
141 | valid in paletted modes (8bpp and lower).
|
---|
142 |
|
---|
143 | <h3 class=fn>bool <a name="connect"></a>QScreen::connect ( const <a href="qstring.html">QString</a> & displaySpec )<tt> [pure virtual]</tt>
|
---|
144 | </h3>
|
---|
145 |
|
---|
146 | This function is called by every Qt/Embedded application on startup.
|
---|
147 | It maps in the framebuffer and in the accelerated drivers the graphics
|
---|
148 | card control registers. <em>displaySpec</em> has the following syntax:
|
---|
149 | <p>
|
---|
150 | <tt>[gfx driver][:driver specific options][:display number]</tt>
|
---|
151 | <p>
|
---|
152 | for example if you want to use the mach64 driver on fb1 as display 2:
|
---|
153 | <p>
|
---|
154 | <tt>Mach64:/dev/fb1:2</tt>
|
---|
155 | <p>
|
---|
156 | <em>displaySpec</em> is passed in via the QWS_DISPLAY environment variable
|
---|
157 | or the -display command line parameter.
|
---|
158 |
|
---|
159 | <h3 class=fn>QGfx * <a name="createGfx"></a>QScreen::createGfx ( unsigned char * bytes, int w, int h, int d, int linestep )<tt> [virtual]</tt>
|
---|
160 | </h3>
|
---|
161 |
|
---|
162 | Creates a gfx on an arbitrary buffer <em>bytes</em>, width <em>w</em> and height <em>h</em> in
|
---|
163 | pixels, depth <em>d</em> and <em>linestep</em> (length in bytes of each line in the
|
---|
164 | buffer). Accelerated drivers can check to see if <em>bytes</em> points into
|
---|
165 | graphics memory and create an accelerated Gfx.
|
---|
166 |
|
---|
167 | <h3 class=fn>int <a name="depth"></a>QScreen::depth () const
|
---|
168 | </h3>
|
---|
169 |
|
---|
170 | Gives the depth in bits per pixel of the framebuffer. This is the number
|
---|
171 | of bits each pixel takes up rather than the number of significant bits,
|
---|
172 | so 24bpp and 32bpp express the same range of colors (8 bits of
|
---|
173 | red, green and blue)
|
---|
174 |
|
---|
175 | <h3 class=fn>int <a name="deviceHeight"></a>QScreen::deviceHeight () const
|
---|
176 | </h3>
|
---|
177 |
|
---|
178 | Gives the full height of the framebuffer device, as opposed to the
|
---|
179 | height which Qt/Embedded will actually use. These can differ if the
|
---|
180 | display is centered within the framebuffer.
|
---|
181 |
|
---|
182 | <h3 class=fn>int <a name="deviceWidth"></a>QScreen::deviceWidth () const
|
---|
183 | </h3>
|
---|
184 |
|
---|
185 | Gives the full width of the framebuffer device, as opposed to the
|
---|
186 | width which Qt/Embedded will actually use. These can differ if the
|
---|
187 | display is centered within the framebuffer.
|
---|
188 |
|
---|
189 | <h3 class=fn>void <a name="disconnect"></a>QScreen::disconnect ()<tt> [pure virtual]</tt>
|
---|
190 | </h3>
|
---|
191 |
|
---|
192 | This function is called by every Qt/Embedded application just
|
---|
193 | before exitting; it's normally used to unmap the framebuffer.
|
---|
194 |
|
---|
195 | <h3 class=fn>int <a name="height"></a>QScreen::height () const
|
---|
196 | </h3>
|
---|
197 |
|
---|
198 | Gives the height in pixels of the framebuffer.
|
---|
199 |
|
---|
200 | <h3 class=fn>int <a name="initCursor"></a>QScreen::initCursor ( void * end_of_location, bool init = FALSE )<tt> [virtual]</tt>
|
---|
201 | </h3>
|
---|
202 | This is used to initialize the software cursor - <em>end_of_location</em>
|
---|
203 | points to the address after the area where the cursor image can be stored.
|
---|
204 | <em>init</em> is true for the first application this method is called from
|
---|
205 | (the Qt/Embedded server), false otherwise.
|
---|
206 |
|
---|
207 | <h3 class=fn>bool <a name="initDevice"></a>QScreen::initDevice ()<tt> [pure virtual]</tt>
|
---|
208 | </h3>
|
---|
209 |
|
---|
210 | This function is called by the Qt/Embedded server when initializing
|
---|
211 | the framebuffer. Accelerated drivers use it to set up the graphics card.
|
---|
212 |
|
---|
213 | <h3 class=fn>bool <a name="isInterlaced"></a>QScreen::isInterlaced () const<tt> [virtual]</tt>
|
---|
214 | </h3>
|
---|
215 |
|
---|
216 | <p> Returns TRUE if the display is interlaced (for instance a
|
---|
217 | television screen); otherwise returns FALSE. If TRUE, drawing is
|
---|
218 | altered to look better on such displays.
|
---|
219 |
|
---|
220 | <h3 class=fn>bool <a name="isTransformed"></a>QScreen::isTransformed () const<tt> [virtual]</tt>
|
---|
221 | </h3>
|
---|
222 |
|
---|
223 | <p> Returns TRUE if the screen is transformed (for instance, rotated
|
---|
224 | 90 degrees); otherwise returns FALSE. QScreen's version always
|
---|
225 | returns FALSE.
|
---|
226 |
|
---|
227 | <h3 class=fn>int * <a name="lastOp"></a>QScreen::lastOp ()
|
---|
228 | </h3>
|
---|
229 |
|
---|
230 | <p> Returns the screens last operation.
|
---|
231 |
|
---|
232 | <h3 class=fn>int <a name="linestep"></a>QScreen::linestep () const
|
---|
233 | </h3>
|
---|
234 |
|
---|
235 | Returns the length in bytes of each scanline of the framebuffer.
|
---|
236 |
|
---|
237 | <h3 class=fn><a href="qsize.html">QSize</a> <a name="mapFromDevice"></a>QScreen::mapFromDevice ( const <a href="qsize.html">QSize</a> & s ) const<tt> [virtual]</tt>
|
---|
238 | </h3>
|
---|
239 |
|
---|
240 | <p> Map a framebuffer coordinate to the coordinate space used by the
|
---|
241 | application. Used by the rotated driver; the QScreen
|
---|
242 | implementation simply returns <em>s</em>.
|
---|
243 |
|
---|
244 | <h3 class=fn><a href="qpoint.html">QPoint</a> <a name="mapFromDevice-2"></a>QScreen::mapFromDevice ( const <a href="qpoint.html">QPoint</a> &, const <a href="qsize.html">QSize</a> & ) const<tt> [virtual]</tt>
|
---|
245 | </h3>
|
---|
246 | This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
|
---|
247 | <p> Map a framebuffer coordinate to the coordinate space used by the
|
---|
248 | application. Used by the rotated driver; the QScreen
|
---|
249 | implementation simply returns the point.
|
---|
250 |
|
---|
251 | <h3 class=fn><a href="qrect.html">QRect</a> <a name="mapFromDevice-3"></a>QScreen::mapFromDevice ( const <a href="qrect.html">QRect</a> & r, const <a href="qsize.html">QSize</a> & ) const<tt> [virtual]</tt>
|
---|
252 | </h3>
|
---|
253 | This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
|
---|
254 | <p> Map a framebuffer coordinate to the coordinate space used by the
|
---|
255 | application. Used by the rotated driver; the QScreen
|
---|
256 | implementation simply returns <em>r</em>.
|
---|
257 |
|
---|
258 | <h3 class=fn><a href="qimage.html">QImage</a> <a name="mapFromDevice-4"></a>QScreen::mapFromDevice ( const <a href="qimage.html">QImage</a> & i ) const<tt> [virtual]</tt>
|
---|
259 | </h3>
|
---|
260 | This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
|
---|
261 | <p> Transforms an image so that it matches the application coordinate
|
---|
262 | space (e.g. rotating it 90 degrees counter-clockwise). The QScreen
|
---|
263 | implementation simply returns <em>i</em>.
|
---|
264 |
|
---|
265 | <h3 class=fn><a href="qregion.html">QRegion</a> <a name="mapFromDevice-5"></a>QScreen::mapFromDevice ( const <a href="qregion.html">QRegion</a> & r, const <a href="qsize.html">QSize</a> & ) const<tt> [virtual]</tt>
|
---|
266 | </h3>
|
---|
267 | This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
|
---|
268 | <p> Transforms a region so that it matches the application coordinate
|
---|
269 | space (e.g. rotating it 90 degrees counter-clockwise). The QScreen
|
---|
270 | implementation simply returns <em>r</em>.
|
---|
271 |
|
---|
272 | <h3 class=fn><a href="qsize.html">QSize</a> <a name="mapToDevice"></a>QScreen::mapToDevice ( const <a href="qsize.html">QSize</a> & s ) const<tt> [virtual]</tt>
|
---|
273 | </h3>
|
---|
274 |
|
---|
275 | <p> Map a user coordinate to the one to actually draw. Used by the
|
---|
276 | rotated driver; the QScreen implementation simply returns <em>s</em>.
|
---|
277 |
|
---|
278 | <h3 class=fn><a href="qpoint.html">QPoint</a> <a name="mapToDevice-2"></a>QScreen::mapToDevice ( const <a href="qpoint.html">QPoint</a> &, const <a href="qsize.html">QSize</a> & ) const<tt> [virtual]</tt>
|
---|
279 | </h3>
|
---|
280 | This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
|
---|
281 | <p> Map a user coordinate to the one to actually draw. Used by the
|
---|
282 | rotated driver; the QScreen implementation simply returns the
|
---|
283 | point passed in.
|
---|
284 |
|
---|
285 | <h3 class=fn><a href="qrect.html">QRect</a> <a name="mapToDevice-3"></a>QScreen::mapToDevice ( const <a href="qrect.html">QRect</a> & r, const <a href="qsize.html">QSize</a> & ) const<tt> [virtual]</tt>
|
---|
286 | </h3>
|
---|
287 | This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
|
---|
288 | <p> Map a user coordinate to the one to actually draw. Used by the
|
---|
289 | rotated driver; the QScreen implementation simply returns <em>r</em>.
|
---|
290 |
|
---|
291 | <h3 class=fn><a href="qimage.html">QImage</a> <a name="mapToDevice-4"></a>QScreen::mapToDevice ( const <a href="qimage.html">QImage</a> & i ) const<tt> [virtual]</tt>
|
---|
292 | </h3>
|
---|
293 | This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
|
---|
294 | <p> Transforms an image so that it fits the device coordinate space
|
---|
295 | (e.g. rotating it 90 degrees clockwise). The QScreen
|
---|
296 | implementation simply returns <em>i</em>.
|
---|
297 |
|
---|
298 | <h3 class=fn><a href="qregion.html">QRegion</a> <a name="mapToDevice-5"></a>QScreen::mapToDevice ( const <a href="qregion.html">QRegion</a> & r, const <a href="qsize.html">QSize</a> & ) const<tt> [virtual]</tt>
|
---|
299 | </h3>
|
---|
300 | This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
|
---|
301 | <p> Transforms a region so that it fits the device coordinate space
|
---|
302 | (e.g. rotating it 90 degrees clockwise). The QScreen
|
---|
303 | implementation simply returns <em>r</em>.
|
---|
304 |
|
---|
305 | <h3 class=fn>int <a name="numCols"></a>QScreen::numCols ()
|
---|
306 | </h3>
|
---|
307 |
|
---|
308 | Returns the number of entries in the color table returned by <a href="#clut">clut</a>().
|
---|
309 |
|
---|
310 | <h3 class=fn>bool <a name="onCard"></a>QScreen::onCard ( unsigned char * p ) const<tt> [virtual]</tt>
|
---|
311 | </h3>
|
---|
312 |
|
---|
313 | Returns true if the buffer pointed to by <em>p</em> is within graphics card
|
---|
314 | memory, false if it's in main RAM.
|
---|
315 |
|
---|
316 | <h3 class=fn>bool <a name="onCard-2"></a>QScreen::onCard ( unsigned char * p, ulong & offset ) const<tt> [virtual]</tt>
|
---|
317 | </h3>
|
---|
318 |
|
---|
319 | This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
|
---|
320 | <p> This checks whether the buffer specified by <em>p</em> is on the card
|
---|
321 | (as per the other version of onCard) and returns an offset in bytes
|
---|
322 | from the start of graphics card memory in <em>offset</em> if it is.
|
---|
323 |
|
---|
324 | <h3 class=fn>int * <a name="opType"></a>QScreen::opType ()
|
---|
325 | </h3>
|
---|
326 |
|
---|
327 | <p> Returns the screen's operation type.
|
---|
328 |
|
---|
329 | <h3 class=fn>int <a name="pixelType"></a>QScreen::pixelType () const
|
---|
330 | </h3>
|
---|
331 |
|
---|
332 | Returns an integer (taking the same values as QGfx::PixelType)
|
---|
333 | that specifies the pixel storage format of the screen.
|
---|
334 |
|
---|
335 | <h3 class=fn>int <a name="pixmapDepth"></a>QScreen::pixmapDepth () const<tt> [virtual]</tt>
|
---|
336 | </h3>
|
---|
337 |
|
---|
338 | Gives the preferred depth for pixmaps. By default this is the same
|
---|
339 | as the screen depth, but for the VGA16 driver it's 8bpp.
|
---|
340 |
|
---|
341 | <h3 class=fn>int <a name="pixmapLinestepAlignment"></a>QScreen::pixmapLinestepAlignment ()<tt> [virtual]</tt>
|
---|
342 | </h3>
|
---|
343 |
|
---|
344 | Returns the value in bits to which individual scanlines of pixmaps held in
|
---|
345 | graphics card memory should be aligned. This is only useful for accelerated
|
---|
346 | drivers. By default the value returned is 64 but it can be overridden
|
---|
347 | by individual accelerated drivers.
|
---|
348 |
|
---|
349 | <h3 class=fn>int <a name="pixmapOffsetAlignment"></a>QScreen::pixmapOffsetAlignment ()<tt> [virtual]</tt>
|
---|
350 | </h3>
|
---|
351 |
|
---|
352 | Returns the value in bits to which the start address of pixmaps held in
|
---|
353 | graphics card memory should be aligned. This is only useful for accelerated
|
---|
354 | drivers. By default the value returned is 64 but it can be overridden
|
---|
355 | by individual accelerated drivers.
|
---|
356 |
|
---|
357 | <h3 class=fn>void <a name="restore"></a>QScreen::restore ()<tt> [virtual]</tt>
|
---|
358 | </h3>
|
---|
359 | Restores the state of the graphics card from a previous <a href="#save">save</a>()
|
---|
360 |
|
---|
361 | <h3 class=fn>void <a name="save"></a>QScreen::save ()<tt> [virtual]</tt>
|
---|
362 | </h3>
|
---|
363 | Saves the state of the graphics card - used so that, for instance,
|
---|
364 | the palette can be restored when switching between linux virtual
|
---|
365 | consoles. Hardware QScreen descendants should save register state
|
---|
366 | here if necessary if switching between virtual consoles (for
|
---|
367 | example to/from X) is to be permitted.
|
---|
368 |
|
---|
369 | <h3 class=fn>QGfx * <a name="screenGfx"></a>QScreen::screenGfx ()<tt> [virtual]</tt>
|
---|
370 | </h3>
|
---|
371 | Returns a QGfx (normally a QGfxRaster) initialized to point to the screen,
|
---|
372 | with an origin at 0,0 and a clip region covering the whole screen.
|
---|
373 |
|
---|
374 | <h3 class=fn>int <a name="screenSize"></a>QScreen::screenSize () const
|
---|
375 | </h3>
|
---|
376 |
|
---|
377 | Returns the size in bytes of the screen. This is always located at
|
---|
378 | the beginning of framebuffer memory (i.e. at <a href="#base">base</a>()).
|
---|
379 |
|
---|
380 | <h3 class=fn>void <a name="set"></a>QScreen::set ( unsigned int, unsigned int, unsigned int, unsigned int )<tt> [virtual]</tt>
|
---|
381 | </h3>
|
---|
382 | Sets an entry in the color palette.
|
---|
383 |
|
---|
384 | <h3 class=fn>void <a name="setDirty"></a>QScreen::setDirty ( const <a href="qrect.html">QRect</a> & )<tt> [virtual]</tt>
|
---|
385 | </h3>
|
---|
386 |
|
---|
387 | <p> Indicates which section of the screen has been altered. Used by
|
---|
388 | the VNC and VFB displays; the QScreen version does nothing.
|
---|
389 |
|
---|
390 | <h3 class=fn>void <a name="setMode"></a>QScreen::setMode ( int, int, int )<tt> [pure virtual]</tt>
|
---|
391 | </h3>
|
---|
392 |
|
---|
393 | This function can be used to set the framebuffer width, height and
|
---|
394 | depth. It's currently unused.
|
---|
395 |
|
---|
396 | <h3 class=fn>void <a name="shutdownDevice"></a>QScreen::shutdownDevice ()<tt> [virtual]</tt>
|
---|
397 | </h3>
|
---|
398 | Called by the Qt/Embedded server on shutdown; never called by
|
---|
399 | a Qt/Embedded client. This is intended to support graphics card specific
|
---|
400 | shutdown; the unaccelerated implementation simply hides the mouse cursor.
|
---|
401 |
|
---|
402 | <h3 class=fn>bool <a name="supportsDepth"></a>QScreen::supportsDepth ( int d ) const<tt> [virtual]</tt>
|
---|
403 | </h3>
|
---|
404 |
|
---|
405 | Returns true if the screen supports a particular color depth <em>d</em>.
|
---|
406 | Possible values are 1,4,8,16 and 32.
|
---|
407 |
|
---|
408 | <h3 class=fn>int <a name="totalSize"></a>QScreen::totalSize () const
|
---|
409 | </h3>
|
---|
410 |
|
---|
411 | Returns the size in bytes of available graphics card memory, including the
|
---|
412 | screen. Offscreen memory is only used by the accelerated drivers.
|
---|
413 |
|
---|
414 | <h3 class=fn>int <a name="transformOrientation"></a>QScreen::transformOrientation () const<tt> [virtual]</tt>
|
---|
415 | </h3>
|
---|
416 |
|
---|
417 | <p> Used by the rotated server. The QScreeen implementation returns 0.
|
---|
418 |
|
---|
419 | <h3 class=fn>void <a name="uncache"></a>QScreen::uncache ( uchar * )<tt> [virtual]</tt>
|
---|
420 | </h3>
|
---|
421 |
|
---|
422 | This function is called on pixmap destruction to remove them from
|
---|
423 | graphics card memory.
|
---|
424 |
|
---|
425 | <h3 class=fn>int <a name="width"></a>QScreen::width () const
|
---|
426 | </h3>
|
---|
427 |
|
---|
428 | Gives the width in pixels of the framebuffer.
|
---|
429 |
|
---|
430 | <!-- eof -->
|
---|
431 | <hr><p>
|
---|
432 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
433 | Copyright © 1995-2007
|
---|
434 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
435 | <table width=100% cellspacing=0 border=0><tr>
|
---|
436 | <td>Copyright © 2007
|
---|
437 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
438 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
439 | </table></div></address></body>
|
---|
440 | </html>
|
---|