|
||
class CApaMaskedBitmap : public CFbsBitmap;
An application icon.
This is a bitmap and a mask, managed by the Font and Bitmap server.
An object of this type is passed to RApaLsSession::GetAppIcon(TUid,TInt,CApaMaskedBitmap &)const
to fetch a suitable application icon.
CBase
-
Base class for all classes to be instantiated on the heap.
CFbsBitmap
- Note that this class is not intended for user derivation. A bitmap managed by th...
CApaMaskedBitmap
- An application icon.
Defined in CApaMaskedBitmap
:
ExternalizeL(RWriteStream &)const
Externalises the application icon to the specified stream.InternalizeL(RReadStream &)
Internalizes the application icon from the read stream.Mask()const
Gets the icon's mask.NewL(const CApaMaskedBitmap *)
Creates a new application icon object, making a duplicate copy of an existing ap...NewLC()
Creates a default application icon object.SetMaskBitmap(CFbsBitmap *)
Sets the icon's mask~CApaMaskedBitmap()
Destructor.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 CFbsBitmap
:
BeginDataAccess()const
Marks the beginning of direct access to the bitmap data. This function prepares ...CleanAddress()const
CleanAddress(TUint32 *&)const
Compress()
Compress(TBitmapfileCompressionScheme)
Compresses bitmap in RAM. CompressInBackground()
Submits the bitmap for asynchronous background compression. No notification will...CompressInBackground(TBitmapfileCompressionScheme)
Submits the bitmap for asynchronous background compression. No notification will...CompressInBackground(TRequestStatus &)
Submits the bitmap for asynchronous background compression. CompressInBackground(TRequestStatus &,TBitmapfileCompressionScheme)
Submits the bitmap for asynchronous background compression. Create(const TSize &,TDisplayMode)
Creates a bitmap with the specified size and display mode. The bitmap is created...CreateHardwareBitmap(const TSize &,TDisplayMode,TUid)
Creates a hardware bitmap with a size and display mode. DataAddress()const
Gets the address of the first pixel in the bitmap. The first pixel is at the top...DisplayMode()const
Gets the display mode of the bitmap. Duplicate(TInt)
Duplicates a bitmap. This function does not create a copy of the bitmap. It just...EndDataAccess(TBool)const
Marks the end of direct access to the bitmap data. Use this function after endin...ExternalizeRectangleL(RWriteStream &,const TRect &)const
Externalises that area of the bitmap contained within a specified rectangular ar...GetPalette(CPalette *&)const
Gets the bitmap's palette. This is not currently supported. GetPixel(TRgb &,const TPoint &)const
Gets the RGB value of the specified pixel. GetScanLine(TDes8 &,const TPoint &,TInt,TDisplayMode)const
Gets the bitmap's scanline for the specified line starting from the specified po...GetScanLine(TDes8 &,const TPoint &,TInt,const TPoint &,TDisplayMode)const
Gets the bitmap's scanline for the specified line starting from the specified po...GetVerticalScanLine(TDes8 &,TInt,TDisplayMode)const
Gets the bitmap's vertical scanline starting at the specified x co-ordinate. Not...GetVerticalScanLine(TDes8 &,TInt,const TPoint &,TDisplayMode)const
Gets the bitmap's vertical scanline starting at the specified x co-ordinate and ...Handle()const
Gets the handle number of the bitmap. The returned value can be used to give ano...HardwareBitmapHandle()const
Returns the handle for the hardware bitmap which this CFbsBitmap is using. Header()const
Creates a bitmap header. This is used when streaming bitmaps to stores. HorizontalPixelsToTwips(TInt)const
Converts a horizontal dimension on the graphics device from pixels to twips. HorizontalTwipsToPixels(TInt)const
Converts a horizontal dimension on the graphics device from twips to pixels. InitialDisplayMode()const
Returns the display mode that was used to create the bitmap. IsCompressedInRAM()const
Tests whether the bitmap located in RAM has been compressed. IsFileInRom(RFile &,TUint32 *&)
Tests whether or not the specified file is in ROM. IsFileInRom(const TDesC &,TUint32 *&)
Tests whether or not the specified file is in ROM. IsLargeBitmap()const
Tests whether the bitmap is large. A bitmap is defined to be large if its size i...IsMonochrome()const
Tests whether or not the bitmap is monochrome. Monochrome bitmaps have a display...IsRomBitmap()const
Tests whether or not the bitmap is in ROM. Load(RFile &,TInt32,TBool)
Loads a specific bitmap from an opened multi-bitmap file handle. The bitmap may ...Load(RFile &,TInt32,TBool,TUint)
Loads a specific bitmap from an opened multi-bitmap file handle. The bitmap may ...Load(const TDesC &,TInt32,TBool)
Loads a specific bitmap from a multi-bitmap file. The bitmap may be shared by ot...Load(const TDesC &,TInt32,TBool,TUint)
Loads a specific bitmap from a multi-bitmap file. The bitmap may be shared by ot...LoadAndCompress(RFile &,TInt32,TBool)
Loads and compresses a specific bitmap from an opened multi-bitmap file handle. ...LoadAndCompress(RFile &,TInt32,TBool,TUint)
Loads and compresses a specific bitmap from an opened multi-bitmap file handle. ...LoadAndCompress(const TDesC &,TInt32,TBool)
Loads and compresses a specific bitmap from a multi-bitmap file. The bitmap may ...LoadAndCompress(const TDesC &,TInt32,TBool,TUint)
Loads and compresses a specific bitmap from a multi-bitmap file. The bitmap may ...LockHeap(TBool)const
Locks the global bitmap heap. This function is deprecated, since it is no longer...LockHeapLC(TBool)const
Locks the global bitmap heap, leaving on the clean-up stack a pointer to a TClea...PaletteAttributes(TBool &,TInt &)const
Gets the attributes of the bitmap's palette. This is not currently supported. Reset()
Releases the bitmap's handle from the font and bitmap server and decrements its ...Resize(const TSize &)
Resets the pixel-size of the bitmap. If the new size is bigger than the old, the...Save(RFile &)
Saves the bitmap as a direct file store using an opened file handle. The file st...Save(const TDesC &)
Saves the bitmap as a direct file store. The file store overwrites any existing ...ScanLineLength(TInt,TDisplayMode)
Gets the physical length in bytes of a scanline in memory. This is aligned to a ...SetDisplayMode(TDisplayMode)
Changes the display mode of the bitmap. The requested display mode cannot be gre...SetPalette(CPalette *)
Sets the bitmap's palette. This is not currently supported. SetRomBitmapL(CBitwiseBitmap *,TInt &)
Sets the bitmap to use a bitmap image stored in ROM. SetScanLine(TDes8 &,TInt)const
Sets the bitmap's horizontal scanline at the specified y co-ordinate to the scan...SetSizeInTwips(const MGraphicsDeviceMap *)
Sets the twip-size of the bitmap by converting the bitmaps pixel-size from pixel...SetSizeInTwips(const TSize &)
Sets the twip-size of the bitmap directly to the specified size. SizeInPixels()const
Gets the pixel-size of the bitmap. SizeInTwips()const
Gets the twip-size of the bitmap. StoreL(RFile &,TInt,const TDesC *,TInt32)
Constructs a multi-bitmap file using an opened file handle. StoreL(const TDesC &,TInt,const TDesC *,TInt32)
Constructs a multi-bitmap file. SwapWidthAndHeight()
Swaps the bitmap's width and height. For example, if the bitmap's size is (40, 2...UnlockHeap(TAny *)
UnlockHeap(TBool)const
Unlocks the global heap. This function is deprecated. See CFbsBitmap::LockHeap(T...VerticalPixelsToTwips(TInt)const
Converts a vertical dimension on the graphics device from pixels to twips. VerticalTwipsToPixels(TInt)const
Converts a vertical dimension on the graphics device from twips to pixels. RApaLsSession::GetAppIcon(TUid,TInt,CApaMaskedBitmap &)const
gets the bitmap handles from the Server, forms these up into a CApaMaskedBitmap...IMPORT_C static CApaMaskedBitmap* NewLC();
Creates a default application icon object.
|
IMPORT_C static CApaMaskedBitmap* NewL(const CApaMaskedBitmap *aSourceIcon);
Creates a new application icon object, making a duplicate copy of an existing application icon.
|
|
IMPORT_C ~CApaMaskedBitmap();
Destructor.
Frees resources owned by the object prior to its destruction.
IMPORT_C CFbsBitmap* Mask() const;
Gets the icon's mask.
|
IMPORT_C void InternalizeL(RReadStream &aStream);
Internalizes the application icon from the read stream.
|
IMPORT_C void ExternalizeL(RWriteStream &aStream) const;
Externalises the application icon to the specified stream.
|
IMPORT_C void SetMaskBitmap(CFbsBitmap *aMask);
Sets the icon's mask
|