2 * Copyright(c) 2019 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 using System.ComponentModel;
18 using Tizen.NUI.BaseComponents;
19 using Tizen.NUI.Binding;
21 namespace Tizen.NUI.Components
24 /// LoadingStyle is a class which saves Loading's ux data.
26 /// <since_tizen> 6 </since_tizen>
27 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
28 [EditorBrowsable(EditorBrowsableState.Never)]
29 public class LoadingStyle : ControlStyle
31 static LoadingStyle() { }
34 /// Creates a new instance of a LoadingStyle.
36 /// <since_tizen> 6 </since_tizen>
37 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
38 [EditorBrowsable(EditorBrowsableState.Never)]
39 public LoadingStyle() : base() { }
42 /// Creates a new instance of a LoadingStyle with style.
44 /// <param name="style">Create LoadingStyle by style customized by user.</param>
45 /// <since_tizen> 6 </since_tizen>
46 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
47 [EditorBrowsable(EditorBrowsableState.Never)]
48 public LoadingStyle(LoadingStyle style) : base(style)
58 /// Gets or sets loading image resources.
60 /// <since_tizen> 6 </since_tizen>
61 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
62 [EditorBrowsable(EditorBrowsableState.Never)]
63 public string[] Images
70 /// Gets or sets loading image size.
72 /// <since_tizen> 6 </since_tizen>
73 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
74 [EditorBrowsable(EditorBrowsableState.Never)]
75 public Size LoadingSize
82 /// Gets or sets loading frame per second.
84 /// <since_tizen> 6 </since_tizen>
85 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
86 [EditorBrowsable(EditorBrowsableState.Never)]
87 public Selector<int?> FrameRate
91 } = new Selector<int?>();
94 /// Attributes's clone function.
96 /// <since_tizen> 6 </since_tizen>
97 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
98 [EditorBrowsable(EditorBrowsableState.Never)]
99 public override void CopyFrom(BindableObject bindableObject)
101 base.CopyFrom(bindableObject);
103 LoadingStyle loadingStyle = bindableObject as LoadingStyle;
105 if (null != loadingStyle)
107 if (null != loadingStyle.FrameRate)
109 FrameRate.Clone(loadingStyle.FrameRate);
111 if (null != loadingStyle.LoadingSize)
113 LoadingSize = loadingStyle.LoadingSize;
115 if (null != loadingStyle.Images)
117 Images = loadingStyle.Images;