|
Nokia N97 SDK Example Applications Guide |
#include <MyPicture.h>
Inheritance diagram for CMyPicture:

Definition at line 29 of file MyPicture.h.
Public Member Functions |
|
| CMyPicture (TSize aSize, CFbsBitmap &aBitmap) | |
| TBool | LineBreakPossible (TUint aClass, TBool aBeforePicture, TBool aHaveSpaces) const |
| void | Draw (CGraphicsContext &aGc, const TPoint &aTopLeft, const TRect &aClipRect, MGraphicsDeviceMap *aMap) const |
| void | ExternalizeL (RWriteStream &aStream) const |
| void | SetOriginalSizeInTwips (TSize aSize) |
| void | GetOriginalSizeInTwips (TSize &aSize) const |
Protected Attributes |
|
| TSize | iSizeInTwips |
| CFbsBitmap * | iBitmap |
|
||||||||||||
|
C++ default constructor.
Definition at line 23 of file MyPicture.cpp. 00024 : iSizeInTwips(aSize), iBitmap(&aBitmap) 00025 { 00026 }
|
|
||||||||||||||||
|
Prohibit linebreaks. Definition at line 32 of file MyPicture.cpp.
|
|
||||||||||||||||||||
|
Draw the picture Definition at line 43 of file MyPicture.cpp. References iBitmap, and iSizeInTwips. 00047 { 00048 TRect bitmapRect=aMap->TwipsToPixels(TRect(TPoint(),iSizeInTwips)); 00049 bitmapRect.Move(aTopLeft); 00050 aGc.Reset(); 00051 aGc.SetClippingRect(aClipRect); 00052 aGc.DrawBitmap(bitmapRect, iBitmap); 00053 }
|
|
|
There's no need for it in this , but must be implemented. Definition at line 59 of file MyPicture.cpp.
|
|
|
Sets the picture's size in twips.
Definition at line 68 of file MyPicture.cpp. References iSizeInTwips. 00069 { 00070 iSizeInTwips = aSize; 00071 }
|
|
|
Returns the picture's size in twips.
Definition at line 77 of file MyPicture.cpp. References iSizeInTwips. 00078 { 00079 aSize = iSizeInTwips; 00080 }
|
|
© Nokia 2009 |