uiacceltk/hitchcock/coretoolkit/inc/HuiFxConstants.h
changeset 0 15bf7259bb7c
child 5 433cbbb6a04b
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2008 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:   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef HUIFXCONSTANTS_H_
       
    21 #define HUIFXCONSTANTS_H_
       
    22 
       
    23 #include <e32cmn.h>
       
    24 
       
    25 enum THuiFxVisualSrcType
       
    26     {
       
    27     EVisualSrcVisual, // default
       
    28     EVisualSrcBitmap, // external bitmap
       
    29     // the external inputs are not supported yet.
       
    30     EVisualSrcInput1, // first participant in an effect between two visuals
       
    31     EVisualSrcInput2, // second participant in an effect between two visuals
       
    32     };
       
    33 
       
    34 enum THuiFxBlendingMode
       
    35     {
       
    36     EBlendingModeReplace,
       
    37     EBlendingModeOver,
       
    38     EBlendingModeMultiply,
       
    39     EBlendingModeAdditive,
       
    40     EBlendingModeDarken,
       
    41     EBlendingModeLighten,
       
    42     };
       
    43 
       
    44 enum THuiFxLayerType 
       
    45     {
       
    46     ELayerTypeUnknown,
       
    47     ELayerTypeGroup,
       
    48     ELayerTypeFilter,
       
    49     ELayerTypeVisual,
       
    50     };
       
    51 
       
    52 enum THuiFxFilterType
       
    53     {
       
    54     EFilterTypeUnknown,
       
    55     EFilterTypeDesaturate,
       
    56     EFilterTypeBlur,
       
    57     EFilterTypeGlow,
       
    58     EFilterTypeBrightnessContrast,
       
    59     EFilterTypeHSL, 
       
    60     EFilterTypeColorize,
       
    61     EFilterTypeOutline,
       
    62     EFilterTypeBevel,
       
    63     EFilterTypeTransform,
       
    64     // etc.
       
    65     };
       
    66 
       
    67 enum TRenderBufferType
       
    68     {
       
    69     EBufferTypeOnscreen = 0,
       
    70     EBufferTypeOffscreen
       
    71     };
       
    72 
       
    73 enum THuiFxRenderbufferUsage
       
    74     {
       
    75     ERenderbufferUsageReadWrite,
       
    76     ERenderbufferUsageReadOnly,
       
    77     ERenderbufferUsageWriteOnly,
       
    78     };
       
    79 
       
    80 enum THuiFxEngineType
       
    81     {
       
    82     EHuiFxEngineVg10 = 0,
       
    83     EHuiFxEngineGles20
       
    84     };
       
    85 
       
    86 // All literals needed in the parsing are collecter here because it is difficult
       
    87 // to find them in several different files.
       
    88 // Some literals were even defined twice in different .cpp files
       
    89 
       
    90 _LIT(KLitLayers, "layers" );
       
    91 _LIT(KLitLayerGroup, "layergroup" );
       
    92 _LIT(KLitFilter, "filter" );
       
    93 _LIT(KLitVisual, "visual" );
       
    94 
       
    95 // parameter for visual
       
    96 _LIT(KLitSrc, "src" ); // source for the effect
       
    97 
       
    98 _LIT(KLitBlending, "blending" );
       
    99 _LIT(KLitParam, "param" );
       
   100 _LIT(KLitReplace, "replace" );
       
   101 _LIT(KLitOver, "over" );
       
   102 _LIT(KLitMultiply, "multiply" );
       
   103 _LIT(KLitAdditive, "additive" );
       
   104 _LIT(KLitDarken, "darken" );
       
   105 _LIT(KLitLighten, "lighten" );
       
   106 
       
   107 _LIT(KLitType, "type" );
       
   108 _LIT(KLitName, "name" );
       
   109 _LIT(KLitRef, "ref" );
       
   110 _LIT(KLitAnim, "anim" );
       
   111 _LIT(KLitDuration, "duration" );
       
   112 
       
   113 _LIT(KLitStyle, "style" );
       
   114 _LIT(KLitKeyFrame, "keyframe" );
       
   115 _LIT(KLitHold, "hold" );
       
   116 _LIT(KLitLinear, "linear" );
       
   117 _LIT(KLitQuadraticBezier, "quadratic_bezier" );
       
   118 _LIT(KLitCubicBezier, "cubic_bezier" );
       
   119 _LIT(KLitInQuad, "inquad" );
       
   120 _LIT(KLitOutQuad, "outquad" );
       
   121 _LIT(KLitInOutQuad, "inoutquad" );
       
   122 _LIT(KLitOutInQuad, "outinquad" );
       
   123 _LIT(KLitInBack, "inback" );
       
   124 _LIT(KLitOutBack, "outback" );
       
   125 _LIT(KLitInOutBack, "inoutback" );
       
   126 _LIT(KLitOutInBack, "outinback" );
       
   127 /*
       
   128 _LIT(KLitDeclerate, "declerate");
       
   129 _LIT(KLitAccelerate, "accelerate");
       
   130 _LIT(KLitImpulse, "impulse");
       
   131 */
       
   132 _LIT(KLitAt, "at" );
       
   133 _LIT(KLitMarker, "marker" );
       
   134 _LIT(KLitLoopStart, "loop_start" );
       
   135 _LIT(KLitLoopEnd, "loop_end" );
       
   136 _LIT(KLitAux1, "aux1" );
       
   137 _LIT(KLitAux2, "aux2" );
       
   138 _LIT(KLitVisualWidth1, "visual_width" ); // deprecated
       
   139 _LIT(KLitVisualHeight1, "visual_height" ); // deprecated
       
   140 _LIT(KLitDisplayWidth1, "display_width" ); // deprecated
       
   141 _LIT(KLitDisplayHeight1, "display_height" ); // deprecated
       
   142 
       
   143 _LIT(KLitVisualWidth, "visual.width" );
       
   144 _LIT(KLitVisualHeight, "visual.height" );
       
   145 _LIT(KLitVisualTop, "visual.top" ); // top y coordinate
       
   146 _LIT(KLitVisualBottom, "visual.bottom" ); // bottom y coordinate
       
   147 _LIT(KLitVisualLeft, "visual.left" ); // left x coordinate
       
   148 _LIT(KLitVisualRight, "visual.right" ); // right x coordinate
       
   149 
       
   150 _LIT(KLitDisplayWidth, "screen.width" );
       
   151 _LIT(KLitDisplayHeight, "screen.height" );
       
   152 _LIT(KLitDisplayTop, "screen.top" );
       
   153 _LIT(KLitDisplayBottom, "screen.bottom" );
       
   154 _LIT(KLitDisplayLeft, "screen.left" );
       
   155 _LIT(KLitDisplayRight, "screen.right" );
       
   156 
       
   157 _LIT(KLitExtRectWidth, "extrect.width" );
       
   158 _LIT(KLitExtRectHeight, "extrect.height" );
       
   159 _LIT(KLitExtRectTop, "extrect.top" );
       
   160 _LIT(KLitExtRectBottom, "extrect.bottom" );
       
   161 _LIT(KLitExtRectLeft, "extrect.left" );
       
   162 _LIT(KLitExtRectRight, "extrect.right" );
       
   163 
       
   164 
       
   165 _LIT(KLitDesaturate, "desaturate" );
       
   166 _LIT(KLitBlur, "blur" );
       
   167 _LIT(KLitGlow, "glow" );
       
   168 _LIT(KLitBrightnessContrast, "brightness_contrast" );
       
   169 _LIT(KlitHSL, "hsl");
       
   170 _LIT(KlitColorize, "colorize");
       
   171 _LIT(KlitOutline, "outline");
       
   172 _LIT(KlitBevel, "bevel");
       
   173 _LIT(KlitTransform, "transform");
       
   174 _LIT(KLitDropShadow, "drop_shadow");
       
   175 
       
   176 _LIT(KLitItem, "item" ); // the visual itself, default if src has not been defined
       
   177 _LIT(KLitInput1, "input1" );
       
   178 _LIT(KLitInput2, "input2" );
       
   179 
       
   180 _LIT(KLitBlurX, "blur_x" );
       
   181 _LIT(KLitBlurY, "blur_y" );
       
   182 
       
   183 _LIT(KLitHue, "hue" );
       
   184 _LIT(KLitSaturation, "saturation" );
       
   185 _LIT(KLitLightness, "lightness" );
       
   186 
       
   187 _LIT(KLitOutlineX, "outline_x" );
       
   188 _LIT(KLitOutlineY, "outline_y" );
       
   189 _LIT(KLitSteepness, "steepness" );
       
   190 /*_LIT(KLitRed, "red" );
       
   191 _LIT(KLitGreen, "green" );
       
   192 _LIT(KLitBlue, "blue" );
       
   193 */
       
   194 
       
   195 _LIT(KLitBrightness, "brightness" );
       
   196 _LIT(KLitContrast, "contrast" );
       
   197  
       
   198 _LIT(KLitColor, "color" );
       
   199 
       
   200 _LIT(KLitOpacityParameter, "opacity" );
       
   201 
       
   202 _LIT(KLitStart, "start" );
       
   203 _LIT(KLitEnd, "end" );
       
   204 
       
   205 // Definitions common to visual layer and transform filter  
       
   206 _LIT(KLitTranslationX, "translation_x");
       
   207 _LIT(KLitTranslationY, "translation_y");
       
   208 _LIT(KLitTranslationZ, "translation_z");
       
   209 
       
   210 _LIT(KLitScaleX, "scale_x");
       
   211 _LIT(KLitScaleY, "scale_y");
       
   212 _LIT(KLitScaleZ, "scale_z");
       
   213 _LIT(KLitScaleOriginX, "scale_origin_x");
       
   214 _LIT(KLitScaleOriginY, "scale_origin_y");
       
   215 _LIT(KLitScaleOriginZ, "scale_origin_z");
       
   216 
       
   217 _LIT(KLitRotationOriginX, "rotation_origin_x");
       
   218 _LIT(KLitRotationOriginY, "rotation_origin_y");
       
   219 _LIT(KLitRotationOriginZ, "rotation_origin_z");
       
   220 _LIT(KLitRotationAngle, "rotation_angle");
       
   221 _LIT(KLitRotationAxisX, "rotation_axis_x");
       
   222 _LIT(KLitRotationAxisY, "rotation_axis_y");
       
   223 _LIT(KLitRotationAxisZ, "rotation_axis_z");
       
   224 
       
   225 _LIT(KLitSkewAngleX, "skew_angle_x");
       
   226 _LIT(KLitSkewAngleY, "skew_angle_y");
       
   227 _LIT(KLitSkewAngleZ, "skew_angle_z");
       
   228 _LIT(KLitSkewOriginX, "skew_origin_x");
       
   229 _LIT(KLitSkewOriginY, "skew_origin_y");
       
   230 _LIT(KLitSkewOriginZ, "skew_origin_z");
       
   231 
       
   232 
       
   233     
       
   234 #endif /*HUIFXCONSTANTS_H_*/