| 1234567891011121314151617181920212223242526272829303132 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- using System;
- using System.Runtime.CompilerServices;
- namespace BansheeEngine
- {
- /** @addtogroup GUI_Engine
- * @{
- */
- /// <summary>
- /// Object that allows you to group multiple GUI toggle buttons. Only one button among the grouped ones can be active.
- /// </summary>
- public sealed class GUIToggleGroup : ScriptObject
- {
- /// <summary>
- /// Creates a new toggle group.
- /// </summary>
- /// <param name="allowAllOff">If true all of the toggle buttons can be turned off, if false one will always be
- /// turned on.</param>
- public GUIToggleGroup(bool allowAllOff = false)
- {
- Internal_CreateInstance(this, allowAllOff);
- }
- [MethodImpl(MethodImplOptions.InternalCall)]
- private static extern void Internal_CreateInstance(GUIToggleGroup instance, bool allowAllOff);
- }
- /** @} */
- }
|