DemiLib
A collection of Demigiant's utility libraries for Unity (https://github.com/Demigiant/demilib)
DG.DemiEditor.DeGUILayout Class Reference

GUILayout methods More...

Classes

class  ToolbarScope
 
class  VBoxScope
 

Static Public Member Functions

static void BeginToolbar (params GUILayoutOption[] options)
 Begins an horizontal toolbar layout More...
 
static void BeginToolbar (GUIStyle style, params GUILayoutOption[] options)
 Begins an horizontal toolbar layout More...
 
static void BeginToolbar (Color backgroundShade, params GUILayoutOption[] options)
 Begins an horizontal toolbar layout More...
 
static void BeginToolbar (Color backgroundShade, GUIStyle style, params GUILayoutOption[] options)
 Begins an horizontal toolbar layout More...
 
static void BeginVBox (GUIStyle style)
 Vertical box layout with style and color options More...
 
static void BeginVBox (Color?color=null, GUIStyle style=null)
 Vertical box layout with style and color options More...
 
static bool ColoredButton (Color shade, Color contentColor, string text, params GUILayoutOption[] options)
 Colored button More...
 
static bool ColoredButton (Color shade, Color contentColor, string text, GUIStyle guiStyle, params GUILayoutOption[] options)
 Colored button More...
 
static bool ColoredButton (Color shade, Color contentColor, GUIContent content, params GUILayoutOption[] options)
 Colored button More...
 
static bool ColoredButton (Color shade, Color contentColor, GUIContent content, GUIStyle guiStyle, params GUILayoutOption[] options)
 Colored button More...
 
static string DoubleClickDraggableTextField (EditorWindow editorWindow, string id, string text, int dragId, IList draggableList, int draggedItemIndex, GUIStyle defaultStyle, GUIStyle editingStyle=null)
 A text field that becomes editable only on double-click and can also be dragged More...
 
static string DoubleClickDraggableTextField (Editor editor, string id, string text, int dragId, IList draggableList, int draggedItemIndex, GUIStyle defaultStyle, GUIStyle editingStyle=null)
 A text field that becomes editable only on double-click and can also be dragged More...
 
static string DoubleClickTextField (EditorWindow editorWindow, string id, string text, GUIStyle defaultStyle, GUIStyle editingStyle=null)
 A text field that becomes editable only on double-click More...
 
static string DoubleClickTextField (Editor editor, string id, string text, GUIStyle defaultStyle, GUIStyle editingStyle=null)
 A text field that becomes editable only on double-click More...
 
static void EndToolbar ()
 Ends an horizontal toolbar layout More...
 
static void EndVBox ()
 End vertical box layout More...
 
static void HorizontalDivider (Color?color=null, int height=1, int topMargin=5, int bottomMargin=5)
 Horizontal Divider More...
 
static bool PressButton (string text, GUIStyle guiStyle, params GUILayoutOption[] options)
 Draws a button that returns TRUE the first time it's pressed, instead than when its released. More...
 
static bool PressButton (GUIContent content, GUIStyle guiStyle, params GUILayoutOption[] options)
 Draws a button that returns TRUE the first time it's pressed, instead than when its released. More...
 
static Object SceneField (string label, Object obj)
 Scene field More...
 
static bool ShadedButton (Color shade, string text, params GUILayoutOption[] options)
 Shaded button More...
 
static bool ShadedButton (Color shade, string text, GUIStyle guiStyle, params GUILayoutOption[] options)
 Shaded button More...
 
static bool ShadedButton (Color shade, GUIContent content, params GUILayoutOption[] options)
 Shaded button More...
 
static bool ShadedButton (Color shade, GUIContent content, GUIStyle guiStyle, params GUILayoutOption[] options)
 Shaded button More...
 
static bool ToggleButton (bool toggled, string text, params GUILayoutOption[] options)
 Button that can be toggled on and off More...
 
static bool ToggleButton (bool toggled, string text, GUIStyle guiStyle, params GUILayoutOption[] options)
 Button that can be toggled on and off More...
 
static bool ToggleButton (bool toggled, string text, DeColorPalette colorPalette, GUIStyle guiStyle=null, params GUILayoutOption[] options)
 Button that can be toggled on and off More...
 
static bool ToggleButton (bool toggled, GUIContent content, params GUILayoutOption[] options)
 Button that can be toggled on and off More...
 
static bool ToggleButton (bool toggled, GUIContent content, GUIStyle guiStyle, params GUILayoutOption[] options)
 Button that can be toggled on and off More...
 
static bool ToggleButton (bool toggled, GUIContent content, DeColorPalette colorPalette, GUIStyle guiStyle=null, params GUILayoutOption[] options)
 Button that can be toggled on and off More...
 
static void Toolbar (string text, params GUILayoutOption[] options)
 A toolbar with a label More...
 
static void Toolbar (string text, GUIStyle toolbarStyle, params GUILayoutOption[] options)
 A toolbar with a label More...
 
static void Toolbar (string text, GUIStyle toolbarStyle, GUIStyle labelStyle, params GUILayoutOption[] options)
 A toolbar with a label More...
 
static void Toolbar (string text, Color backgroundShade, params GUILayoutOption[] options)
 A toolbar with a label More...
 
static void Toolbar (string text, Color backgroundShade, GUIStyle toolbarStyle, params GUILayoutOption[] options)
 A toolbar with a label More...
 
static void Toolbar (string text, Color backgroundShade, GUIStyle toolbarStyle, GUIStyle labelStyle, params GUILayoutOption[] options)
 A toolbar with a label More...
 
static bool ToolbarFoldoutButton (bool toggled, string text=null, bool isLarge=false, bool stretchedLabel=false)
 Toolbar foldout button More...
 

Detailed Description

GUILayout methods

Member Function Documentation

static void DG.DemiEditor.DeGUILayout.BeginToolbar ( params GUILayoutOption[]  options)
static

Begins an horizontal toolbar layout

static void DG.DemiEditor.DeGUILayout.BeginToolbar ( GUIStyle  style,
params GUILayoutOption[]  options 
)
static

Begins an horizontal toolbar layout

static void DG.DemiEditor.DeGUILayout.BeginToolbar ( Color  backgroundShade,
params GUILayoutOption[]  options 
)
static

Begins an horizontal toolbar layout

static void DG.DemiEditor.DeGUILayout.BeginToolbar ( Color  backgroundShade,
GUIStyle  style,
params GUILayoutOption[]  options 
)
static

Begins an horizontal toolbar layout

static void DG.DemiEditor.DeGUILayout.BeginVBox ( GUIStyle  style)
static

Vertical box layout with style and color options

static void DG.DemiEditor.DeGUILayout.BeginVBox ( Color?  color = null,
GUIStyle  style = null 
)
static

Vertical box layout with style and color options

static bool DG.DemiEditor.DeGUILayout.ColoredButton ( Color  shade,
Color  contentColor,
string  text,
params GUILayoutOption[]  options 
)
static

Colored button

static bool DG.DemiEditor.DeGUILayout.ColoredButton ( Color  shade,
Color  contentColor,
string  text,
GUIStyle  guiStyle,
params GUILayoutOption[]  options 
)
static

Colored button

static bool DG.DemiEditor.DeGUILayout.ColoredButton ( Color  shade,
Color  contentColor,
GUIContent  content,
params GUILayoutOption[]  options 
)
static

Colored button

static bool DG.DemiEditor.DeGUILayout.ColoredButton ( Color  shade,
Color  contentColor,
GUIContent  content,
GUIStyle  guiStyle,
params GUILayoutOption[]  options 
)
static

Colored button

static string DG.DemiEditor.DeGUILayout.DoubleClickDraggableTextField ( EditorWindow  editorWindow,
string  id,
string  text,
int  dragId,
IList  draggableList,
int  draggedItemIndex,
GUIStyle  defaultStyle,
GUIStyle  editingStyle = null 
)
static

A text field that becomes editable only on double-click and can also be dragged

Parameters
editorWindowEditorWindow reference
idA unique ID to use in order to determine if the text is selected or not
textText
dragIdID for this drag operation (must be the same for both this and Drag
draggableListList containing the dragged item and all other relative draggable items
draggedItemIndexDraggableList index of the item being dragged
defaultStyleStyle for default (non-editing mode) appearance
editingStyleStyle for editing mode
Returns
static string DG.DemiEditor.DeGUILayout.DoubleClickDraggableTextField ( Editor  editor,
string  id,
string  text,
int  dragId,
IList  draggableList,
int  draggedItemIndex,
GUIStyle  defaultStyle,
GUIStyle  editingStyle = null 
)
static

A text field that becomes editable only on double-click and can also be dragged

Parameters
editorEditor reference
idA unique ID to use in order to determine if the text is selected or not
textText
dragIdID for this drag operation (must be the same for both this and Drag
draggableListList containing the dragged item and all other relative draggable items
draggedItemIndexDraggableList index of the item being dragged
defaultStyleStyle for default (non-editing mode) appearance
editingStyleStyle for editing mode
Returns
static string DG.DemiEditor.DeGUILayout.DoubleClickTextField ( EditorWindow  editorWindow,
string  id,
string  text,
GUIStyle  defaultStyle,
GUIStyle  editingStyle = null 
)
static

A text field that becomes editable only on double-click

Parameters
editorWindowEditorWindow reference
idA unique ID to use in order to determine if the text is selected or not
textText
defaultStyleStyle for default (non-editing mode) appearance
editingStyleStyle for editing mode
static string DG.DemiEditor.DeGUILayout.DoubleClickTextField ( Editor  editor,
string  id,
string  text,
GUIStyle  defaultStyle,
GUIStyle  editingStyle = null 
)
static

A text field that becomes editable only on double-click

Parameters
editorEditor reference
idA unique ID to use in order to determine if the text is selected or not
textText
defaultStyleStyle for default (non-editing mode) appearance
editingStyleStyle for editing mode
static void DG.DemiEditor.DeGUILayout.EndToolbar ( )
static

Ends an horizontal toolbar layout

static void DG.DemiEditor.DeGUILayout.EndVBox ( )
static

End vertical box layout

static void DG.DemiEditor.DeGUILayout.HorizontalDivider ( Color?  color = null,
int  height = 1,
int  topMargin = 5,
int  bottomMargin = 5 
)
static

Horizontal Divider

static bool DG.DemiEditor.DeGUILayout.PressButton ( string  text,
GUIStyle  guiStyle,
params GUILayoutOption[]  options 
)
static

Draws a button that returns TRUE the first time it's pressed, instead than when its released.

static bool DG.DemiEditor.DeGUILayout.PressButton ( GUIContent  content,
GUIStyle  guiStyle,
params GUILayoutOption[]  options 
)
static

Draws a button that returns TRUE the first time it's pressed, instead than when its released.

static Object DG.DemiEditor.DeGUILayout.SceneField ( string  label,
Object  obj 
)
static

Scene field

static bool DG.DemiEditor.DeGUILayout.ShadedButton ( Color  shade,
string  text,
params GUILayoutOption[]  options 
)
static

Shaded button

static bool DG.DemiEditor.DeGUILayout.ShadedButton ( Color  shade,
string  text,
GUIStyle  guiStyle,
params GUILayoutOption[]  options 
)
static

Shaded button

static bool DG.DemiEditor.DeGUILayout.ShadedButton ( Color  shade,
GUIContent  content,
params GUILayoutOption[]  options 
)
static

Shaded button

static bool DG.DemiEditor.DeGUILayout.ShadedButton ( Color  shade,
GUIContent  content,
GUIStyle  guiStyle,
params GUILayoutOption[]  options 
)
static

Shaded button

static bool DG.DemiEditor.DeGUILayout.ToggleButton ( bool  toggled,
string  text,
params GUILayoutOption[]  options 
)
static

Button that can be toggled on and off

static bool DG.DemiEditor.DeGUILayout.ToggleButton ( bool  toggled,
string  text,
GUIStyle  guiStyle,
params GUILayoutOption[]  options 
)
static

Button that can be toggled on and off

static bool DG.DemiEditor.DeGUILayout.ToggleButton ( bool  toggled,
string  text,
DeColorPalette  colorPalette,
GUIStyle  guiStyle = null,
params GUILayoutOption[]  options 
)
static

Button that can be toggled on and off

static bool DG.DemiEditor.DeGUILayout.ToggleButton ( bool  toggled,
GUIContent  content,
params GUILayoutOption[]  options 
)
static

Button that can be toggled on and off

static bool DG.DemiEditor.DeGUILayout.ToggleButton ( bool  toggled,
GUIContent  content,
GUIStyle  guiStyle,
params GUILayoutOption[]  options 
)
static

Button that can be toggled on and off

static bool DG.DemiEditor.DeGUILayout.ToggleButton ( bool  toggled,
GUIContent  content,
DeColorPalette  colorPalette,
GUIStyle  guiStyle = null,
params GUILayoutOption[]  options 
)
static

Button that can be toggled on and off

Button that can be toggled on and off

static void DG.DemiEditor.DeGUILayout.Toolbar ( string  text,
params GUILayoutOption[]  options 
)
static

A toolbar with a label

static void DG.DemiEditor.DeGUILayout.Toolbar ( string  text,
GUIStyle  toolbarStyle,
params GUILayoutOption[]  options 
)
static

A toolbar with a label

static void DG.DemiEditor.DeGUILayout.Toolbar ( string  text,
GUIStyle  toolbarStyle,
GUIStyle  labelStyle,
params GUILayoutOption[]  options 
)
static

A toolbar with a label

static void DG.DemiEditor.DeGUILayout.Toolbar ( string  text,
Color  backgroundShade,
params GUILayoutOption[]  options 
)
static

A toolbar with a label

static void DG.DemiEditor.DeGUILayout.Toolbar ( string  text,
Color  backgroundShade,
GUIStyle  toolbarStyle,
params GUILayoutOption[]  options 
)
static

A toolbar with a label

static void DG.DemiEditor.DeGUILayout.Toolbar ( string  text,
Color  backgroundShade,
GUIStyle  toolbarStyle,
GUIStyle  labelStyle,
params GUILayoutOption[]  options 
)
static

A toolbar with a label

static bool DG.DemiEditor.DeGUILayout.ToolbarFoldoutButton ( bool  toggled,
string  text = null,
bool  isLarge = false,
bool  stretchedLabel = false 
)
static

Toolbar foldout button


The documentation for this class was generated from the following file: