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.CommonUI
22 /// ScrollBarAttributes is a class which saves Scrollbar'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 ScrollBarAttributes : ViewAttributes
30 /// Creates a new instance of a ScrollBarAttributes.
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 ScrollBarAttributes() : base()
37 Direction = ScrollBar.DirectionType.Horizontal;
41 /// Creates a new instance of a ScrollBarAttributes with attributes.
43 /// <param name="attributes">Create ScrollBarAttributes by attributes customized by user.</param>
44 /// <since_tizen> 6 </since_tizen>
45 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
46 [EditorBrowsable(EditorBrowsableState.Never)]
47 public ScrollBarAttributes(ScrollBarAttributes attributes) : base(attributes)
49 if(attributes == null)
54 if (attributes.TrackImageAttributes != null)
56 TrackImageAttributes = attributes.TrackImageAttributes.Clone() as ImageAttributes;
59 if (attributes.ThumbImageAttributes != null)
61 ThumbImageAttributes = attributes.ThumbImageAttributes.Clone() as ImageAttributes;
64 Direction = attributes.Direction;
65 Duration = attributes.Duration;
69 /// Get or set track image attributes
71 /// <since_tizen> 6 </since_tizen>
72 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
73 [EditorBrowsable(EditorBrowsableState.Never)]
74 public ImageAttributes TrackImageAttributes
81 /// Get or set thumb image attributes
83 /// <since_tizen> 6 </since_tizen>
84 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
85 [EditorBrowsable(EditorBrowsableState.Never)]
86 public ImageAttributes ThumbImageAttributes
93 /// Get or set direction type
95 /// <since_tizen> 6 </since_tizen>
96 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
97 [EditorBrowsable(EditorBrowsableState.Never)]
98 public ScrollBar.DirectionType? Direction
105 /// Get or set duration
107 /// <since_tizen> 6 </since_tizen>
108 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
109 [EditorBrowsable(EditorBrowsableState.Never)]
117 /// Attributes's clone function.
119 /// <since_tizen> 6 </since_tizen>
120 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
121 [EditorBrowsable(EditorBrowsableState.Never)]
122 public override Attributes Clone()
124 return new ScrollBarAttributes(this);