/* * Copyright(c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ using System.ComponentModel; namespace Tizen.NUI.Components { /// /// InputFieldAttributes is a class which saves InputField's ux data. /// /// 6 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public class InputFieldAttributes : ViewAttributes { /// /// Creates a new instance of a InputFieldAttributes. /// /// 6 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public InputFieldAttributes() : base() { } /// /// Creates a new instance of a InputFieldAttributes with attributes. /// /// Create InputFieldAttributes by attributes customized by user. /// 6 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public InputFieldAttributes(InputFieldAttributes attrs) : base(attrs) { if (null == attrs) { return; } if (null != attrs.BackgroundImageAttributes) { BackgroundImageAttributes = attrs.BackgroundImageAttributes.Clone() as ImageAttributes; } if (null != attrs.InputBoxAttributes) { InputBoxAttributes = attrs.InputBoxAttributes.Clone() as TextFieldAttributes; } if (null != attrs.Space) { Space = attrs.Space; } } /// /// Gets or sets background image attributes of input field. /// /// 6 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public ImageAttributes BackgroundImageAttributes { get; set; } /// /// Gets or sets input box attributes of input field. /// /// 6 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public TextFieldAttributes InputBoxAttributes { get; set; } /// /// Gets or sets space. /// /// 6 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public int? Space { get; set; } /// /// Attributes's clone function. /// /// 6 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public override Attributes Clone() { return new InputFieldAttributes(this); } } }