GUILayout.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. namespace BansheeEngine
  4. {
  5. public abstract class GUILayout : ScriptObject
  6. {
  7. public GUILabel AddLabel(GUIContent content, GUIElementStyle style, params GUIOption[] options)
  8. {
  9. return new GUILabel(this, content, style, options);
  10. }
  11. public GUILabel AddLabel(GUIContent content, GUIElementStyle style)
  12. {
  13. return new GUILabel(this, content, style, new GUIOption[0]);
  14. }
  15. public GUILabel AddLabel(GUIContent content, params GUIOption[] options)
  16. {
  17. return new GUILabel(this, content, null, options);
  18. }
  19. [MethodImpl(MethodImplOptions.InternalCall)]
  20. protected static extern void Internal_CreateInstanceXFromArea(GUILayout instance, GUIArea parentArea);
  21. [MethodImpl(MethodImplOptions.InternalCall)]
  22. protected static extern void Internal_CreateInstanceXFromLayout(GUILayout instance, GUILayout parentLayout);
  23. [MethodImpl(MethodImplOptions.InternalCall)]
  24. protected static extern void Internal_CreateInstanceYFromLayout(GUILayout instance, GUILayout parentLayout);
  25. }
  26. }