GUILayoutY.cs 1.2 KB

12345678910111213141516171819202122232425262728293031
  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. /// Vertical layout that will position its child elements top to bottom.
  9. /// </summary>
  10. public sealed class GUILayoutY : GUILayout
  11. {
  12. /// <summary>
  13. /// Internal method used by the runtime. Initializes a managed version of the vertical layout that is referenced
  14. /// by a native GUI scroll area element.
  15. /// </summary>
  16. /// <param name="parentArea">Scroll area of which we want to reference the layout of.</param>
  17. internal GUILayoutY(GUIScrollArea parentArea)
  18. {
  19. Internal_CreateInstanceYFromScrollArea(this, parentArea);
  20. }
  21. /// <summary>
  22. /// Vertical layout that will position its child elements left to right.
  23. /// </summary>
  24. public GUILayoutY(params GUIOption[] options)
  25. {
  26. Internal_CreateInstanceY(this, options);
  27. }
  28. }
  29. }