From: dongsug-song <35130733+dongsug-song@users.noreply.github.com> Date: Tue, 26 Mar 2019 03:46:51 +0000 (+0900) Subject: [NUI] Add ImageVisual property index to use VectorAnimationVisual (#765) X-Git-Tag: 5.5_M2~272 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca92c30a167bc5f535690794e9edf1b0f8160474;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Add ImageVisual property index to use VectorAnimationVisual (#765) --- diff --git a/src/Tizen.NUI/src/public/NUIConstants.cs b/src/Tizen.NUI/src/public/NUIConstants.cs index 05ea25c..5e374cb 100755 --- a/src/Tizen.NUI/src/public/NUIConstants.cs +++ b/src/Tizen.NUI/src/public/NUIConstants.cs @@ -1661,122 +1661,180 @@ namespace Tizen.NUI /// /// 3 public static readonly int URL = NDalic.IMAGE_VISUAL_URL; - /// - /// The URL of the alpha mask image. - /// - /// 3 - public static readonly int AlphaMaskURL = NDalic.IMAGE_VISUAL_ALPHA_MASK_URL; + /// /// Fitting options, used when resizing images to fit desired dimensions. /// /// 3 public static readonly int FittingMode = NDalic.IMAGE_VISUAL_FITTING_MODE; + /// /// Filtering options, used when resizing images to sample original pixels. /// /// 3 public static readonly int SamplingMode = NDalic.IMAGE_VISUAL_SAMPLING_MODE; + /// /// The desired image width. /// /// 3 public static readonly int DesiredWidth = NDalic.IMAGE_VISUAL_DESIRED_WIDTH; + /// /// The desired image height. /// /// 3 public static readonly int DesiredHeight = NDalic.IMAGE_VISUAL_DESIRED_HEIGHT; + /// /// Whether to load the image synchronously. /// /// 3 public static readonly int SynchronousLoading = NDalic.IMAGE_VISUAL_SYNCHRONOUS_LOADING; + /// /// If true, only draws the borders. /// /// 3 public static readonly int BorderOnly = NDalic.IMAGE_VISUAL_BORDER_ONLY; + /// /// The image area to be displayed. /// /// 3 public static readonly int PixelArea = NDalic.IMAGE_VISUAL_PIXEL_AREA; + /// /// The wrap mode for u coordinate. /// /// 3 public static readonly int WrapModeU = NDalic.IMAGE_VISUAL_WRAP_MODE_U; + /// /// The wrap mode for v coordinate. /// /// 3 public static readonly int WrapModeV = NDalic.IMAGE_VISUAL_WRAP_MODE_V; + /// /// The border of the image. /// /// 3 public static readonly int Border = NDalic.IMAGE_VISUAL_BORDER; + /// /// Whether to use the texture atlas. /// /// 5 public static readonly int Atlasing = NDalic.IMAGE_VISUAL_BORDER + 1; + /// - /// The scale factor to apply to the content image before masking. - /// - /// 4 - public static readonly int MaskContentScale = NDalic.IMAGE_VISUAL_MASK_CONTENT_SCALE; - /// - /// Whether to crop image to mask or scale mask to fit image + /// The URL of the alpha mask image. /// - /// 4 - public static readonly int CropToMask = NDalic.IMAGE_VISUAL_CROP_TO_MASK; + /// 3 + public static readonly int AlphaMaskURL = NDalic.IMAGE_VISUAL_ALPHA_MASK_URL; + /// /// Defines the batch size for pre-loading images in the AnimatedImageVisual /// /// 4 public static readonly int BatchSize = NDalic.IMAGE_VISUAL_BATCH_SIZE; + /// /// Defines the cache size for loading images in the AnimatedImageVisual /// /// 4 public static readonly int CacheSize = NDalic.IMAGE_VISUAL_CACHE_SIZE; + /// /// The number of milliseconds between each frame in the AnimatedImageVisual /// /// 4 public static readonly int FrameDelay = NDalic.IMAGE_VISUAL_FRAME_DELAY; + /// - /// 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. /// - /// 5 - public static readonly int LoopCount = NDalic.IMAGE_VISUAL_LOOP_COUNT; + /// 4 + public static readonly int MaskContentScale = NDalic.IMAGE_VISUAL_MASK_CONTENT_SCALE; + /// - /// The policy to determine when an image should no longer be cached. + /// Whether to crop image to mask or scale mask to fit image /// - /// 5 - public static readonly int ReleasePolicy = NDalic.IMAGE_VISUAL_RELEASE_POLICY; + /// 4 + public static readonly int CropToMask = NDalic.IMAGE_VISUAL_CROP_TO_MASK; + /// /// The policy to determine when an image should be loaded. /// /// 5 public static readonly int LoadPolicy = NDalic.IMAGE_VISUAL_LOAD_POLICY; + + /// + /// The policy to determine when an image should no longer be cached. + /// + /// 5 + public static readonly int ReleasePolicy = NDalic.IMAGE_VISUAL_RELEASE_POLICY; + /// /// Determines if image orientation should be corrected so that the image displays as it was intended. /// /// 5 public static readonly int OrientationCorrection = NDalic.IMAGE_VISUAL_ORIENTATION_CORRECTION; + /// /// Overlays the auxiliary image on top of an NPatch image. /// /// 5 public static readonly int AuxiliaryImageURL = NDalic.IMAGE_VISUAL_AUXILIARY_IMAGE_URL; + /// /// Alpha value for the auxiliary image, without affecting the underlying NPatch image /// /// 5 public static readonly int AuxiliaryImageAlpha = NDalic.IMAGE_VISUAL_AUXILIARY_IMAGE_ALPHA; + + /// + /// 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. + /// + /// 5 + public static readonly int LoopCount = NDalic.IMAGE_VISUAL_LOOP_COUNT; + + /// + /// 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 + /// + /// + /// Inhouse API + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int PlayRange = OrientationCorrection + 4; + + /// + /// The playing state the AnimatedVectorImageVisual will use. + /// Type PlayState (Property::INTEGER) + /// This property is read-only. + /// + /// + /// Inhouse API + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int PlayState = OrientationCorrection + 5; + + /// + /// 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. + /// + /// + /// Inhouse API + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public static readonly int CurrentProgress = OrientationCorrection + 6; } ///