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 /// PaginationAttributes used to config the pagination represent.
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 PaginationAttributes : ViewAttributes
30 /// Creates a new instance of a PaginationAttributes.
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 PaginationAttributes() : base() { }
37 /// Creates a new instance of a PaginationAttributes using attributes.
39 /// <since_tizen> 6 </since_tizen>
40 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
41 [EditorBrowsable(EditorBrowsableState.Never)]
42 public PaginationAttributes(PaginationAttributes attributes) : base(attributes)
44 if (attributes == null)
49 if (attributes.IndicatorSize != null)
51 IndicatorSize = new Size(attributes.IndicatorSize.Width, attributes.IndicatorSize.Height);
53 if (attributes.IndicatorBackgroundURL != null)
55 IndicatorBackgroundURL = attributes.IndicatorBackgroundURL.Clone() as string;
57 if (attributes.IndicatorSelectURL != null)
59 IndicatorSelectURL = attributes.IndicatorSelectURL.Clone() as string;
61 IndicatorSpacing = attributes.IndicatorSpacing;
65 /// Gets or sets the size of the indicator.
67 /// <since_tizen> 6 </since_tizen>
68 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
69 [EditorBrowsable(EditorBrowsableState.Never)]
70 public Size IndicatorSize
77 /// Gets or sets the background resource of indicator.
79 /// <since_tizen> 6 </since_tizen>
80 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
81 [EditorBrowsable(EditorBrowsableState.Never)]
82 public string IndicatorBackgroundURL
89 /// Gets or sets the resource of the select indicator.
91 /// <since_tizen> 6 </since_tizen>
92 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
93 [EditorBrowsable(EditorBrowsableState.Never)]
94 public string IndicatorSelectURL
101 /// Gets or sets the space of the indicator.
103 /// <since_tizen> 6 </since_tizen>
104 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
105 [EditorBrowsable(EditorBrowsableState.Never)]
106 public int IndicatorSpacing
114 /// Retrieves a copy of PaginationAttributes.
116 /// <since_tizen> 6 </since_tizen>
117 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
118 [EditorBrowsable(EditorBrowsableState.Never)]
119 public override Attributes Clone()
121 return new PaginationAttributes(this);