GUIToggleGroup.cs 1.1 KB

1234567891011121314151617181920212223242526
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. using System;
  4. using System.Runtime.CompilerServices;
  5. namespace BansheeEngine
  6. {
  7. /// <summary>
  8. /// Object that allows you to group multiple GUI toggle buttons. Only one button among the grouped ones can be active.
  9. /// </summary>
  10. public sealed class GUIToggleGroup : ScriptObject
  11. {
  12. /// <summary>
  13. /// Creates a new toggle group.
  14. /// </summary>
  15. /// <param name="allowAllOff">If true all of the toggle buttons can be turned off, if false one will always be
  16. /// turned on.</param>
  17. public GUIToggleGroup(bool allowAllOff = false)
  18. {
  19. Internal_CreateInstance(this, allowAllOff);
  20. }
  21. [MethodImpl(MethodImplOptions.InternalCall)]
  22. private static extern void Internal_CreateInstance(GUIToggleGroup instance, bool allowAllOff);
  23. }
  24. }