javauis/lcdui_akn/lcdui/inc/CMIDCanvasGraphicsItem.h
branchRCL_3
changeset 25 9ac0a0a7da70
parent 19 04becd199f91
child 46 4376525cdefb
equal deleted inserted replaced
24:0fd27995241b 25:9ac0a0a7da70
    19 #ifndef CMIDCANVASGRAPHICSITEM_H
    19 #ifndef CMIDCANVASGRAPHICSITEM_H
    20 #define CMIDCANVASGRAPHICSITEM_H
    20 #define CMIDCANVASGRAPHICSITEM_H
    21 
    21 
    22 // EXTERNAL INCLUDES
    22 // EXTERNAL INCLUDES
    23 #include <e32base.h>
    23 #include <e32base.h>
       
    24 
       
    25 // INTERNAL INCLUDES
    24 #include <MMIDCanvasGraphicsItem.h>
    26 #include <MMIDCanvasGraphicsItem.h>
    25 #include <MMIDCustomComponent.h>
    27 #include <MMIDCustomComponent.h>
       
    28 #include <MMIDScalable.h>
    26 
    29 
    27 // FORWARD DECLARATIONS
    30 // FORWARD DECLARATIONS
    28 class CMIDCanvasGraphicsItemPainter;
    31 class CMIDCanvasGraphicsItemPainter;
    29 class CCoeControl;
    32 class CCoeControl;
    30 class MMIDCustomComponentContainer;
    33 class MMIDCustomComponentContainer;
    35  * Defines the Canvas Graphics Item native side component.
    38  * Defines the Canvas Graphics Item native side component.
    36  */
    39  */
    37 NONSHARABLE_CLASS(CMIDCanvasGraphicsItem) :
    40 NONSHARABLE_CLASS(CMIDCanvasGraphicsItem) :
    38         public CBase,
    41         public CBase,
    39         public MMIDCanvasGraphicsItem,
    42         public MMIDCanvasGraphicsItem,
    40         public MMIDCustomComponent
    43         public MMIDCustomComponent,
       
    44         public MMIDScalable
    41 {
    45 {
    42 public: // Type definitions
    46 public: // Type definitions
    43 
    47 
    44     class TCtorParams
    48     class TCtorParams
    45     {
    49     {
    48         CMIDCanvasGraphicsItemPainter* iPainterHandle;
    52         CMIDCanvasGraphicsItemPainter* iPainterHandle;
    49         // The shared CMIDUtils instance. Not owned.
    53         // The shared CMIDUtils instance. Not owned.
    50         CMIDUtils* iUtils;
    54         CMIDUtils* iUtils;
    51 
    55 
    52         TCtorParams::TCtorParams() :
    56         TCtorParams::TCtorParams() :
    53                 iPainterHandle(NULL),
    57             iPainterHandle(NULL),
    54                 iUtils(NULL) {}
    58             iUtils(NULL) {}
    55     };
    59     };
    56 
    60 
    57 public: // Constructors and destructor
    61 public: // Constructors and destructor
    58 
    62 
    59     /**
    63     /**
   141     TBool IsTouchEnabled()
   145     TBool IsTouchEnabled()
   142     {
   146     {
   143         return EFalse;
   147         return EFalse;
   144     }
   148     }
   145 
   149 
       
   150 public: // From MMIDScalable
       
   151 
       
   152     TBool IsScalingOn() const;
       
   153 
       
   154 public: //Own methods
       
   155 
   146     /**
   156     /**
   147      * Handles fullscreen state of parent Canvas.
   157      * Handles fullscreen state of parent Canvas.
   148      *
   158      *
   149      * @since S60 5.0
   159      * @since S60 5.0
   150      */
   160      */
   282     // Container for this object. Not owned.
   292     // Container for this object. Not owned.
   283     MMIDCustomComponentContainer* iComponentContainer;
   293     MMIDCustomComponentContainer* iComponentContainer;
   284 
   294 
   285     // The shared CMIDUtils instance. Not owned.
   295     // The shared CMIDUtils instance. Not owned.
   286     CMIDUtils* iUtils;
   296     CMIDUtils* iUtils;
       
   297 
       
   298     // A non-scaled size of item. Needed by scaling.
       
   299     TSize iNonScaledSize;
       
   300 
       
   301     // A non-scaled position of item. Needed by scaling.
       
   302     TPoint iNonScaledPosition;
   287 };
   303 };
   288 
   304 
   289 #endif // CMIDCANVASGRAPHICSITEM_H
   305 #endif // CMIDCANVASGRAPHICSITEM_H
   290 
   306 
   291 // End of file
   307 // End of file