C# Class Borodar.ReorderableList.Internal.GUIHelper

Utility functions to assist with GUIs.
Mostrar archivo Open project: PhannGor/unity3d-rainbow-folders

Public Properties

Property Type Description
FocusTextInControl Action
VisibleRect Func

Public Methods

Method Description
DrawTexture ( Rect position, Texture2D texture ) : void

Draw texture using GUIStyle to workaround bug in Unity where GUI.DrawTexture flickers when embedded inside a property drawer.

IconButton ( Rect position, Texture2D iconNormal, Texture2D iconActive, GUIStyle style ) : bool
IconButton ( Rect position, bool visible, Texture2D iconNormal, Texture2D iconActive, GUIStyle style ) : bool
Separator ( Rect position ) : void
Separator ( Rect position, Color color ) : void

Private Methods

Method Description
GUIHelper ( ) : System

Method Details

DrawTexture() public static method

Draw texture using GUIStyle to workaround bug in Unity where GUI.DrawTexture flickers when embedded inside a property drawer.
public static DrawTexture ( Rect position, Texture2D texture ) : void
position UnityEngine.Rect Position of which to draw texture in space of GUI.
texture UnityEngine.Texture2D Texture.
return void

IconButton() public static method

public static IconButton ( Rect position, Texture2D iconNormal, Texture2D iconActive, GUIStyle style ) : bool
position UnityEngine.Rect
iconNormal UnityEngine.Texture2D
iconActive UnityEngine.Texture2D
style UnityEngine.GUIStyle
return bool

IconButton() public static method

public static IconButton ( Rect position, bool visible, Texture2D iconNormal, Texture2D iconActive, GUIStyle style ) : bool
position UnityEngine.Rect
visible bool
iconNormal UnityEngine.Texture2D
iconActive UnityEngine.Texture2D
style UnityEngine.GUIStyle
return bool

Separator() public static method

public static Separator ( Rect position ) : void
position UnityEngine.Rect
return void

Separator() public static method

public static Separator ( Rect position, Color color ) : void
position UnityEngine.Rect
color Color
return void

Property Details

FocusTextInControl public_oe static_oe property

Focus control and text editor where applicable.
public static Action FocusTextInControl
return Action

VisibleRect public_oe static_oe property

Gets visible rectangle within GUI.

VisibleRect = TopmostRect + scrollViewOffsets

public static Func VisibleRect
return Func