imageeditor/plugins/DrawPlugin/inc/drawpath.h
changeset 1 edfc90759b9f
equal deleted inserted replaced
0:57d4cdd99204 1:edfc90759b9f
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 * Ixonos Plc
       
    14 *
       
    15 * Description: 
       
    16 * Container for draw path.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef T_DRAWPATH_H
       
    22 #define T_DRAWPATH_H
       
    23 
       
    24 
       
    25 #include <e32cmn.h>
       
    26 #include <e32std.h>
       
    27 #include <gdi.h>
       
    28 
       
    29 /**
       
    30  *  Container for draw path (i.e.TDrawItems)
       
    31  *
       
    32  *
       
    33  *  @lib internal(filterdraw.dll)
       
    34  *  @since S60 5.0
       
    35  */
       
    36 NONSHARABLE_CLASS( CDrawPath ) : public CBase
       
    37     {
       
    38 public:
       
    39 
       
    40 	static CDrawPath* NewL();
       
    41 	~CDrawPath();
       
    42 
       
    43 public:
       
    44     /**
       
    45      * AddItemL.
       
    46      *
       
    47      * @since S60 5.0
       
    48      * Add new Item to array
       
    49      */
       
    50 	void AddItemL(TPoint aItem);
       
    51 	
       
    52     /**
       
    53      * ItemArray.
       
    54      *
       
    55      * @since S60 5.0
       
    56      * @return Pointer to item array.
       
    57      * ownership not transferred.
       
    58      */
       
    59 	CArrayFix<TPoint>* ItemArray() const {return iItemArray;};
       
    60 		
       
    61     /**
       
    62      * Color.
       
    63      *
       
    64      * @since S60 5.0
       
    65      * @return Path color
       
    66      */
       
    67 	TRgb Color() const {return iColor;};
       
    68     
       
    69     /**
       
    70      * SetColor. (defalt KRgbRed)
       
    71      *
       
    72      * @since S60 5.0
       
    73      * @param aRgb Path color
       
    74      */	
       
    75 	void SetColor(TRgb aRgb){iColor=aRgb;};
       
    76 	
       
    77 	/**
       
    78      * Size.
       
    79      *
       
    80      * @since S60 5.0
       
    81      * @return Path size
       
    82      */
       
    83 	TSize Size() const {return iSize;};
       
    84     
       
    85     /**
       
    86      * SetSize.
       
    87      *
       
    88      * @since S60 5.0
       
    89      * @param aSize Path size
       
    90      */	
       
    91 	void SetSize(TSize aSize){iSize=aSize;};
       
    92 
       
    93 private: // C'tor
       
    94 
       
    95     CDrawPath();
       
    96        
       
    97 private: // data
       
    98 
       
    99     /**
       
   100      * Path color 
       
   101      */
       
   102     TRgb iColor;
       
   103     /**
       
   104      * Path Size
       
   105      */
       
   106 	TSize iSize;
       
   107     /**
       
   108      * Array of pahts
       
   109      */	
       
   110 	CArrayFix<TPoint>* iItemArray;
       
   111     };
       
   112 
       
   113 #endif // T_DRAWPATH_H