| 123456789101112131415161718192021222324 |
- using System;
- using System.Runtime.CompilerServices;
- namespace BansheeEngine
- {
- /// <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);
- }
- }
|