source: trunk/doc/html/qscreen.html@ 190

Last change on this file since 190 was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 22.2 KB
Line 
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"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { 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&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;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&nbsp;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
35palette.
36<a href="#details">More...</a>
37<p><tt>#include &lt;<a href="qgfx_qws-h.html">qgfx_qws.h</a>&gt;</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&nbsp;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&nbsp;QString&nbsp;&amp;&nbsp;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&nbsp;*&nbsp;end_of_location, bool&nbsp;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&nbsp;d ) const</li>
50<li class=fn>virtual QGfx * <a href="#createGfx"><b>createGfx</b></a> ( unsigned&nbsp;char&nbsp;*&nbsp;bytes, int&nbsp;w, int&nbsp;h, int&nbsp;d, int&nbsp;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&nbsp;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&nbsp;char&nbsp;*&nbsp;p ) const</li>
58<li class=fn>virtual bool <a href="#onCard-2"><b>onCard</b></a> ( unsigned&nbsp;char&nbsp;*&nbsp;p, ulong&nbsp;&amp;&nbsp;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&nbsp;int&nbsp;r, unsigned&nbsp;int&nbsp;g, unsigned&nbsp;int&nbsp;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&nbsp;QSize&nbsp;&amp;&nbsp;s ) const</li>
77<li class=fn>virtual QSize <a href="#mapFromDevice"><b>mapFromDevice</b></a> ( const&nbsp;QSize&nbsp;&amp;&nbsp;s ) const</li>
78<li class=fn>virtual QPoint <a href="#mapToDevice-2"><b>mapToDevice</b></a> ( const QPoint &amp;, const QSize &amp; ) const</li>
79<li class=fn>virtual QPoint <a href="#mapFromDevice-2"><b>mapFromDevice</b></a> ( const QPoint &amp;, const QSize &amp; ) const</li>
80<li class=fn>virtual QRect <a href="#mapToDevice-3"><b>mapToDevice</b></a> ( const&nbsp;QRect&nbsp;&amp;&nbsp;r, const QSize &amp; ) const</li>
81<li class=fn>virtual QRect <a href="#mapFromDevice-3"><b>mapFromDevice</b></a> ( const&nbsp;QRect&nbsp;&amp;&nbsp;r, const QSize &amp; ) const</li>
82<li class=fn>virtual QImage <a href="#mapToDevice-4"><b>mapToDevice</b></a> ( const&nbsp;QImage&nbsp;&amp;&nbsp;i ) const</li>
83<li class=fn>virtual QImage <a href="#mapFromDevice-4"><b>mapFromDevice</b></a> ( const&nbsp;QImage&nbsp;&amp;&nbsp;i ) const</li>
84<li class=fn>virtual QRegion <a href="#mapToDevice-5"><b>mapToDevice</b></a> ( const&nbsp;QRegion&nbsp;&amp;&nbsp;r, const QSize &amp; ) const</li>
85<li class=fn>virtual QRegion <a href="#mapFromDevice-5"><b>mapFromDevice</b></a> ( const&nbsp;QRegion&nbsp;&amp;&nbsp;r, const QSize &amp; ) 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 &amp; )</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
97The QScreen class and its descendants manage the framebuffer and
98palette.
99<p> QScreens act as factories for the screen cursor and QGfx's. QLinuxFbScreen
100manages a Linux framebuffer; accelerated drivers subclass QLinuxFbScreen.
101There 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&nbsp;display_id )
106</h3>
107
108Create a screen; the <em>display_id</em> is the number of the Qt/Embedded server
109to connect to.
110
111<h3 class=fn><a name="~QScreen"></a>QScreen::~QScreen ()<tt> [virtual]</tt>
112</h3>
113Destroys a QScreen
114
115<h3 class=fn>int <a name="alloc"></a>QScreen::alloc ( unsigned&nbsp;int&nbsp;r, unsigned&nbsp;int&nbsp;g, unsigned&nbsp;int&nbsp;b )<tt> [virtual]</tt>
116</h3>
117Given an RGB value <em>r</em> <em>g</em> <em>b</em>, return an index which is the closest
118match 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
123Returns a pointer to the start of the framebuffer.
124
125<h3 class=fn>void <a name="blank"></a>QScreen::blank ( bool&nbsp;on )<tt> [virtual]</tt>
126</h3>
127
128If <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
133This function is used to store pixmaps in graphics memory for the
134use of the accelerated drivers. See QLinuxFbScreen (where the cacheing
135is implemented) for more information.
136
137<h3 class=fn>QRgb * <a name="clut"></a>QScreen::clut ()
138</h3>
139
140Returns the screen's color lookup table (color palette). This is only
141valid in paletted modes (8bpp and lower).
142
143<h3 class=fn>bool <a name="connect"></a>QScreen::connect ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;displaySpec )<tt> [pure virtual]</tt>
144</h3>
145
146This function is called by every Qt/Embedded application on startup.
147It maps in the framebuffer and in the accelerated drivers the graphics
148card control registers. <em>displaySpec</em> has the following syntax:
149<p>
150<tt>[gfx driver][:driver specific options][:display number]</tt>
151<p>
152for 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
157or the -display command line parameter.
158
159<h3 class=fn>QGfx * <a name="createGfx"></a>QScreen::createGfx ( unsigned&nbsp;char&nbsp;*&nbsp;bytes, int&nbsp;w, int&nbsp;h, int&nbsp;d, int&nbsp;linestep )<tt> [virtual]</tt>
160</h3>
161
162Creates a gfx on an arbitrary buffer <em>bytes</em>, width <em>w</em> and height <em>h</em> in
163pixels, depth <em>d</em> and <em>linestep</em> (length in bytes of each line in the
164buffer). Accelerated drivers can check to see if <em>bytes</em> points into
165graphics memory and create an accelerated Gfx.
166
167<h3 class=fn>int <a name="depth"></a>QScreen::depth () const
168</h3>
169
170Gives the depth in bits per pixel of the framebuffer. This is the number
171of bits each pixel takes up rather than the number of significant bits,
172so 24bpp and 32bpp express the same range of colors (8 bits of
173red, green and blue)
174
175<h3 class=fn>int <a name="deviceHeight"></a>QScreen::deviceHeight () const
176</h3>
177
178Gives the full height of the framebuffer device, as opposed to the
179height which Qt/Embedded will actually use. These can differ if the
180display is centered within the framebuffer.
181
182<h3 class=fn>int <a name="deviceWidth"></a>QScreen::deviceWidth () const
183</h3>
184
185Gives the full width of the framebuffer device, as opposed to the
186width which Qt/Embedded will actually use. These can differ if the
187display is centered within the framebuffer.
188
189<h3 class=fn>void <a name="disconnect"></a>QScreen::disconnect ()<tt> [pure virtual]</tt>
190</h3>
191
192This function is called by every Qt/Embedded application just
193before 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
198Gives the height in pixels of the framebuffer.
199
200<h3 class=fn>int <a name="initCursor"></a>QScreen::initCursor ( void&nbsp;*&nbsp;end_of_location, bool&nbsp;init = FALSE )<tt> [virtual]</tt>
201</h3>
202This is used to initialize the software cursor - <em>end_of_location</em>
203points 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
210This function is called by the Qt/Embedded server when initializing
211the 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
217television screen); otherwise returns FALSE. If TRUE, drawing is
218altered 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
22490 degrees); otherwise returns FALSE. QScreen's version always
225returns 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
235Returns 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&nbsp;<a href="qsize.html">QSize</a>&nbsp;&amp;&nbsp;s ) const<tt> [virtual]</tt>
238</h3>
239
240<p> Map a framebuffer coordinate to the coordinate space used by the
241application. Used by the rotated driver; the QScreen
242implementation simply returns <em>s</em>.
243
244<h3 class=fn><a href="qpoint.html">QPoint</a> <a name="mapFromDevice-2"></a>QScreen::mapFromDevice ( const&nbsp;<a href="qpoint.html">QPoint</a>&nbsp;&amp;, const&nbsp;<a href="qsize.html">QSize</a>&nbsp;&amp; ) const<tt> [virtual]</tt>
245</h3>
246This 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
248application. Used by the rotated driver; the QScreen
249implementation simply returns the point.
250
251<h3 class=fn><a href="qrect.html">QRect</a> <a name="mapFromDevice-3"></a>QScreen::mapFromDevice ( const&nbsp;<a href="qrect.html">QRect</a>&nbsp;&amp;&nbsp;r, const&nbsp;<a href="qsize.html">QSize</a>&nbsp;&amp; ) const<tt> [virtual]</tt>
252</h3>
253This 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
255application. Used by the rotated driver; the QScreen
256implementation simply returns <em>r</em>.
257
258<h3 class=fn><a href="qimage.html">QImage</a> <a name="mapFromDevice-4"></a>QScreen::mapFromDevice ( const&nbsp;<a href="qimage.html">QImage</a>&nbsp;&amp;&nbsp;i ) const<tt> [virtual]</tt>
259</h3>
260This 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
262space (e.g. rotating it 90 degrees counter-clockwise). The QScreen
263implementation simply returns <em>i</em>.
264
265<h3 class=fn><a href="qregion.html">QRegion</a> <a name="mapFromDevice-5"></a>QScreen::mapFromDevice ( const&nbsp;<a href="qregion.html">QRegion</a>&nbsp;&amp;&nbsp;r, const&nbsp;<a href="qsize.html">QSize</a>&nbsp;&amp; ) const<tt> [virtual]</tt>
266</h3>
267This 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
269space (e.g. rotating it 90 degrees counter-clockwise). The QScreen
270implementation simply returns <em>r</em>.
271
272<h3 class=fn><a href="qsize.html">QSize</a> <a name="mapToDevice"></a>QScreen::mapToDevice ( const&nbsp;<a href="qsize.html">QSize</a>&nbsp;&amp;&nbsp;s ) const<tt> [virtual]</tt>
273</h3>
274
275<p> Map a user coordinate to the one to actually draw. Used by the
276rotated 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&nbsp;<a href="qpoint.html">QPoint</a>&nbsp;&amp;, const&nbsp;<a href="qsize.html">QSize</a>&nbsp;&amp; ) const<tt> [virtual]</tt>
279</h3>
280This 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
282rotated driver; the QScreen implementation simply returns the
283point passed in.
284
285<h3 class=fn><a href="qrect.html">QRect</a> <a name="mapToDevice-3"></a>QScreen::mapToDevice ( const&nbsp;<a href="qrect.html">QRect</a>&nbsp;&amp;&nbsp;r, const&nbsp;<a href="qsize.html">QSize</a>&nbsp;&amp; ) const<tt> [virtual]</tt>
286</h3>
287This 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
289rotated 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&nbsp;<a href="qimage.html">QImage</a>&nbsp;&amp;&nbsp;i ) const<tt> [virtual]</tt>
292</h3>
293This 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
296implementation simply returns <em>i</em>.
297
298<h3 class=fn><a href="qregion.html">QRegion</a> <a name="mapToDevice-5"></a>QScreen::mapToDevice ( const&nbsp;<a href="qregion.html">QRegion</a>&nbsp;&amp;&nbsp;r, const&nbsp;<a href="qsize.html">QSize</a>&nbsp;&amp; ) const<tt> [virtual]</tt>
299</h3>
300This 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
303implementation simply returns <em>r</em>.
304
305<h3 class=fn>int <a name="numCols"></a>QScreen::numCols ()
306</h3>
307
308Returns 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&nbsp;char&nbsp;*&nbsp;p ) const<tt> [virtual]</tt>
311</h3>
312
313Returns true if the buffer pointed to by <em>p</em> is within graphics card
314memory, false if it's in main RAM.
315
316<h3 class=fn>bool <a name="onCard-2"></a>QScreen::onCard ( unsigned&nbsp;char&nbsp;*&nbsp;p, ulong&nbsp;&amp;&nbsp;offset ) const<tt> [virtual]</tt>
317</h3>
318
319This 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
322from 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
332Returns an integer (taking the same values as QGfx::PixelType)
333that 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
338Gives the preferred depth for pixmaps. By default this is the same
339as 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
344Returns the value in bits to which individual scanlines of pixmaps held in
345graphics card memory should be aligned. This is only useful for accelerated
346drivers. By default the value returned is 64 but it can be overridden
347by individual accelerated drivers.
348
349<h3 class=fn>int <a name="pixmapOffsetAlignment"></a>QScreen::pixmapOffsetAlignment ()<tt> [virtual]</tt>
350</h3>
351
352Returns the value in bits to which the start address of pixmaps held in
353graphics card memory should be aligned. This is only useful for accelerated
354drivers. By default the value returned is 64 but it can be overridden
355by individual accelerated drivers.
356
357<h3 class=fn>void <a name="restore"></a>QScreen::restore ()<tt> [virtual]</tt>
358</h3>
359Restores 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>
363Saves the state of the graphics card - used so that, for instance,
364the palette can be restored when switching between linux virtual
365consoles. Hardware QScreen descendants should save register state
366here if necessary if switching between virtual consoles (for
367example to/from X) is to be permitted.
368
369<h3 class=fn>QGfx * <a name="screenGfx"></a>QScreen::screenGfx ()<tt> [virtual]</tt>
370</h3>
371Returns a QGfx (normally a QGfxRaster) initialized to point to the screen,
372with 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
377Returns the size in bytes of the screen. This is always located at
378the 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>
382Sets an entry in the color palette.
383
384<h3 class=fn>void <a name="setDirty"></a>QScreen::setDirty ( const&nbsp;<a href="qrect.html">QRect</a>&nbsp;&amp; )<tt> [virtual]</tt>
385</h3>
386
387<p> Indicates which section of the screen has been altered. Used by
388the 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
393This function can be used to set the framebuffer width, height and
394depth. It's currently unused.
395
396<h3 class=fn>void <a name="shutdownDevice"></a>QScreen::shutdownDevice ()<tt> [virtual]</tt>
397</h3>
398Called by the Qt/Embedded server on shutdown; never called by
399a Qt/Embedded client. This is intended to support graphics card specific
400shutdown; the unaccelerated implementation simply hides the mouse cursor.
401
402<h3 class=fn>bool <a name="supportsDepth"></a>QScreen::supportsDepth ( int&nbsp;d ) const<tt> [virtual]</tt>
403</h3>
404
405Returns true if the screen supports a particular color depth <em>d</em>.
406Possible values are 1,4,8,16 and 32.
407
408<h3 class=fn>int <a name="totalSize"></a>QScreen::totalSize () const
409</h3>
410
411Returns the size in bytes of available graphics card memory, including the
412screen. 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
422This function is called on pixmap destruction to remove them from
423graphics card memory.
424
425<h3 class=fn>int <a name="width"></a>QScreen::width () const
426</h3>
427
428Gives the width in pixels of the framebuffer.
429
430<!-- eof -->
431<hr><p>
432This file is part of the <a href="index.html">Qt toolkit</a>.
433Copyright &copy; 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 &copy; 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>
Note: See TracBrowser for help on using the repository browser.