| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- using System;
- using System.Runtime.CompilerServices;
- namespace BansheeEngine
- {
- public abstract class GUILayout : ScriptObject
- {
- public GUILabel AddLabel(GUIContent content, GUIElementStyle style, params GUIOption[] options)
- {
- return new GUILabel(this, content, style, options);
- }
- public GUILabel AddLabel(GUIContent content, params GUIOption[] options)
- {
- return new GUILabel(this, content, null, options);
- }
- public GUIButton AddButton(GUIContent content, GUIElementStyle style, params GUIOption[] options)
- {
- return new GUIButton(this, content, style, options);
- }
- public GUIButton AddButton(GUIContent content, GUIElementStyle style)
- {
- return new GUIButton(this, content, style, new GUIOption[0]);
- }
- public GUIButton AddButton(GUIContent content, params GUIOption[] options)
- {
- return new GUIButton(this, content, null, options);
- }
- public GUITexture AddTexture(SpriteTexture texture, GUIImageScaleMode scale, GUIElementStyle style, params GUIOption[] options)
- {
- return new GUITexture(this, texture, scale, style, options);
- }
- public GUITexture AddTexture(SpriteTexture texture, GUIImageScaleMode scale, params GUIOption[] options)
- {
- return new GUITexture(this, texture, scale, null, options);
- }
- public GUITexture AddTexture(SpriteTexture texture, GUIElementStyle style, params GUIOption[] options)
- {
- return new GUITexture(this, texture, GUIImageScaleMode.StretchToFit, style, options);
- }
- public GUITexture AddTexture(SpriteTexture texture, params GUIOption[] options)
- {
- return new GUITexture(this, texture, GUIImageScaleMode.StretchToFit, null, options);
- }
- public GUITextBox AddTextBox(bool multiline, GUIElementStyle style, params GUIOption[] options)
- {
- return new GUITextBox(this, multiline, style, options);
- }
- public GUITextBox AddTextBox(bool multiline, params GUIOption[] options)
- {
- return new GUITextBox(this, multiline, null, options);
- }
- public GUITextBox AddTextBox(GUIElementStyle style, params GUIOption[] options)
- {
- return new GUITextBox(this, false, style, options);
- }
- public GUITextBox AddTextBox(params GUIOption[] options)
- {
- return new GUITextBox(this, false, null, options);
- }
- public GUIScrollArea AddScrollArea(GUIElementStyle style, params GUIOption[] options)
- {
- return new GUIScrollArea(this, style, options);
- }
- public GUIScrollArea AddScrollArea(params GUIOption[] options)
- {
- return new GUIScrollArea(this, null, options);
- }
- public GUIListBox AddListBox(LocString[] elements, GUIElementStyle style, params GUIOption[] options)
- {
- return new GUIListBox(this, elements, style, options);
- }
- public GUIListBox AddListBox(LocString[] elements, params GUIOption[] options)
- {
- return new GUIListBox(this, elements, null, options);
- }
- public GUIFixedSpace AddSpace(int size)
- {
- return new GUIFixedSpace(this, size);
- }
- public GUIFlexibleSpace AddFlexibleSpace()
- {
- return new GUIFlexibleSpace(this);
- }
- [MethodImpl(MethodImplOptions.InternalCall)]
- protected static extern void Internal_CreateInstanceXFromArea(GUILayout instance, GUIArea parentArea);
- [MethodImpl(MethodImplOptions.InternalCall)]
- protected static extern void Internal_CreateInstanceXFromLayout(GUILayout instance, GUILayout parentLayout);
- [MethodImpl(MethodImplOptions.InternalCall)]
- protected static extern void Internal_CreateInstanceYFromScrollArea(GUILayout instance, GUIScrollArea parentArea);
- [MethodImpl(MethodImplOptions.InternalCall)]
- protected static extern void Internal_CreateInstanceYFromLayout(GUILayout instance, GUILayout parentLayout);
- }
- }
|