// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
namespace AWS.GameKit.Editor.GUILayoutExtensions
{
///
/// A tab to be displayed in a TabViewWidget.
///
public class Tab
{
public string DisplayName { get; }
public IDrawable TabContent { get; }
///
/// Create a new Tab.
///
/// The string to show on this tab's button in the tab selector.
/// The content to draw while this tab is selected in the TabViewWidget.
public Tab(string displayName, IDrawable tabContent)
{
DisplayName = displayName;
TabContent = tabContent;
}
}
}