FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnityCsReference/Modules/IMGUI/GUILayoutBindings.cs at master · lowolf/UnityCsReference · GitHub
lowolf
/
UnityCsReference
Public
forked from
Unity-Technologies/UnityCsReference
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
UnityCsReference
/
Modules
/
IMGUI
/
GUILayoutBindings.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
167 lines (138 loc) · 5.75 KB
Breadcrumbs
UnityCsReference
/
Modules
/
IMGUI
/
GUILayoutBindings.cs
Copy path
File metadata and controls
167 lines (138 loc) · 5.75 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
// 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
{
public
partial
class
GUILayout
{
public
class
HorizontalScope
:
GUI
.
Scope
{
public
HorizontalScope
(
params
GUILayoutOption
[
]
options
)
{
BeginHorizontal
(
options
)
;
}
public
HorizontalScope
(
GUIStyle
style
,
params
GUILayoutOption
[
]
options
)
{
BeginHorizontal
(
style
,
options
)
;
}
public
HorizontalScope
(
string
text
,
GUIStyle
style
,
params
GUILayoutOption
[
]
options
)
{
BeginHorizontal
(
text
,
style
,
options
)
;
}
public
HorizontalScope
(
Texture
image
,
GUIStyle
style
,
params
GUILayoutOption
[
]
options
)
{
BeginHorizontal
(
image
,
style
,
options
)
;
}
public
HorizontalScope
(
GUIContent
content
,
GUIStyle
style
,
params
GUILayoutOption
[
]
options
)
{
BeginHorizontal
(
content
,
style
,
options
)
;
}
protected
override
void
CloseScope
(
)
{
EndHorizontal
(
)
;
}
}
public
class
VerticalScope
:
GUI
.
Scope
{
public
VerticalScope
(
params
GUILayoutOption
[
]
options
)
{
BeginVertical
(
options
)
;
}
public
VerticalScope
(
GUIStyle
style
,
params
GUILayoutOption
[
]
options
)
{
BeginVertical
(
style
,
options
)
;
}
public
VerticalScope
(
string
text
,
GUIStyle
style
,
params
GUILayoutOption
[
]
options
)
{
BeginVertical
(
text
,
style
,
options
)
;
}
public
VerticalScope
(
Texture
image
,
GUIStyle
style
,
params
GUILayoutOption
[
]
options
)
{
BeginVertical
(
image
,
style
,
options
)
;
}
public
VerticalScope
(
GUIContent
content
,
GUIStyle
style
,
params
GUILayoutOption
[
]
options
)
{
BeginVertical
(
content
,
style
,
options
)
;
}
protected
override
void
CloseScope
(
)
{
EndVertical
(
)
;
}
}
public
class
AreaScope
:
GUI
.
Scope
{
public
AreaScope
(
Rect
screenRect
)
{
BeginArea
(
screenRect
)
;
}
public
AreaScope
(
Rect
screenRect
,
string
text
)
{
BeginArea
(
screenRect
,
text
)
;
}
public
AreaScope
(
Rect
screenRect
,
Texture
image
)
{
BeginArea
(
screenRect
,
image
)
;
}
public
AreaScope
(
Rect
screenRect
,
GUIContent
content
)
{
BeginArea
(
screenRect
,
content
)
;
}
public
AreaScope
(
Rect
screenRect
,
string
text
,
GUIStyle
style
)
{
BeginArea
(
screenRect
,
text
,
style
)
;
}
public
AreaScope
(
Rect
screenRect
,
Texture
image
,
GUIStyle
style
)
{
BeginArea
(
screenRect
,
image
,
style
)
;
}
public
AreaScope
(
Rect
screenRect
,
GUIContent
content
,
GUIStyle
style
)
{
BeginArea
(
screenRect
,
content
,
style
)
;
}
protected
override
void
CloseScope
(
)
{
EndArea
(
)
;
}
}
public
class
ScrollViewScope
:
GUI
.
Scope
{
public
Vector2
scrollPosition
{
get
;
private
set
;
}
public
bool
handleScrollWheel
{
get
;
set
;
}
public
ScrollViewScope
(
Vector2
scrollPosition
,
params
GUILayoutOption
[
]
options
)
{
handleScrollWheel
=
true
;
this
.
scrollPosition
=
BeginScrollView
(
scrollPosition
,
options
)
;
}
public
ScrollViewScope
(
Vector2
scrollPosition
,
bool
alwaysShowHorizontal
,
bool
alwaysShowVertical
,
params
GUILayoutOption
[
]
options
)
{
handleScrollWheel
=
true
;
this
.
scrollPosition
=
BeginScrollView
(
scrollPosition
,
alwaysShowHorizontal
,
alwaysShowVertical
,
options
)
;
}
public
ScrollViewScope
(
Vector2
scrollPosition
,
GUIStyle
horizontalScrollbar
,
GUIStyle
verticalScrollbar
,
params
GUILayoutOption
[
]
options
)
{
handleScrollWheel
=
true
;
this
.
scrollPosition
=
BeginScrollView
(
scrollPosition
,
horizontalScrollbar
,
verticalScrollbar
,
options
)
;
}
public
ScrollViewScope
(
Vector2
scrollPosition
,
GUIStyle
style
,
params
GUILayoutOption
[
]
options
)
{
handleScrollWheel
=
true
;
this
.
scrollPosition
=
BeginScrollView
(
scrollPosition
,
style
,
options
)
;
}
public
ScrollViewScope
(
Vector2
scrollPosition
,
bool
alwaysShowHorizontal
,
bool
alwaysShowVertical
,
GUIStyle
horizontalScrollbar
,
GUIStyle
verticalScrollbar
,
params
GUILayoutOption
[
]
options
)
{
handleScrollWheel
=
true
;
this
.
scrollPosition
=
BeginScrollView
(
scrollPosition
,
alwaysShowHorizontal
,
alwaysShowVertical
,
horizontalScrollbar
,
verticalScrollbar
,
options
)
;
}
public
ScrollViewScope
(
Vector2
scrollPosition
,
bool
alwaysShowHorizontal
,
bool
alwaysShowVertical
,
GUIStyle
horizontalScrollbar
,
GUIStyle
verticalScrollbar
,
GUIStyle
background
,
params
GUILayoutOption
[
]
options
)
{
handleScrollWheel
=
true
;
this
.
scrollPosition
=
BeginScrollView
(
scrollPosition
,
alwaysShowHorizontal
,
alwaysShowVertical
,
horizontalScrollbar
,
verticalScrollbar
,
background
,
options
)
;
}
protected
override
void
CloseScope
(
)
{
EndScrollView
(
handleScrollWheel
)
;
}
}
}
}
Back
|
FazBrowse Home
|
New Git URL