X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fdali-script-v8%2Fsrc%2Fconstants%2Fconstants-wrapper.cpp;h=eab1614bf2fcf5318f1f28344992ae7304b79cf8;hb=6991753931a9a5b8a6b253c5e9e1541556239d1b;hp=acaacb62d8969f699d8e6cdca155174b4b0a64f0;hpb=f4eece329a20b9b31e079ac3ebba57f50c24e5d0;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-script-v8/src/constants/constants-wrapper.cpp b/plugins/dali-script-v8/src/constants/constants-wrapper.cpp index acaacb6..eab1614 100644 --- a/plugins/dali-script-v8/src/constants/constants-wrapper.cpp +++ b/plugins/dali-script-v8/src/constants/constants-wrapper.cpp @@ -33,8 +33,10 @@ #include #include #include -#include +#include #include +#include +#include namespace Dali { @@ -176,29 +178,29 @@ const IntegerPair EnumTable[] = { "SAMPLING_MODE_NO_FILTER", SamplingMode::NO_FILTER }, { "SAMPLING_MODE_DONT_CARE", SamplingMode::DONT_CARE }, - { "BLEND_FACTOR_ZERO", BlendingFactor::ZERO }, - { "BLEND_FACTOR_ONE", BlendingFactor::ONE }, - { "BLEND_FACTOR_SRC_COLOR", BlendingFactor::SRC_COLOR }, - { "BLEND_FACTOR_ONE_MINUS_SRC_COLOR", BlendingFactor::ONE_MINUS_SRC_COLOR }, - { "BLEND_FACTOR_SRC_ALPHA", BlendingFactor::SRC_ALPHA }, - { "BLEND_FACTOR_ONE_MINUS_SRC_ALPHA", BlendingFactor::ONE_MINUS_SRC_ALPHA }, - { "BLEND_FACTOR_DST_ALPHA", BlendingFactor::DST_ALPHA }, - { "BLEND_FACTOR_ONE_MINUS_DST_ALPHA", BlendingFactor::ONE_MINUS_DST_ALPHA }, - { "BLEND_FACTOR_DST_COLOR", BlendingFactor::DST_COLOR }, - { "BLEND_FACTOR_ONE_MINUS_DST_COLOR", BlendingFactor::ONE_MINUS_DST_COLOR }, - { "BLEND_FACTOR_SRC_ALPHA_SATURATE", BlendingFactor::SRC_ALPHA_SATURATE }, - { "BLEND_FACTOR_CONSTANT_COLOR", BlendingFactor::CONSTANT_COLOR }, - { "BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR", BlendingFactor::ONE_MINUS_CONSTANT_COLOR }, - { "BLEND_FACTOR_CONSTANT_ALPHA" , BlendingFactor::CONSTANT_ALPHA }, - { "BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA", BlendingFactor::ONE_MINUS_CONSTANT_ALPHA }, - - { "BLENDING_OFF", BlendingMode::OFF }, - { "BLENDING_AUTO", BlendingMode::AUTO }, - { "BLENDING_ON", BlendingMode::ON }, - - { "BLEND_EQUATION_ADD", BlendingEquation::ADD }, - { "BLEND_EQUATION_SUBTRACT", BlendingEquation::SUBTRACT }, - { "BLEND_EQUATION_REVERSE_SUBTRACT", BlendingEquation::REVERSE_SUBTRACT }, + { "BLEND_FACTOR_ZERO", BlendFactor::ZERO }, + { "BLEND_FACTOR_ONE", BlendFactor::ONE }, + { "BLEND_FACTOR_SRC_COLOR", BlendFactor::SRC_COLOR }, + { "BLEND_FACTOR_ONE_MINUS_SRC_COLOR", BlendFactor::ONE_MINUS_SRC_COLOR }, + { "BLEND_FACTOR_SRC_ALPHA", BlendFactor::SRC_ALPHA }, + { "BLEND_FACTOR_ONE_MINUS_SRC_ALPHA", BlendFactor::ONE_MINUS_SRC_ALPHA }, + { "BLEND_FACTOR_DST_ALPHA", BlendFactor::DST_ALPHA }, + { "BLEND_FACTOR_ONE_MINUS_DST_ALPHA", BlendFactor::ONE_MINUS_DST_ALPHA }, + { "BLEND_FACTOR_DST_COLOR", BlendFactor::DST_COLOR }, + { "BLEND_FACTOR_ONE_MINUS_DST_COLOR", BlendFactor::ONE_MINUS_DST_COLOR }, + { "BLEND_FACTOR_SRC_ALPHA_SATURATE", BlendFactor::SRC_ALPHA_SATURATE }, + { "BLEND_FACTOR_CONSTANT_COLOR", BlendFactor::CONSTANT_COLOR }, + { "BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR", BlendFactor::ONE_MINUS_CONSTANT_COLOR }, + { "BLEND_FACTOR_CONSTANT_ALPHA" , BlendFactor::CONSTANT_ALPHA }, + { "BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA", BlendFactor::ONE_MINUS_CONSTANT_ALPHA }, + + { "BLEND_MODE_OFF", BlendMode::OFF }, + { "BLEND_MODE_AUTO", BlendMode::AUTO }, + { "BLEND_MODE_ON", BlendMode::ON }, + + { "BLEND_EQUATION_ADD", BlendEquation::ADD }, + { "BLEND_EQUATION_SUBTRACT", BlendEquation::SUBTRACT }, + { "BLEND_EQUATION_REVERSE_SUBTRACT", BlendEquation::REVERSE_SUBTRACT }, { "CAMERA_FREE_LOOK" , Camera::FREE_LOOK }, { "CAMERA_LOOK_AT_TARGET" , Camera::LOOK_AT_TARGET }, @@ -215,10 +217,14 @@ const IntegerPair EnumTable[] = { "WRAP_MODE_REPEAT", WrapMode::REPEAT }, { "WRAP_MODE_MIRRORED_REPEAT", WrapMode::MIRRORED_REPEAT }, - { "MATERIAL_NONE", Material::NONE }, - { "MATERIAL_CULL_BACK", Material::CULL_BACK }, - { "MATERIAL_CULL_FRONT", Material::CULL_FRONT }, - { "MATERIAL_CULL_BACK_AND_FRONT", Material::CULL_BACK_AND_FRONT }, + { "FACE_CULLING_NONE", FaceCullingMode::NONE }, + { "FACE_CULLING_BACK", FaceCullingMode::BACK }, + { "FACE_CULLING_FRONT", FaceCullingMode::FRONT }, + { "FACE_CULLING_FRONT_AND_BACK", FaceCullingMode::FRONT_AND_BACK }, + + { "DEPTH_WRITE_OFF", DepthWriteMode::OFF }, + { "DEPTH_WRITE_AUTO", DepthWriteMode::AUTO }, + { "DEPTH_WRITE_ON", DepthWriteMode::ON }, { "GEOMETRY_POINTS", Geometry::POINTS }, { "GEOMETRY_LINES", Geometry::LINES }, @@ -243,6 +249,34 @@ const IntegerPair EnumTable[] = { "PROPERTY_ARRAY", Property::ARRAY }, { "PROPERTY_MAP", Property::MAP }, { "PROPERTY_INVALID_INDEX", Property::INVALID_INDEX }, + { "PROPERTY_READ_ONLY", Property::READ_ONLY }, + { "PROPERTY_READ_WRITE", Property::READ_WRITE }, + { "PROPERTY_ANIMATABLE", Property::ANIMATABLE }, + + { "DIMENSION_WIDTH", Dimension::WIDTH }, + { "DIMENSION_HEIGHT", Dimension::HEIGHT }, + + { "ITEM_LAYOUT_LIST", Toolkit::DefaultItemLayout::LIST }, + { "ITEM_LAYOUT_GRID", Toolkit::DefaultItemLayout::GRID }, + + { "DIRECTION_BIAS_NONE", Toolkit::DirectionBiasNone }, + { "DIRECTION_BIAS_LEFT", Toolkit::DirectionBiasLeft }, + { "DIRECTION_BIAS_RIGHT", Toolkit::DirectionBiasRight }, + + { "ALPHA_FUNCTION_DEFAULT", AlphaFunction::DEFAULT }, + { "ALPHA_FUNCTION_LINEAR", AlphaFunction::LINEAR }, + { "ALPHA_FUNCTION_REVERSE", AlphaFunction::REVERSE }, + { "ALPHA_FUNCTION_EASE_IN_SQUARE", AlphaFunction::EASE_IN_SQUARE }, + { "ALPHA_FUNCTION_EASE_OUT_SQUARE", AlphaFunction::EASE_OUT_SQUARE }, + { "ALPHA_FUNCTION_EASE_IN", AlphaFunction::EASE_IN }, + { "ALPHA_FUNCTION_EASE_OUT", AlphaFunction::EASE_OUT }, + { "ALPHA_FUNCTION_EASE_IN_OUT", AlphaFunction::EASE_IN_OUT }, + { "ALPHA_FUNCTION_EASE_IN_SINE", AlphaFunction::EASE_IN_SINE }, + { "ALPHA_FUNCTION_EASE_OUT_SINE", AlphaFunction::EASE_OUT_SINE }, + { "ALPHA_FUNCTION_EASE_IN_OUT_SINE", AlphaFunction::EASE_IN_OUT_SINE }, + { "ALPHA_FUNCTION_BOUNCE", AlphaFunction::BOUNCE }, + { "ALPHA_FUNCTION_SIN", AlphaFunction::SIN }, + { "ALPHA_FUNCTION_EASE_OUT_BACK", AlphaFunction::EASE_OUT_BACK }, }; const unsigned int EnumTableCount = sizeof(EnumTable)/sizeof(EnumTable[0]);