[NUI] Add ImageVisual property index to use VectorAnimationVisual (#765)
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 26 Mar 2019 03:46:51 +0000 (12:46 +0900)
committerGitHub <noreply@github.com>
Tue, 26 Mar 2019 03:46:51 +0000 (12:46 +0900)
src/Tizen.NUI/src/public/NUIConstants.cs

index 05ea25c..5e374cb 100755 (executable)
@@ -1661,122 +1661,180 @@ namespace Tizen.NUI
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         public static readonly int URL = NDalic.IMAGE_VISUAL_URL;
-        /// <summary>
-        /// The URL of the alpha mask image.
-        /// </summary>
-        /// <since_tizen> 3 </since_tizen>
-        public static readonly int AlphaMaskURL = NDalic.IMAGE_VISUAL_ALPHA_MASK_URL;
+
         /// <summary>
         /// Fitting options, used when resizing images to fit desired dimensions.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         public static readonly int FittingMode = NDalic.IMAGE_VISUAL_FITTING_MODE;
+
         /// <summary>
         /// Filtering options, used when resizing images to sample original pixels.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         public static readonly int SamplingMode = NDalic.IMAGE_VISUAL_SAMPLING_MODE;
+
         /// <summary>
         /// The desired image width.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         public static readonly int DesiredWidth = NDalic.IMAGE_VISUAL_DESIRED_WIDTH;
+
         /// <summary>
         /// The desired image height.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         public static readonly int DesiredHeight = NDalic.IMAGE_VISUAL_DESIRED_HEIGHT;
+
         /// <summary>
         /// Whether to load the image synchronously.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         public static readonly int SynchronousLoading = NDalic.IMAGE_VISUAL_SYNCHRONOUS_LOADING;
+
         /// <summary>
         /// If true, only draws the borders.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         public static readonly int BorderOnly = NDalic.IMAGE_VISUAL_BORDER_ONLY;
+
         /// <summary>
         /// The image area to be displayed.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         public static readonly int PixelArea = NDalic.IMAGE_VISUAL_PIXEL_AREA;
+
         /// <summary>
         /// The wrap mode for u coordinate.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         public static readonly int WrapModeU = NDalic.IMAGE_VISUAL_WRAP_MODE_U;
+
         /// <summary>
         /// The wrap mode for v coordinate.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         public static readonly int WrapModeV = NDalic.IMAGE_VISUAL_WRAP_MODE_V;
+
         /// <summary>
         /// The border of the image.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         public static readonly int Border = NDalic.IMAGE_VISUAL_BORDER;
+
         /// <summary>
         /// Whether to use the texture atlas.
         /// </summary>
         /// <since_tizen> 5 </since_tizen>
         public static readonly int Atlasing = NDalic.IMAGE_VISUAL_BORDER + 1;
+
         /// <summary>
-        /// The scale factor to apply to the content image before masking.
-        /// </summary>
-        /// <since_tizen> 4 </since_tizen>
-        public static readonly int MaskContentScale = NDalic.IMAGE_VISUAL_MASK_CONTENT_SCALE;
-        /// <summary>
-        /// Whether to crop image to mask or scale mask to fit image
+        /// The URL of the alpha mask image.
         /// </summary>
-        /// <since_tizen> 4 </since_tizen>
-        public static readonly int CropToMask = NDalic.IMAGE_VISUAL_CROP_TO_MASK;
+        /// <since_tizen> 3 </since_tizen>
+        public static readonly int AlphaMaskURL = NDalic.IMAGE_VISUAL_ALPHA_MASK_URL;
+
         /// <summary>
         /// Defines the batch size for pre-loading images in the AnimatedImageVisual
         /// </summary>
         /// <since_tizen> 4 </since_tizen>
         public static readonly int BatchSize = NDalic.IMAGE_VISUAL_BATCH_SIZE;
+
         /// <summary>
         /// Defines the cache size for loading images in the AnimatedImageVisual
         /// </summary>
         /// <since_tizen> 4 </since_tizen>
         public static readonly int CacheSize = NDalic.IMAGE_VISUAL_CACHE_SIZE;
+
         /// <summary>
         /// The number of milliseconds between each frame in the AnimatedImageVisual
         /// </summary>
         /// <since_tizen> 4 </since_tizen>
         public static readonly int FrameDelay = NDalic.IMAGE_VISUAL_FRAME_DELAY;
+
         /// <summary>
-        /// The number of times the AnimatedImageVisual will be looped.
-        /// The default is -1. If the value is less than 0, loop unlimited. Otherwise, loop loopCount times.
+        /// The scale factor to apply to the content image before masking.
         /// </summary>
-        /// <since_tizen> 5 </since_tizen>
-        public static readonly int LoopCount = NDalic.IMAGE_VISUAL_LOOP_COUNT;
+        /// <since_tizen> 4 </since_tizen>
+        public static readonly int MaskContentScale = NDalic.IMAGE_VISUAL_MASK_CONTENT_SCALE;
+
         /// <summary>
-        /// The policy to determine when an image should no longer be cached.
+        /// Whether to crop image to mask or scale mask to fit image
         /// </summary>
-        /// <since_tizen> 5 </since_tizen>
-        public static readonly int ReleasePolicy = NDalic.IMAGE_VISUAL_RELEASE_POLICY;
+        /// <since_tizen> 4 </since_tizen>
+        public static readonly int CropToMask = NDalic.IMAGE_VISUAL_CROP_TO_MASK;
+
         /// <summary>
         /// The policy to determine when an image should be loaded.
         /// </summary>
         /// <since_tizen> 5 </since_tizen>
         public static readonly int LoadPolicy = NDalic.IMAGE_VISUAL_LOAD_POLICY;
+
+        /// <summary>
+        /// The policy to determine when an image should no longer be cached.
+        /// </summary>
+        /// <since_tizen> 5 </since_tizen>
+        public static readonly int ReleasePolicy = NDalic.IMAGE_VISUAL_RELEASE_POLICY;
+
         /// <summary>
         /// Determines if image orientation should be corrected so that the image displays as it was intended.
         /// </summary>
         /// <since_tizen> 5 </since_tizen>
         public static readonly int OrientationCorrection = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION;
+
         /// <summary>
         /// Overlays the auxiliary image on top of an NPatch image.
         /// </summary>
         /// <since_tizen> 5 </since_tizen>
         public static readonly int AuxiliaryImageURL = NDalic.IMAGE_VISUAL_AUXILIARY_IMAGE_URL;
+
         /// <summary>
         /// Alpha value for the auxiliary image, without affecting the underlying NPatch image
         /// </summary>
         /// <since_tizen> 5 </since_tizen>
         public static readonly int AuxiliaryImageAlpha = NDalic.IMAGE_VISUAL_AUXILIARY_IMAGE_ALPHA;
+
+        /// <summary>
+        /// The number of times the AnimatedImageVisual will be looped.
+        /// The default is -1. If the value is less than 0, loop unlimited. Otherwise, loop loopCount times.
+        /// </summary>
+        /// <since_tizen> 5 </since_tizen>
+        public static readonly int LoopCount = NDalic.IMAGE_VISUAL_LOOP_COUNT;
+
+        /// <summary>
+        /// The playing range the AnimatedVectorImageVisual will use.
+        /// Animation will play between the values specified. Both values should be between 0-1,
+        /// otherwise they will be ignored. If the range provided is not in proper order ( minimum,maximum ), it will be reordered.
+        /// Type Property::VECTOR2, between 0 and 1
+        /// Default 0 and 1
+        /// </summary>
+        /// <remarks>
+        /// Inhouse API
+        /// </remarks>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public static readonly int PlayRange = OrientationCorrection + 4;
+
+        /// <summary>
+        /// The playing state the AnimatedVectorImageVisual will use.
+        /// Type PlayState (Property::INTEGER)
+        /// This property is read-only.
+        /// </summary>
+        /// <remarks>
+        /// Inhouse API
+        /// </remarks>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public static readonly int PlayState = OrientationCorrection + 5;
+
+        /// <summary>
+        /// The animation progress the AnimatedVectorImageVisual will use.
+        /// Type Property::FLOAT, between [0, 1] or between the play range if specified
+        /// This property is read-only.
+        /// </summary>
+        /// <remarks>
+        /// Inhouse API
+        /// </remarks>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public static readonly int CurrentProgress = OrientationCorrection + 6;
     }
 
     /// <summary>