/*
* 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
{
///
/// SelectButtonAttributes is a class which saves SelectButton'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 SelectButtonAttributes : ButtonAttributes
{
///
/// Creates a new instance of a SelectButtonAttributes.
///
/// 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 SelectButtonAttributes() : base() { }
///
/// Creates a new instance of a SelectButtonAttributes with attributes.
///
/// Create SelectButtonAttributes 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 SelectButtonAttributes(SelectButtonAttributes attributes) : base(attributes)
{
if(attributes == null)
{
return;
}
if (attributes.CheckImageAttributes != null)
{
CheckImageAttributes = attributes.CheckImageAttributes.Clone() as ImageAttributes;
}
if (attributes.CheckBackgroundImageAttributes != null)
{
CheckBackgroundImageAttributes = attributes.CheckBackgroundImageAttributes.Clone() as ImageAttributes;
}
if (attributes.CheckShadowImageAttributes != null)
{
CheckShadowImageAttributes = attributes.CheckShadowImageAttributes.Clone() as ImageAttributes;
}
}
///
/// Check image's attributes.
///
/// 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 CheckImageAttributes
{
get;
set;
}
///
/// Background image's attributes.
///
/// 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 CheckBackgroundImageAttributes
{
get;
set;
}
///
/// Shadow image's attributes.
///
/// 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 CheckShadowImageAttributes
{
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 SelectButtonAttributes(this);
}
}
}