Join Now
Quality Rating:
  • Currently 1.0 / 5
(1.0 / 5 - 1 vote cast)
Expertise Level:
  • Currently 1.0 / 5
(1.0 / 5 - 1 vote cast)

This page was last modified 08:01, 16 April 2007.

Direct Screen Access

From Forum Nokia Wiki


Contents

Introduction

Direct screen access is a way of drawing to the screen without using the window server. As this avoids client-server communication, it is much faster, and mostly useful for games and video. Note that some interaction with the window server is needed in order to prevent the application from drawing over other application's data.


class CDirectScreenAccess : public CActive;

Members defined in CDirectScreenAccess are:

DrawingRegion()

Gets the clipping region to draw to.

inline RRegion *DrawingRegion();

Gc()

Gets the graphics context for drawing to the screen. This is set up by calling StartL(). Its origin is set so that you should use window coordinates to specify which part of the screen to draw to and its clipping region is set to the visible part of the window.

inline CFbsBitGc *Gc();

NewL()

Allocates and constructs the object and adds it to the current active scheduler.

static IMPORT_C CDirectScreenAccess *NewL(RWsSession &aWs, CWsScreenDevice 
&aScreenDevice, RWindowBase &aWin, MDirectScreenAccess &aAbort);

ScreenDevice()

Gets the screen device to draw to.

inline CFbsScreenDevice *&ScreenDevice();


StartL()

Informs the window server that you are going to start direct screen access and sets up a graphics context with which you can draw to the screen.

IMPORT_C void StartL();


Note

MDirectScreenAccess is the interface for restarting direct screen access.

virtual void Restart(RDirectScreenAccess::TTerminationReasons aReason)=0;

This function is called by the window server as soon as direct screen access can resume.

This function should call CDirectScreenAccess::StartL() within a trap harness. If this leaves, e.g. through lack of memory, direct screen access cannot be restarted. StartL() re-calculates the clipping region, so that if direct screen access was aborted because another window appeared in front of it, that window will not be overwritten when direct screen access resumes.


Links

How to draw image to screen directly

Example1

Example2

http://discussion.forum.nokia.com/forum/showthread.php?t=30763

--

Related Discussions
Thread Thread Starter Forum Replies Last Post
Screen saver ! Nitin SuperByte General Symbian C++ 4 2007-11-13 05:55
direct radio access stefan.na Symbian Networking & Messaging 1 2003-07-31 10:18
Using the whole CANVAS pat4nadia Mobile Java General 1 2004-02-21 14:44
Direct HTTP connection problem jfurton General Browsing 0 2002-05-14 19:10
FT PJ2ME access HELP shahzad73 Mobile Java Tools & SDKs 1 2003-02-05 08:03
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX