forked from Unity-Technologies/UnityCsReference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGUILayoutOption.cs
More file actions
29 lines (27 loc) · 1005 Bytes
/
GUILayoutOption.cs
File metadata and controls
29 lines (27 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using System;
namespace UnityEngine
{
// Class internally used to pass layout options into [[GUILayout]] functions. You don't use these directly, but construct them with the layouting functions in the [[GUILayout]] class.
public sealed class GUILayoutOption
{
internal enum Type
{
fixedWidth, fixedHeight, minWidth, maxWidth, minHeight, maxHeight, stretchWidth, stretchHeight,
// These are just for the spacing variables
alignStart, alignMiddle, alignEnd, alignJustify, equalSize, spacing
}
// *undocumented*
internal Type type;
// *undocumented*
internal object value;
// *undocumented*
internal GUILayoutOption(Type type, object value)
{
this.type = type;
this.value = value;
}
}
}