//********************************** Banshee Engine (www.banshee3d.com) **************************************************//
//**************** Copyright (c) 2016 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************//
using System;
using System.Runtime.CompilerServices;
namespace BansheeEngine
{
/** @addtogroup GUI_Engine
* @{
*/
///
/// Represents a GUI panel that you can use for free placement of GUI elements within its bounds.
///
public sealed class GUIPanel : GUILayout
{
private GUIPanel()
{ }
///
/// Constructs a new GUI panel object.
///
/// Depth at which to position the panel. Panels with lower depth will be displayed in front of
/// panels with higher depth. Provided depth is relative to the depth of the parent GUI panel.
/// The depth value will be clamped if outside of the depth range of the parent GUI panel.
/// Smallest depth offset allowed by any child GUI panels. If a child panel has a depth
/// offset lower than this value it will be clamped.
/// Largest depth offset allowed by any child GUI panels. If a child panel has a depth
/// offset higher than this value it will be clamped.
/// Options that allow you to control how is the panel positioned and sized.
public GUIPanel(Int16 depth = 0, ushort depthRangeMin = ushort.MaxValue, ushort depthRangeMax = ushort.MaxValue,
params GUIOption[] options)
{
Internal_CreateInstancePanel(this, depth, depthRangeMin, depthRangeMax, options);
}
///
/// Constructs a new GUI panel object.
///
/// Options that allow you to control how is the panel positioned and sized.
public GUIPanel(params GUIOption[] options)
{
Internal_CreateInstancePanel(this, 0, ushort.MaxValue, ushort.MaxValue, options);
}
}
/** @} */
}