[NUI] Add IsUsingXaml flag in properties of View and AnimatedVectorImageView
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / AnimatedVectorImageViewBindableProperty.cs
1 /*
2  * Copyright(c) 2021 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 using System.ComponentModel;
19 using Tizen.NUI.Binding;
20
21 namespace Tizen.NUI.BaseComponents
22 {
23     public partial class AnimatedVectorImageView
24     {
25         /// <summary>
26         /// ResourceURLProperty
27         /// </summary>
28         [EditorBrowsable(EditorBrowsableState.Never)]
29 #if REMOVE_READONLY_FOR_BINDABLE_PROPERTY
30         public static BindableProperty ResourceURLProperty = null;
31 #else
32         public static readonly BindableProperty ResourceURLProperty = null;
33 #endif
34         internal static void SetInternalResourceURLProperty(BindableObject bindable, object oldValue, object newValue)
35         {
36             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
37             instance.InternalResourceURL = (string)newValue;
38         }
39         internal static object GetInternalResourceURLProperty(BindableObject bindable)
40         {
41             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
42             return instance.InternalResourceURL;
43         }
44
45         /// <summary>
46         /// ResourceUrlProperty
47         /// </summary>
48         [EditorBrowsable(EditorBrowsableState.Never)]
49 #if REMOVE_READONLY_FOR_BINDABLE_PROPERTY
50         public static new BindableProperty ResourceUrlProperty = null;
51 #else
52         public static readonly new BindableProperty ResourceUrlProperty = null;
53 #endif
54         internal static void SetInternalResourceUrlProperty(BindableObject bindable, object oldValue, object newValue)
55         {
56             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
57             instance.InternalResourceUrl = (string)newValue;
58         }
59         internal static object GetInternalResourceUrlProperty(BindableObject bindable)
60         {
61             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
62             return instance.InternalResourceUrl;
63         }
64
65         /// <summary>
66         /// RepeatCountProperty
67         /// </summary>
68         [EditorBrowsable(EditorBrowsableState.Never)]
69 #if REMOVE_READONLY_FOR_BINDABLE_PROPERTY
70         public static BindableProperty RepeatCountProperty = null;
71 #else
72         public static readonly BindableProperty RepeatCountProperty = null;
73 #endif
74         internal static void SetInternalRepeatCountProperty(BindableObject bindable, object oldValue, object newValue)
75         {
76             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
77             if (newValue != null)
78             {
79                 instance.InternalRepeatCount = (int)newValue;
80             }
81         }
82         internal static object GetInternalRepeatCountProperty(BindableObject bindable)
83         {
84             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
85             return instance.InternalRepeatCount;
86         }
87
88         /// <summary>
89         /// CurrentFrameProperty
90         /// </summary>
91         [EditorBrowsable(EditorBrowsableState.Never)]
92 #if REMOVE_READONLY_FOR_BINDABLE_PROPERTY
93         public static new BindableProperty CurrentFrameProperty = null;
94 #else
95         public static readonly new BindableProperty CurrentFrameProperty = null;
96 #endif
97         internal static void SetInternalCurrentFrameProperty(BindableObject bindable, object oldValue, object newValue)
98         {
99             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
100             if (newValue != null)
101             {
102                 instance.InternalCurrentFrame = (int)newValue;
103             }
104         }
105         internal static object GetInternalCurrentFrameProperty(BindableObject bindable)
106         {
107             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
108             return instance.InternalCurrentFrame;
109         }
110
111         /// <summary>
112         /// RepeatModeProperty
113         /// </summary>
114         [EditorBrowsable(EditorBrowsableState.Never)]
115 #if REMOVE_READONLY_FOR_BINDABLE_PROPERTY
116         public static BindableProperty RepeatModeProperty = null;
117 #else
118         public static readonly BindableProperty RepeatModeProperty = null;
119 #endif
120         static internal void SetInternalRepeatModeProperty(BindableObject bindable, object oldValue, object newValue)
121         {
122             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
123             if (newValue != null)
124             {
125                 instance.InternalRepeatMode = (Tizen.NUI.BaseComponents.AnimatedVectorImageView.RepeatModes)newValue;
126             }
127         }
128         static internal object GetInternalRepeatModeProperty(BindableObject bindable)
129         {
130             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
131             return instance.InternalRepeatMode;
132         }
133     }
134 }