GUIToggleGroup.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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. /** @addtogroup GUI_Engine
  8. * @{
  9. */
  10. /// <summary>
  11. /// Object that allows you to group multiple GUI toggle buttons. Only one button among the grouped ones can be active.
  12. /// </summary>
  13. public sealed class GUIToggleGroup : ScriptObject
  14. {
  15. /// <summary>
  16. /// Creates a new toggle group.
  17. /// </summary>
  18. /// <param name="allowAllOff">If true all of the toggle buttons can be turned off, if false one will always be
  19. /// turned on.</param>
  20. public GUIToggleGroup(bool allowAllOff = false)
  21. {
  22. Internal_CreateInstance(this, allowAllOff);
  23. }
  24. [MethodImpl(MethodImplOptions.InternalCall)]
  25. private static extern void Internal_CreateInstance(GUIToggleGroup instance, bool allowAllOff);
  26. }
  27. /** @} */
  28. }