Class LudiqGUIUtility
Inheritance
LudiqGUIUtility
Syntax
public static class LudiqGUIUtility
Fields
HelpBoxHeight
Declaration
public const float HelpBoxHeight = 40F
Field Value
Declaration
public const float scrollBarWidth = 15F
Field Value
Properties
clipDepth
Declaration
public static int clipDepth { get; }
Property Value
clipEnabled
Declaration
public static bool clipEnabled { get; }
Property Value
clipMatrix
Declaration
public static Matrix4x4 clipMatrix { get; set; }
Property Value
createLinearTextures
Declaration
public static bool createLinearTextures { get; }
Property Value
Declaration
public static bool currentInspectorHasScrollbar { get; set; }
Property Value
currentInspectorWidth
Declaration
public static OverrideStack<float> currentInspectorWidth { get; }
Property Value
Declaration
public static float currentInspectorWidthWithoutScrollbar { get; }
Property Value
editorHasBoldFont
Declaration
public static bool editorHasBoldFont { get; set; }
Property Value
fixedClip
Declaration
public static LudiqGUIUtility.ClipFixContext fixedClip { get; }
Property Value
iconSize
Declaration
public static OverrideStack<int> iconSize { get; }
Property Value
isWithinGUI
Declaration
public static bool isWithinGUI { get; }
Property Value
labelWidth
Declaration
public static OverrideStack<float> labelWidth { get; }
Property Value
mainEditorWindowPosition
Declaration
public static Rect mainEditorWindowPosition { get; }
Property Value
newSkin
Declaration
public static bool newSkin { get; }
Property Value
topClipRect
Declaration
public static Rect topClipRect { get; }
Property Value
topmostClipRect
Declaration
public static Rect topmostClipRect { get; }
Property Value
visibleClipRect
Declaration
public static Rect visibleClipRect { get; }
Property Value
Methods
Abs(Vector2)
Declaration
public static Vector2 Abs(this Vector2 vector)
Parameters
Type |
Name |
Description |
Vector2 |
vector |
|
Returns
BeginClipFix()
Declaration
public static void BeginClipFix()
BeginNotActuallyOnGUI()
Declaration
public static void BeginNotActuallyOnGUI()
Declaration
public static void BeginScrollablePanel(Rect outerPosition, Func<float, float> getInnerHeight, out Rect innerPosition, ref Vector2 scroll, RectOffset overdraw = null)
Parameters
Declaration
public static void BeginScrollableWindow(Rect windowPosition, Func<float, float> getInnerHeight, out Rect innerPosition, ref Vector2 scroll)
Parameters
BoldedStyle(GUIStyle)
Declaration
public static GUIStyle BoldedStyle(GUIStyle style)
Parameters
Returns
CalcSizeWithConstraints(GUIStyle, GUIContent, Vector2)
Declaration
public static Vector2 CalcSizeWithConstraints(this GUIStyle style, GUIContent content, Vector2 constraints)
Parameters
Returns
Center(EditorWindow)
Declaration
public static void Center(this EditorWindow window)
Parameters
Clip(Rect)
Declaration
public static Rect Clip(Rect absoluteRect)
Parameters
Type |
Name |
Description |
Rect |
absoluteRect |
|
Returns
Clip(Vector2)
Declaration
public static Vector2 Clip(Vector2 absolutePos)
Parameters
Type |
Name |
Description |
Vector2 |
absolutePos |
|
Returns
Clone(RectOffset)
Declaration
public static RectOffset Clone(this RectOffset rectOffset)
Parameters
Returns
ClosestPoints(Rect, Rect, out Vector2, out Vector2)
Declaration
public static void ClosestPoints(Rect rect1, Rect rect2, out Vector2 point1, out Vector2 point2)
Parameters
CtrlOrCmd(Event)
Declaration
public static bool CtrlOrCmd(this Event e)
Parameters
Type |
Name |
Description |
Event |
e |
|
Returns
DimString(String)
Declaration
public static string DimString(string s)
Parameters
Type |
Name |
Description |
String |
s |
|
Returns
Encompass(Rect, Rect)
Declaration
public static Rect Encompass(this Rect rect, Rect other)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Rect |
other |
|
Returns
Encompass(Rect, Vector2)
Declaration
public static Rect Encompass(this Rect rect, Vector2 point)
Parameters
Returns
Encompasses(Rect, Rect)
Declaration
public static bool Encompasses(this Rect rect, Rect other)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Rect |
other |
|
Returns
EndClipFix()
Declaration
public static void EndClipFix()
EndNotActuallyOnGUI()
Declaration
public static void EndNotActuallyOnGUI()
Declaration
public static void EndScrollablePanel()
Declaration
public static void EndScrollableWindow()
EscapeRichText(String)
Declaration
public static string EscapeRichText(string s)
Parameters
Type |
Name |
Description |
String |
s |
|
Returns
ExpandBy(Rect, RectOffset)
Declaration
public static Rect ExpandBy(this Rect rect, RectOffset offset)
Parameters
Returns
ExpandByX(Rect, RectOffset)
Declaration
public static Rect ExpandByX(this Rect rect, RectOffset offset)
Parameters
Returns
ExpandByY(Rect, RectOffset)
Declaration
public static Rect ExpandByY(this Rect rect, RectOffset offset)
Parameters
Returns
FocusInspector()
Declaration
public static void FocusInspector()
GetEdgeCenter(Rect, Edge)
Declaration
public static Vector2 GetEdgeCenter(this Rect rect, Edge edge)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Edge |
edge |
|
Returns
GetHelpBoxHeight(String, MessageType, Single)
Declaration
public static float GetHelpBoxHeight(string message, MessageType messageType, float width)
Parameters
Returns
GetHelpIcon(MessageType)
Declaration
public static Texture2D GetHelpIcon(MessageType type)
Parameters
Returns
GetLastControlID()
Declaration
public static int GetLastControlID()
Returns
GetLayoutRect(Single, RectOffset)
Declaration
public static Rect GetLayoutRect(float height, RectOffset offset = null)
Parameters
Returns
GetLayoutWidth(RectOffset)
Declaration
public static float GetLayoutWidth(RectOffset offset = null)
Parameters
Returns
GetMultilineHeight(Single[])
Declaration
public static float GetMultilineHeight(params float[] widths)
Parameters
Type |
Name |
Description |
Single[] |
widths |
|
Returns
GetMultilineHeightConfigurable(Single, Single, Single[])
Declaration
public static float GetMultilineHeightConfigurable(float lineHeight, float verticalSpacing, params float[] widths)
Parameters
Returns
GetMultilinePositions(Rect, Single[])
Declaration
public static Rect[] GetMultilinePositions(Rect totalPosition, params float[] widths)
Parameters
Type |
Name |
Description |
Rect |
totalPosition |
|
Single[] |
widths |
|
Returns
GetMultilinePositionsConfigurable(Rect, Single, Single, Single[])
Declaration
public static Rect[] GetMultilinePositionsConfigurable(Rect totalPosition, float verticalSpacing, float horizontalSpacing, params float[] widths)
Parameters
Returns
GUIToScreenRect(Rect)
Declaration
public static Rect GUIToScreenRect(this Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Returns
IsFocused(EditorWindow)
Declaration
public static bool IsFocused(this EditorWindow window)
Parameters
Returns
Declaration
public static bool IsRightMouseButton(this Event e)
Parameters
Type |
Name |
Description |
Event |
e |
|
Returns
NineSlice(Rect, RectOffset, out Rect, out Rect, out Rect, out Rect, out Rect, out Rect, out Rect, out Rect, out Rect)
Declaration
public static void NineSlice(this Rect r, RectOffset o, out Rect topLeft, out Rect topCenter, out Rect topRight, out Rect middleLeft, out Rect middleCenter, out Rect middleRight, out Rect bottomLeft, out Rect bottomCenter, out Rect bottomRight)
Parameters
Normal(Edge)
Declaration
public static Vector2 Normal(this Edge edge)
Parameters
Type |
Name |
Description |
Edge |
edge |
|
Returns
Opposite(Edge)
Declaration
public static Edge Opposite(this Edge edge)
Parameters
Type |
Name |
Description |
Edge |
edge |
|
Returns
Perpendicular1(Vector2)
Declaration
public static Vector2 Perpendicular1(this Vector2 vector)
Parameters
Type |
Name |
Description |
Vector2 |
vector |
|
Returns
Perpendicular2(Vector2)
Declaration
public static Vector2 Perpendicular2(this Vector2 vector)
Parameters
Type |
Name |
Description |
Vector2 |
vector |
|
Returns
PixelPerfect(Rect)
Declaration
public static Rect PixelPerfect(this Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Returns
PixelPerfect(Vector2)
Declaration
public static Vector2 PixelPerfect(this Vector2 vector)
Parameters
Type |
Name |
Description |
Vector2 |
vector |
|
Returns
RepaintAllInspectors()
Declaration
public static void RepaintAllInspectors()
ShouldSkip(Event)
Declaration
public static bool ShouldSkip(this Event e)
Parameters
Type |
Name |
Description |
Event |
e |
|
Returns
ShouldSkip(Event, Rect)
Declaration
public static bool ShouldSkip(this Event e, Rect position)
Parameters
Returns
ShowAsDropDownWithKeyboardFocus(EditorWindow, Rect, Vector2)
Declaration
public static void ShowAsDropDownWithKeyboardFocus(this EditorWindow window, Rect buttonRect, Vector2 windowSize)
Parameters
ShowModal(EditorWindow)
Declaration
public static void ShowModal(this EditorWindow window)
Parameters
ShrinkBy(Rect, RectOffset)
Declaration
public static Rect ShrinkBy(this Rect rect, RectOffset offset)
Parameters
Returns
ShrinkByX(Rect, RectOffset)
Declaration
public static Rect ShrinkByX(this Rect rect, RectOffset offset)
Parameters
Returns
ShrinkByY(Rect, RectOffset)
Declaration
public static Rect ShrinkByY(this Rect rect, RectOffset offset)
Parameters
Returns
Size(Texture2D)
Declaration
public static Vector2 Size(this Texture2D texture)
Parameters
Returns
TryUse(Event)
Declaration
public static void TryUse(this Event e)
Parameters
Type |
Name |
Description |
Event |
e |
|
Unclip(Rect)
Declaration
public static Rect Unclip(Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Returns
Unclip(Vector2)
Declaration
public static Vector2 Unclip(Vector2 pos)
Parameters
Returns
VerticalSection(Rect, ref Single, Single)
Declaration
public static Rect VerticalSection(this Rect rect, ref float y, float height)
Parameters
Returns