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
32 /// Creates a new instance of a LoadingStyle.
34 /// <since_tizen> 6 </since_tizen>
35 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
36 [EditorBrowsable(EditorBrowsableState.Never)]
37 public LoadingStyle() : base() { }
40 /// Creates a new instance of a LoadingStyle with style.
42 /// <param name="style">Create LoadingStyle by style customized by user.</param>
43 /// <since_tizen> 6 </since_tizen>
44 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
45 [EditorBrowsable(EditorBrowsableState.Never)]
46 public LoadingStyle(LoadingStyle style) : base(style)
56 /// Gets or sets loading image resources.
58 /// <since_tizen> 6 </since_tizen>
59 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
60 [EditorBrowsable(EditorBrowsableState.Never)]
61 public string[] Images
68 /// Gets or sets loading image size.
70 /// <since_tizen> 6 </since_tizen>
71 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
72 [EditorBrowsable(EditorBrowsableState.Never)]
73 public Size LoadingSize
80 /// Gets or sets loading frame per second.
82 /// <since_tizen> 6 </since_tizen>
83 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
84 [EditorBrowsable(EditorBrowsableState.Never)]
85 public Selector<int?> FrameRate
89 } = new Selector<int?>();
92 /// Attributes's clone function.
94 /// <since_tizen> 6 </since_tizen>
95 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
96 [EditorBrowsable(EditorBrowsableState.Never)]
97 public override void CopyFrom(BindableObject bindableObject)
99 base.CopyFrom(bindableObject);
101 LoadingStyle loadingStyle = bindableObject as LoadingStyle;
103 if (null != loadingStyle)
105 if (null != loadingStyle.FrameRate)
107 FrameRate.Clone(loadingStyle.FrameRate);
109 if (null != loadingStyle.LoadingSize)
111 LoadingSize = loadingStyle.LoadingSize;
113 if (null != loadingStyle.Images)
115 Images = loadingStyle.Images;