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;
19 namespace Tizen.NUI.Components
22 /// ProgressAttributes is a class which saves Progress's ux data.
24 /// <since_tizen> 6 </since_tizen>
25 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
26 [EditorBrowsable(EditorBrowsableState.Never)]
27 public class ProgressAttributes : ViewAttributes
30 /// Creates a new instance of a ProgressAttributes.
32 /// <since_tizen> 6 </since_tizen>
33 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
34 [EditorBrowsable(EditorBrowsableState.Never)]
35 public ProgressAttributes() : base() { }
38 /// Creates a new instance of a ProgressAttributes with attributes.
40 /// <param name="attributes">Create ProgressAttributes by attributes customized by user.</param>
41 /// <since_tizen> 6 </since_tizen>
42 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
43 [EditorBrowsable(EditorBrowsableState.Never)]
44 public ProgressAttributes(ProgressAttributes attributes) : base(attributes)
46 if (null == attributes)
51 if (null != attributes.TrackImageAttributes)
53 TrackImageAttributes = attributes.TrackImageAttributes.Clone() as ImageAttributes;
56 if (null != attributes.ProgressImageAttributes)
58 ProgressImageAttributes = attributes.ProgressImageAttributes.Clone() as ImageAttributes;
61 if (null != attributes.BufferImageAttributes)
63 BufferImageAttributes = attributes.BufferImageAttributes.Clone() as ImageAttributes;
66 if (null != attributes.LoadingImageAttributes)
68 LoadingImageAttributes = attributes.LoadingImageAttributes.Clone() as ImageAttributes;
73 /// Get or set Track Image Attributes.
75 /// <since_tizen> 6 </since_tizen>
76 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
77 [EditorBrowsable(EditorBrowsableState.Never)]
78 public ImageAttributes TrackImageAttributes
85 /// Get or set Progress Image Attributes.
87 /// <since_tizen> 6 </since_tizen>
88 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
89 [EditorBrowsable(EditorBrowsableState.Never)]
90 public ImageAttributes ProgressImageAttributes
97 /// Get or set Buffer Image Attributes.
99 /// <since_tizen> 6 </since_tizen>
100 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
101 [EditorBrowsable(EditorBrowsableState.Never)]
102 public ImageAttributes BufferImageAttributes
109 /// Get or set LoadingImageAttributes.
111 /// <since_tizen> 6 </since_tizen>
112 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
113 [EditorBrowsable(EditorBrowsableState.Never)]
114 public ImageAttributes LoadingImageAttributes
121 /// Attributes's clone function.
123 /// <since_tizen> 6 </since_tizen>
124 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
125 [EditorBrowsable(EditorBrowsableState.Never)]
126 public override Attributes Clone()
128 return new ProgressAttributes(this);