3e12d1d258b4cd06f368faceb7f40754d9ac371a
[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         public static readonly BindableProperty ResourceURLProperty = null;
30
31         internal static void SetInternalResourceURLProperty(BindableObject bindable, object oldValue, object newValue)
32         {
33             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
34             instance.InternalResourceURL = (string)newValue;
35         }
36         
37         internal static object GetInternalResourceURLProperty(BindableObject bindable)
38         {
39             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
40             return instance.InternalResourceURL;
41         }
42
43         /// <summary>
44         /// ResourceUrlProperty
45         /// </summary>
46         [EditorBrowsable(EditorBrowsableState.Never)]
47         public static new readonly BindableProperty ResourceUrlProperty = null;
48         
49         internal static void SetInternalResourceUrlProperty(BindableObject bindable, object oldValue, object newValue)
50         {
51             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
52             instance.InternalResourceUrl = (string)newValue;
53         }
54
55         internal static object GetInternalResourceUrlProperty(BindableObject bindable)
56         {
57             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
58             return instance.InternalResourceUrl;
59         }
60
61         /// <summary>
62         /// RepeatCountProperty
63         /// </summary>
64         [EditorBrowsable(EditorBrowsableState.Never)]
65         public static readonly BindableProperty RepeatCountProperty = null;
66         
67         internal static void SetInternalRepeatCountProperty(BindableObject bindable, object oldValue, object newValue)
68         {
69             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
70             if (newValue != null)
71             {
72                 instance.InternalRepeatCount = (int)newValue;
73             }
74         }
75         internal static object GetInternalRepeatCountProperty(BindableObject bindable)
76         {
77             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
78             return instance.InternalRepeatCount;
79         }
80
81         /// <summary>
82         /// CurrentFrameProperty
83         /// </summary>
84         [EditorBrowsable(EditorBrowsableState.Never)]
85         public static new readonly BindableProperty CurrentFrameProperty = null;
86         
87         internal static void SetInternalCurrentFrameProperty(BindableObject bindable, object oldValue, object newValue)
88         {
89             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
90             if (newValue != null)
91             {
92                 instance.InternalCurrentFrame = (int)newValue;
93             }
94         }
95         
96         internal static object GetInternalCurrentFrameProperty(BindableObject bindable)
97         {
98             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
99             return instance.InternalCurrentFrame;
100         }
101
102         /// <summary>
103         /// RepeatModeProperty
104         /// </summary>
105         [EditorBrowsable(EditorBrowsableState.Never)]
106         public static readonly BindableProperty RepeatModeProperty = null;
107         
108         static internal void SetInternalRepeatModeProperty(BindableObject bindable, object oldValue, object newValue)
109         {
110             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
111             if (newValue != null)
112             {
113                 instance.InternalRepeatMode = (Tizen.NUI.BaseComponents.AnimatedVectorImageView.RepeatModes)newValue;
114             }
115         }
116         
117         static internal object GetInternalRepeatModeProperty(BindableObject bindable)
118         {
119             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
120             return instance.InternalRepeatMode;
121         }
122     }
123 }