|
|
|
class CFbsScreenDevice : public CFbsDevice;
A graphics device interface that provides direct access to the screen, without the mediation of the window server.
The interface adds sprite support to the CFbsDevice base class.
MGraphicsDeviceMap - Interface class for mapping between twips and device-specific units (pixels).
CBase -
Base class for all classes to be instantiated on the heap.
CGraphicsDevice - Specifies the interface for concrete device classes.
CBitmapDevice - Defines an abstract interface for the capabilities and attributes of a bitmapped...
CFbsDevice - Abstract base class for graphics devices to which bitmaps and fonts can be drawn...
CFbsScreenDevice - A graphics device interface that provides direct access to the screen, without t...
Defined in CFbsScreenDevice:
CancelSprite()constCancels drawing the sprite. ChangeScreenDevice(CFbsScreenDevice *)Changes the screen device.DrawSpriteBegin()Starts drawing the sprite. DrawSpriteEnd()Ends drawing the sprite. GetPalette(CPalette *&)constGets the devices current palette.GetPixel(TRgb &,const TPoint &)constGets the RGB colour of an individual pixel on a bitmapped graphics device.GetScanLine(TDes8 &,const TPoint &,TInt,TDisplayMode)constCopies a scanline into a buffer.HardwareBitmap()Creates and returns a hardware bitmap (a bitmap which can be drawn to by a graph...HideSprite()constHides the sprite over the whole screen.HideSprite(const TRect &,const TRegion *)constHides the sprite within a particular region.HorizontalPixelsToTwips(TInt)constConverts a horizontal dimension from pixels to twips.HorizontalTwipsToPixels(TInt)constConverts a horizontal dimension from twips to pixels.NewL(TInt,TDisplayMode)Creates a new CFbsScreenDevice object. NewL(const TDesC &,TDisplayMode)Creates a new CFbsScreenDevice object.NewL(const TDesC &,TDisplayMode,TRgb)Creates a new CFbsScreenDevice object.PaletteAttributes(TBool &,TInt &)constGets the palette attributes of the device.ScreenNo()constQuery the screen number to which the object refers.SetAutoUpdate(TBool)Sets or unsets auto-update for the screen.SetPalette(CPalette *)Sets the device palette to the specified palette.ShowSprite(TSpriteBase *)constShows the specified sprite over the whole screen.ShowSprite(TSpriteBase *,const TRect &,const TRegion *)constShows the specified sprite within a particular region.SizeInTwips()constGets the size of the device area, in twips.Update()Forces any out of date region of the screen to update. Update(const TRegion &)Forces any out of date region of the screen to update, and additionally forces t...VerticalPixelsToTwips(TInt)constConverts a vertical dimension from pixels to twips.VerticalTwipsToPixels(TInt)constConverts a vertical dimension from twips to pixels.~CFbsScreenDevice()Frees all resources owned by the object prior to its destruction. Inherited from CBase:
Delete(CBase *)Deletes the specified object.Extension_(TUint,TAny *&,TAny *)Extension function operator new(TUint)Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)Initialises the object to binary zeroes.operator new(TUint,TLeave)Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)Allocates the object from the heap and then initialises its contents to binary z...Inherited from CBitmapDevice:
CreateBitmapContext(CBitmapContext *&)Creates a bitmap context for this bitmap device.Inherited from CFbsDevice:
AddFile(const TDesC &,TInt &)Adds a font file to the device's typeface store. The specified font file must be...CreateContext(CFbsBitGc *&)Creates a font and bitmap server graphics context for the device and activates i...CreateContext(CGraphicsContext *&)Creates a font and bitmap server graphics context for the device and activates i...DisplayMode()constGets the device's display mode.DisplayMode16M()Depending on the current graphics hardware this will return one of the 16M video...DrawingBegin(TBool)DrawingEnd(TBool)FontHeightInPixels(TInt,TInt)constGets the height, in pixels, of the specified typeface at one of its defined heig...FontHeightInTwips(TInt,TInt)constGets the height of a font in twips.GetDrawRect(TRect &)constGets logical coordinates of the drawing rectangle. If the device is not scaled, ...GetFontById(CFbsFont *&,TUid,const TAlgStyle &)Gets a specific bitmap font, identified by its UID, from the device's typeface s...GetFontById(CFont *&,TUid,const TAlgStyle &)Gets a specific bitmap font, identified by its UID, from the device's typeface s...GetNearestFontInPixels(CFbsFont *&,const TFontSpec &)Creates a client-side FBSERV font from those available in the device's typeface ...GetNearestFontInPixels(CFont *&,const TFontSpec &)Creates a client-side font from those available in the device's typeface store t...GetNearestFontInTwips(CFbsFont *&,const TFontSpec &)Creates a client-side FBSERV font from those available in the device's typeface ...GetNearestFontInTwips(CFont *&,const TFontSpec &)Provides access to a client-side font object in the device's typeface store that...GetNearestFontToDesignHeightInPixels(CFbsFont *&,const TFontSpec &)Creates a client-side FBSERV font from those available in the device's typeface ...GetNearestFontToDesignHeightInPixels(CFont *&,const TFontSpec &)Creates a client-side font from those available in the device's typeface store t...GetNearestFontToDesignHeightInTwips(CFbsFont *&,const TFontSpec &)Creates a client-side FBSERV font from those available in the device's typeface ...GetNearestFontToDesignHeightInTwips(CFont *&,const TFontSpec &)Creates a client-side font from those available in the device's typeface store t...GetNearestFontToMaxHeightInPixels(CFbsFont *&,const TFontSpec &,TInt)Creates a client-side FBSERV font from those available in the device's typeface ...GetNearestFontToMaxHeightInPixels(CFont *&,const TFontSpec &,TInt)Creates a client-side font from those available in the device's typeface store t...GetNearestFontToMaxHeightInTwips(CFbsFont *&,const TFontSpec &,TInt)Creates a client-side FBSERV font from those available in the device's typeface ...GetNearestFontToMaxHeightInTwips(CFont *&,const TFontSpec &,TInt)Creates a client-side font from those available in the device's typeface store t...GraphicsAccelerator()constGets a pointer to the 2D graphics accelerator owned by the device. If one is ava...NumTypefaces()constGets the number of typefaces supported by the device.Orientation()constGets the device's orientation. The orientation can be set using CFbsBitGc::SetOr...RectCompare(const TRect &,const CFbsDevice &,const TRect &)constCompares two rectangles, including their contents.ReleaseFont(CFont *)Marks the specified font as no longer needed by the user of the device.RemoveFile(TInt)Removes the specified font file from the device's typeface store. If the default...SetBits()Sets the bit level.SetCustomPalette(const CPalette *)Sets the variable 8 bits per pixel colour palette, replacing the system default ...SetScalingFactor(const TPoint &,TInt,TInt,TInt,TInt)Sets scaling factor by which the drawing device should scale the drawing images....SizeInPixels()constGets the size of the device, in pixels.TypefaceSupport(TTypefaceSupport &,TInt)constGets information about an indexed typeface.iBitBltMaskedBufferiDrawDeviceiFbsiGraphicsAcceleratoriOrientationiScreenDeviceiSpareiTypefaceStoreInherited from MGraphicsDeviceMap:
PixelsToTwips(const TPoint &)constConverts a point in pixels to a point in twips.PixelsToTwips(const TRect &)constConverts a rectangle in pixels to a rectangle in twips.TwipsToPixels(const TPoint &)constConverts a point in twips to a point in pixels.TwipsToPixels(const TRect &)constConverts a rectangle in twips to a rectangle in pixels.IMPORT_C static CFbsScreenDevice* NewL(const TDesC &aLibname, TDisplayMode aDispMode);
Creates a new CFbsScreenDevice object.
|
|
| Interface status: | deprecated | Use two param version instead. |
IMPORT_C static CFbsScreenDevice* NewL(const TDesC &aLibname, TDisplayMode aDispMode, TRgb aWhite);
Creates a new CFbsScreenDevice object.
|
|
IMPORT_C static CFbsScreenDevice* NewL(TInt aScreenNo, TDisplayMode aDispMode);
Creates a new CFbsScreenDevice object.
|
|
IMPORT_C virtual ~CFbsScreenDevice();
Frees all resources owned by the object prior to its destruction.
IMPORT_C virtual void GetScanLine(TDes8 &aBuf, const TPoint &aStartPixel, TInt aLength, TDisplayMode aDispMode) const;
Copies a scanline into a buffer.
This implements the pure virtual function CBitmapDevice::GetScanLine(TDes8 &,const TPoint &,TInt,TDisplayMode)const.
|
IMPORT_C virtual void GetPixel(TRgb &aColor, const TPoint &aPixel) const;
Gets the RGB colour of an individual pixel on a bitmapped graphics device.
This implements the pure virtual function CBitmapDevice::GetPixel(TRgb &,const TPoint &)const.
|
IMPORT_C virtual TInt HorizontalPixelsToTwips(TInt aPixels) const;
Converts a horizontal dimension from pixels to twips.
This implements the pure virtual function MGraphicsDeviceMap::HorizontalPixelsToTwips(TInt)const.
|
|
IMPORT_C virtual TInt VerticalPixelsToTwips(TInt aPixels) const;
Converts a vertical dimension from pixels to twips.
This implements the pure virtual function MGraphicsDeviceMap::VerticalPixelsToTwips(TInt)const.
|
|
IMPORT_C virtual TInt HorizontalTwipsToPixels(TInt aTwips) const;
Converts a horizontal dimension from twips to pixels.
This implements the pure virtual function MGraphicsDeviceMap::HorizontalTwipsToPixels(TInt)const.
|
|
IMPORT_C virtual TInt VerticalTwipsToPixels(TInt aTwips) const;
Converts a vertical dimension from twips to pixels.
This implements the pure virtual function MGraphicsDeviceMap::VerticalTwipsToPixels(TInt)const.
|
|
IMPORT_C void SetAutoUpdate(TBool aValue);
Sets or unsets auto-update for the screen.
|
IMPORT_C virtual TSpriteBase* HideSprite() const;
Hides the sprite over the whole screen.
|
IMPORT_C virtual TSpriteBase* HideSprite(const TRect &aRect, const TRegion *aClippingRegion) const;
Hides the sprite within a particular region.
|
|
IMPORT_C virtual void ShowSprite(TSpriteBase *aSprite) const;
Shows the specified sprite over the whole screen.
|
IMPORT_C virtual void ShowSprite(TSpriteBase *aSprite, const TRect &aRect, const TRegion *aClippingRegion) const;
Shows the specified sprite within a particular region.
|
IMPORT_C void ChangeScreenDevice(CFbsScreenDevice *aOldDevice);
Changes the screen device.
|
IMPORT_C virtual void PaletteAttributes(TBool &aModifiable, TInt &aNumEntries) const;
Gets the palette attributes of the device.
|
IMPORT_C virtual void SetPalette(CPalette *aPalette);
Sets the device palette to the specified palette.
|
IMPORT_C virtual TInt GetPalette(CPalette *&aPalette) const;
Gets the devices current palette.
|
|
IMPORT_C void Update(const TRegion &aRegion);
Forces any out of date region of the screen to update, and additionally forces the specified region to update.
|
IMPORT_C virtual TSize SizeInTwips() const;
Gets the size of the device area, in twips.
This implements the pure virtual function CGraphicsDevice::SizeInTwips()const.
|
CGraphicsDevice::SizeInTwips()constGets the size of the device area in twips.IMPORT_C RHardwareBitmap HardwareBitmap();
Creates and returns a hardware bitmap (a bitmap which can be drawn to by a graphics accelerator whose operations may be implemented in hardware or software), whose handle is to the screen.
This allows the caller to draw to the screen like any other hardware bitmap.
This function may not be supported on all hardware. If unsupported, it returns an RHardwareBitmap with a handle of zero.
The hardware bitmap can be used to draw directly to the screen. Use it to create a TAcceleratedBitmapSpec object, which can either be used to get a TAcceleratedBitmapInfo, or can be passed to a graphics operation (an instance of a class derived from class TGraphicsOperation) e.g. a bitblt to copy one part of the screen to another.
Direct screen access must only be carried out in combination with the Window Server's direct screen access classes; i.e. only use the hardware bitmap on the CFbsScreenDevice which you get from CDirectScreenAccess, and not from your own CFbsScreenDevice.
|
TAcceleratedBitmapSpecA utility class that provides access to the contents of a bitmap.TGraphicsOperationAbstract base class for all graphics operations.CGraphicsAccelerator::Operation(const TGraphicsOperation &)Requests the graphics accelerator to perform a single graphics operation.IMPORT_C TInt ScreenNo() const;
Query the screen number to which the object refers.
|