X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fvisuals%2Fimage-visual-properties-devel.h;h=1c5451142af4b027b7e4c610881a980b885b30eb;hp=9968b5cf2e45be103997fc7eea1ec9af9e6cdc12;hb=2c6a6697e24d39ef061f134b39f30acc5c47b0cb;hpb=b0d0b451bd3414c8f502810f45fcacba2882d717 diff --git a/dali-toolkit/devel-api/visuals/image-visual-properties-devel.h b/dali-toolkit/devel-api/visuals/image-visual-properties-devel.h index 9968b5c..1c54511 100644 --- a/dali-toolkit/devel-api/visuals/image-visual-properties-devel.h +++ b/dali-toolkit/devel-api/visuals/image-visual-properties-devel.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_DEVEL_API_VISUALS_IMAGE_VISUAL_PROPERTIES_DEVEL_H /* - * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ enum Type ORIENTATION_CORRECTION = Dali::Toolkit::ImageVisual::Property::ORIENTATION_CORRECTION, /** - * @brief Overlays the auxiliary iamge on top of an NPatch image. + * @brief Overlays the auxiliary image on top of an NPatch image. * * The resulting visual image will be at least as large as the * smallest possible n-patch or the auxiliary image, whichever is @@ -97,7 +97,7 @@ enum Type /** * @brief The playing state the AnimatedVectorImageVisual will use. - * @details Name "playState", type PlayState (Property::INTEGER) + * @details Name "playState", Type PlayState::Type (Property::INTEGER) * @note This property is read-only. */ PLAY_STATE = ORIENTATION_CORRECTION + 5, @@ -114,7 +114,30 @@ enum Type * @details Name "totalFrameNumber", Type Property::INTEGER. * @note This property is read-only. */ - TOTAL_FRAME_NUMBER = ORIENTATION_CORRECTION + 7 + TOTAL_FRAME_NUMBER = ORIENTATION_CORRECTION + 7, + + /** + * @brief The stop behavior the AnimatedVectorImageVisual will use. + * @details Name "stopBehavior", Type StopBehavior::Type (Property::INTEGER) + * @note Default value is StopBehavior::CURRENT_FRAME. + */ + STOP_BEHAVIOR = ORIENTATION_CORRECTION + 8, + + /** + * @brief The looping mode the AnimatedVectorImageVisual will use. + * @details Name "loopingMode", Type LoopingMode::Type (Property::INTEGER) + * @note Default value is LoopingMode::RESTART. + */ + LOOPING_MODE = ORIENTATION_CORRECTION + 9, + + /** + * @brief The content information the AnimatedVectorImageVisual will use. + * @details Name "contentInfo", Type Property::MAP. + * The map contains the layer name as a key and Property::Array as a value. + * And the array contains 2 integer values which are the frame numbers, the start frame number and the end frame number of the layer. + * @note This property is read-only. + */ + CONTENT_INFO = ORIENTATION_CORRECTION + 10 }; } //namespace Property @@ -122,13 +145,47 @@ enum Type /** * @brief Enumeration for what state the animation is in. */ -enum class PlayState +namespace PlayState +{ + +enum Type { STOPPED, ///< Animation has stopped PLAYING, ///< The animation is playing PAUSED ///< The animation is paused }; +} // namespace PlayState + +/** + * @brief Enumeration for what to do when the animation is stopped. + */ +namespace StopBehavior +{ + +enum Type +{ + CURRENT_FRAME, ///< When the animation is stopped, the current frame is shown. + FIRST_FRAME, ///< When the animation is stopped, the first frame is shown. + LAST_FRAME ///< When the animation is stopped, the last frame is shown. +}; + +} // namespace StopBehavoir + +/** + * @brief Enumeration for what looping mode is in. + */ +namespace LoopingMode +{ + +enum Type +{ + RESTART, ///< When the animation arrives at the end in looping mode, the animation restarts from the beginning. + AUTO_REVERSE ///< When the animation arrives at the end in looping mode, the animation reverses direction and runs backwards again. +}; + +} // namespace LoopingMode + } // namespace DevelImageVisual } // namespace Toolkit