msg_plat/smil_transition_api/inc/smiltransitioncommondefs.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2003-2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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 *
       
    14 * Description: smiltransitioncommondefs  declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef SMILTRANSITIONCOMMONDEFS_H
       
    21 #define SMILTRANSITIONCOMMONDEFS_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CONSTANTS
       
    27 _LIT( KBarWipe, "barWipe" );
       
    28 _LIT( KBoxWipe, "boxWipe" );
       
    29 _LIT( KFourBoxWipe, "fourBoxWipe" );
       
    30 _LIT( KBarnDoorWipe, "barnDoorWipe" );
       
    31 _LIT( KDiagonalWipe, "diagonalWipe" );
       
    32 _LIT( KBowTieWipe, "bowTieWipe" );
       
    33 _LIT( KMiscDiagonalWipe, "miscDiagonalWipe" );
       
    34 _LIT( KVeeWipe, "veeWipe" );
       
    35 _LIT( KBarnVeeWipe, "barnVeeWipe" );
       
    36 _LIT( KZigZagWipe, "zigZagWipe" );
       
    37 _LIT( KBarnZigZagWipe, "barnZigZagWipe" );
       
    38 _LIT( KTriangleWipe, "triangleWipe" );
       
    39 _LIT( KIrisWipe, "irisWipe" );
       
    40 _LIT( KArrowHeadWipe, "arrowHeadWipe" );
       
    41 _LIT( KPentagonWipe, "pentagonWipe" );
       
    42 _LIT( KHexagonWipe, "hexagonWipe" );
       
    43 _LIT( KEllipseWipe, "ellipseWipe" );
       
    44 _LIT( KEyeWipe, "eyeWipe" );
       
    45 _LIT( KRoundRectWipe, "roundRectWipe" );
       
    46 _LIT( KStarWipe, "starWipe" );
       
    47 _LIT( KMiscShapeWipe, "miscShapeWipe" );
       
    48 _LIT( KClockWipe, "clockWipe" );
       
    49 _LIT( KPinWheelWipe, "pinWheelWipe" );
       
    50 _LIT( KSingleSweepWipe, "singleSweepWipe" );
       
    51 _LIT( KFanWipe, "fanWipe" );
       
    52 _LIT( KDoubleFanWipe, "doubleFanWipe" );
       
    53 _LIT( KDoubleSweepWipe, "doubleSweepWipe" );
       
    54 _LIT( KSaloonDoorWipe, "saloonDoorWipe" );
       
    55 _LIT( KWindshieldWipe, "windshieldWipe" );
       
    56 _LIT( KSnakeWipe, "snakeWipe" );
       
    57 _LIT( KSpiralWipe, "spiralWipe" );
       
    58 _LIT( KParallelSnakesWipe, "parallelSnakesWipe" );
       
    59 _LIT( KBoxSnakesWipe, "boxSnakesWipe" );
       
    60 _LIT( KWaterfallWipe, "waterfallWipe" );
       
    61 _LIT( KPushWipe, "pushWipe" );
       
    62 _LIT( KSlideWipe, "slideWipe" );
       
    63 _LIT( KFade, "fade" );
       
    64 
       
    65 _LIT( KBottom, "bottom" );
       
    66 _LIT( KBottomCenter, "bottomCenter" );
       
    67 _LIT( KBottomLeft, "bottomLeft" );
       
    68 _LIT( KBottomLeftClockwise, "bottomLeftClockwise" );
       
    69 _LIT( KBottomLeftCounterClockwise, "bottomLeftCounterClockwise" );
       
    70 _LIT( KBottomLeftDiagonal, "bottomLeftDiagonal" );
       
    71 _LIT( KBottomRight, "bottomRight" );
       
    72 _LIT( KBottomRightClockwise, "bottomRightClockwise" );
       
    73 _LIT( KBottomRightCounterClockwise, "bottomRightCounterClockwise" );
       
    74 _LIT( KBottomRightDiagonal, "bottomRightDiagonal" );
       
    75 _LIT( KCenterRight, "centerRight" );
       
    76 _LIT( KCenterTop, "centerTop" );
       
    77 _LIT( KCircle, "circle" );
       
    78 _LIT( KClockwiseBottom, "clockwiseBottom" );
       
    79 _LIT( KClockwiseBottomRight, "clockwiseBottomRight" );
       
    80 _LIT( KClockwiseLeft, "clockwiseLeft" );
       
    81 _LIT( KClockwiseNine, "clockwiseNine" );
       
    82 _LIT( KClockwiseRight, "clockwiseRight" );
       
    83 _LIT( KClockwiseSix, "clockwiseSix" );
       
    84 _LIT( KClockwiseThree, "clockwiseThree" );
       
    85 _LIT( KClockwiseTop, "clockwiseTop" );
       
    86 _LIT( KClockwiseTopLeft, "clockwiseTopLeft" );
       
    87 _LIT( KClockwiseTwelve, "clockwiseTwelve" );
       
    88 _LIT( KCornersIn, "cornersIn" );
       
    89 _LIT( KCornersOut, "cornersOut" );
       
    90 _LIT( KCounterClockwiseBottomLeft, "counterClockwiseBottomLeft" );
       
    91 _LIT( KCounterClockwiseTopRight, "counterClockwiseTopRight" );
       
    92 _LIT( KCrossfade, "crossfade" );
       
    93 _LIT( KDiagonalBottomLeft, "diagonalBottomLeft" );
       
    94 _LIT( KDiagonalBottomLeftOpposite, "diagonalBottomLeftOpposite" );
       
    95 _LIT( KDiagonalTopLeft, "diagonalTopLeft" );
       
    96 _LIT( KDiagonalTopLeftOpposite, "diagonalTopLeftOpposite" );
       
    97 _LIT( KDiamond, "diamond" );
       
    98 _LIT( KDoubleBarnDoor, "doubleBarnDoor" );
       
    99 _LIT( KDoubleDiamond, "doubleDiamond" );
       
   100 _LIT( KDown, "down" );
       
   101 _LIT( KFadeFromColor, "fadeFromColor" );
       
   102 _LIT( KFadeToColor, "fadeToColor" );
       
   103 _LIT( KFanInHorizontal, "fanInHorizontal" );
       
   104 _LIT( KFanInVertical, "fanInVertical" );
       
   105 _LIT( KFanOutHorizontal, "fanOutHorizontal" );
       
   106 _LIT( KFanOutVertical, "fanOutVertical" );
       
   107 _LIT( KFivePoint, "fivePoint" );
       
   108 _LIT( KFourBlade, "fourBlade" );
       
   109 _LIT( KFourBoxHorizontal, "fourBoxHorizontal" );
       
   110 _LIT( KFourBoxVertical, "fourBoxVertical" );
       
   111 _LIT( KFourPoint, "fourPoint" );
       
   112 _LIT( KFromBottom, "fromBottom" );
       
   113 _LIT( KFromLeft, "fromLeft" );
       
   114 _LIT( KFromRight, "fromRight" );
       
   115 _LIT( KFromTop, "fromTop" );
       
   116 _LIT( KHeart, "heart" );
       
   117 _LIT( KHorizontal, "horizontal" );
       
   118 _LIT( KHorizontalLeft, "horizontalLeft" );
       
   119 _LIT( KHorizontalLeftSame, "horizontalLeftSame" );
       
   120 _LIT( KHorizontalRight, "horizontalRight" );
       
   121 _LIT( KHorizontalRightSame, "horizontalRightSame" );
       
   122 _LIT( KHorizontalTopLeftOpposite, "horizontalTopLeftOpposite" );
       
   123 _LIT( KHorizontalTopRightOpposite, "horizontalTopRightOpposite" );
       
   124 _LIT( KKeyhole, "keyhole" );
       
   125 _LIT( KLeft, "left" );
       
   126 _LIT( KLeftCenter, "leftCenter" );
       
   127 _LIT( KLeftToRight, "leftToRight" );
       
   128 _LIT( KOppositeHorizontal, "oppositeHorizontal" );
       
   129 _LIT( KOppositeVertical, "oppositeVertical" );
       
   130 _LIT( KParallelDiagonal, "parallelDiagonal" );
       
   131 _LIT( KParallelDiagonalBottomLeft, "parallelDiagonalBottomLeft" );
       
   132 _LIT( KParallelDiagonalTopLeft, "parallelDiagonalTopLeft" );
       
   133 _LIT( KParallelVertical, "parallelVertical" );
       
   134 _LIT( KRectangle, "rectangle" );
       
   135 _LIT( KRight, "right" );
       
   136 _LIT( KRightCenter, "rightCenter" );
       
   137 _LIT( KSixPoint, "sixPoint" );
       
   138 _LIT( KTop, "top" );
       
   139 _LIT( KTopCenter, "topCenter" );
       
   140 _LIT( KTopLeft, "topLeft" );
       
   141 _LIT( KTopLeftClockwise, "topLeftClockwise" );
       
   142 _LIT( KTopLeftCounterClockwise, "topLeftCounterClockwise" );
       
   143 _LIT( KTopLeftDiagonal, "topLeftDiagonal" );
       
   144 _LIT( KTopLeftHorizontal, "topLeftHorizontal" );
       
   145 _LIT( KTopLeftVertical, "topLeftVertical" );
       
   146 _LIT( KTopRight, "topRight" );
       
   147 _LIT( KTopRightClockwise, "topRightClockwise" );
       
   148 _LIT( KTopRightCounterClockwise, "topRightCounterClockwise" );
       
   149 _LIT( KTopRightDiagonal, "topRightDiagonal" );
       
   150 _LIT( KTopToBottom, "topToBottom" );
       
   151 _LIT( KTwoBladeHorizontal, "twoBladeHorizontal" );
       
   152 _LIT( KTwoBladeVertical, "twoBladeVertical" );
       
   153 _LIT( KTwoBoxBottom, "twoBoxBottom" );
       
   154 _LIT( KTwoBoxLeft, "twoBoxLeft" );
       
   155 _LIT( KTwoBoxRight, "twoBoxRight" );
       
   156 _LIT( KTwoBoxTop, "twoBoxTop" );
       
   157 _LIT( KUp, "up" );
       
   158 _LIT( KVertical, "vertical" );
       
   159 _LIT( KVerticalBottomLeftOpposite, "verticalBottomLeftOpposite" );
       
   160 _LIT( KVerticalBottomSame, "verticalBottomSame" );
       
   161 _LIT( KVerticalLeft, "verticalLeft" );
       
   162 _LIT( KVerticalRight, "verticalRight" );
       
   163 _LIT( KVerticalTopLeftOpposite, "verticalTopLeftOpposite" );
       
   164 _LIT( KVerticalTopSame, "verticalTopSame" );
       
   165 
       
   166 // MACROS
       
   167 #define ESmilTransitionResolution 100
       
   168 
       
   169 // DATA TYPES
       
   170 
       
   171 // FUNCTION PROTOTYPES
       
   172 
       
   173 // FORWARD DECLARATIONS
       
   174 
       
   175 // CLASS DECLARATION
       
   176 
       
   177 /**
       
   178 *  Transition definitions.
       
   179 *
       
   180 *  @lib smiltran.lib
       
   181 *  @since S60 2.1
       
   182 */
       
   183 class TTransitionDefs
       
   184     {
       
   185     public: // Enumerations.
       
   186     
       
   187         enum TTransitionType // Transitions types.
       
   188             {
       
   189             EBarWipe,
       
   190             EBoxWipe,
       
   191             EFourBoxWipe,
       
   192             EBarnDoorWipe,
       
   193             EDiagonalWipe,
       
   194             EBowTieWipe,
       
   195             EMiscDiagonalWipe,
       
   196             EVeeWipe,
       
   197             EBarnVeeWipe,
       
   198             EZigZagWipe,
       
   199             EBarnZigZagWipe,
       
   200             ETriangleWipe,
       
   201             EIrisWipe,
       
   202             EArrowHeadWipe,
       
   203             EPentagonWipe,
       
   204             EHexagonWipe,
       
   205             EEllipseWipe,
       
   206             EEyeWipe,
       
   207             ERoundRectWipe,
       
   208             EStarWipe,
       
   209             EMiscShapeWipe,
       
   210             EClockWipe,
       
   211             EPinWheelWipe,
       
   212             ESingleSweepWipe,
       
   213             EFanWipe,
       
   214             EDoubleFanWipe,
       
   215             EDoubleSweepWipe,
       
   216             ESaloonDoorWipe,
       
   217             EWindshieldWipe,
       
   218             ESnakeWipe,
       
   219             ESpiralWipe,
       
   220             EParallelSnakesWipe,
       
   221             EBoxSnakesWipe,
       
   222             EWaterfallWipe,
       
   223             EPushWipe,
       
   224             ESlideWipe,
       
   225             EFade
       
   226             };
       
   227 
       
   228         //
       
   229         // Subtypes
       
   230         enum TTransitionSubtype
       
   231             {
       
   232             EBottom,
       
   233             EBottomCenter,
       
   234             EBottomLeft,
       
   235             EBottomLeftClockwise,
       
   236             EBottomLeftCounterClockwise,
       
   237             EBottomLeftDiagonal,
       
   238             EBottomRight,
       
   239             EBottomRightClockwise,
       
   240             EBottomRightCounterClockwise,
       
   241             EBottomRightDiagonal,
       
   242             ECenterRight,
       
   243             ECenterTop,
       
   244             ECircle,
       
   245             EClockwiseBottom,
       
   246             EClockwiseBottomRight,
       
   247             EClockwiseLeft,
       
   248             EClockwiseNine,
       
   249             EClockwiseRight,
       
   250             EClockwiseSix,
       
   251             EClockwiseThree,
       
   252             EClockwiseTop,
       
   253             EClockwiseTopLeft,
       
   254             EClockwiseTwelve,
       
   255             ECornersIn,
       
   256             ECornersOut,
       
   257             ECounterClockwiseBottomLeft,
       
   258             ECounterClockwiseTopRight,
       
   259             ECrossfade,
       
   260             EDiagonalBottomLeft,
       
   261             EDiagonalBottomLeftOpposite,
       
   262             EDiagonalTopLeft,
       
   263             EDiagonalTopLeftOpposite,
       
   264             EDiamond,
       
   265             EDoubleBarnDoor,
       
   266             EDoubleDiamond,
       
   267             EDown,
       
   268             EFadeFromColor,
       
   269             EFadeToColor,
       
   270             EFanInHorizontal,
       
   271             EFanInVertical,
       
   272             EFanOutHorizontal,
       
   273             EFanOutVertical,
       
   274             EFivePoint,
       
   275             EFourBlade,
       
   276             EFourBoxHorizontal,
       
   277             EFourBoxVertical,
       
   278             EFourPoint,
       
   279             EFromBottom,
       
   280             EFromLeft,
       
   281             EFromRight,
       
   282             EFromTop,
       
   283             EHeart,
       
   284             EHorizontal,
       
   285             EHorizontalLeft,
       
   286             EHorizontalLeftSame,
       
   287             EHorizontalRight,
       
   288             EHorizontalRightSame,
       
   289             EHorizontalTopLeftOpposite,
       
   290             EHorizontalTopRightOpposite,
       
   291             EKeyhole,
       
   292             ELeft,
       
   293             ELeftCenter,
       
   294             ELeftToRight,
       
   295             EOppositeHorizontal,
       
   296             EOppositeVertical,
       
   297             EParallelDiagonal,
       
   298             EParallelDiagonalBottomLeft,
       
   299             EParallelDiagonalTopLeft,
       
   300             EParallelVertical,
       
   301             ERectangle,
       
   302             ERight,
       
   303             ERightCenter,
       
   304             ESixPoint,
       
   305             ETop,
       
   306             ETopCenter,
       
   307             ETopLeft,
       
   308             ETopLeftClockwise,
       
   309             ETopLeftCounterClockwise, 
       
   310             ETopLeftDiagonal,
       
   311             ETopLeftHorizontal,
       
   312             ETopLeftVertical,
       
   313             ETopRight,
       
   314             ETopRightClockwise,
       
   315             ETopRightCounterClockwise,
       
   316             ETopRightDiagonal,
       
   317             ETopToBottom,
       
   318             ETwoBladeHorizontal,
       
   319             ETwoBladeVertical,
       
   320             ETwoBoxBottom,
       
   321             ETwoBoxLeft,
       
   322             ETwoBoxRight,
       
   323             ETwoBoxTop,
       
   324             EUp,
       
   325             EVertical,
       
   326             EVerticalBottomLeftOpposite,
       
   327             EVerticalBottomSame,
       
   328             EVerticalLeft,
       
   329             EVerticalRight,
       
   330             EVerticalTopLeftOpposite,
       
   331             EVerticalTopSame,
       
   332 
       
   333             // some subtype reverse enumeration
       
   334             EBottomToTop,
       
   335             ERightToLeft
       
   336             };
       
   337     };
       
   338 
       
   339 #endif // SMILTRANSITIONCOMMONDEFS_H
       
   340