Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Static Public Member Functions | List of all members
GUIUtil Class Reference

Classes

class  Layout
 

Static Public Member Functions

static void ClearEditableFieldFlags ()
 
static bool EditableBoolField (string caption, bool value, Callback< bool > onSubmit)
 
static double EditableDoubleField (string caption, double value, Callback< double > onSubmit)
 
static int EditableEnumField (string caption, System.Type enumType, int selected, Callback< int > onSubmit, params GUILayoutOption[] guiOptions)
 
static T EditableField< T > (string caption, T value, Func< T, string > ToStringMethod, Func< string, T > ParseMethod, Callback< T > onSubmit)
 
static float EditableFloatField (string caption, float value, Callback< float > onSubmit)
 
static int EditableIntField (string caption, int value, Callback< int > onSubmit)
 
static string EditableStringField (string caption, string value, Callback< string > onSubmit)
 
static string EditableTextArea (string caption, string value, Callback< string > onSubmit, params GUILayoutOption[] guiOptions)
 
static T EnumFlagField< T > (string caption, T value, int ValueCount, int xCount, Func< int, T > ValueAt, Func< int, string > ValueNameAt, Func< T, int > IntCast, Func< int, T > TCast)
 
static float LabelHorizontalSlider (string caption, float value, float leftValue, float rightValue, string valueStringFormat, params GUILayoutOption[] guiOptions)
 
static float LabelVerticalSlider (string caption, float value, float leftValue, float rightValue, string valueStringFormat, params GUILayoutOption[] guiOptions)
 
static void ProgressBar (Rect rect, float start, float end, GUIStyle style)
 
static void ProgressBarVertical (Rect rect, float start, float end, GUIStyle style)
 
static Rect ScreenCenteredRect (float width, float height)
 

Member Function Documentation

static void GUIUtil.ClearEditableFieldFlags ( )
inlinestatic
static bool GUIUtil.EditableBoolField ( string  caption,
bool  value,
Callback< bool >  onSubmit 
)
inlinestatic
static double GUIUtil.EditableDoubleField ( string  caption,
double  value,
Callback< double >  onSubmit 
)
inlinestatic
static int GUIUtil.EditableEnumField ( string  caption,
System.Type  enumType,
int  selected,
Callback< int >  onSubmit,
params GUILayoutOption[]  guiOptions 
)
inlinestatic
static T GUIUtil.EditableField< T > ( string  caption,
value,
Func< T, string >  ToStringMethod,
Func< string, T >  ParseMethod,
Callback< T >  onSubmit 
)
inlinestatic
static float GUIUtil.EditableFloatField ( string  caption,
float  value,
Callback< float >  onSubmit 
)
inlinestatic
static int GUIUtil.EditableIntField ( string  caption,
int  value,
Callback< int >  onSubmit 
)
inlinestatic
static string GUIUtil.EditableStringField ( string  caption,
string  value,
Callback< string >  onSubmit 
)
inlinestatic
static string GUIUtil.EditableTextArea ( string  caption,
string  value,
Callback< string >  onSubmit,
params GUILayoutOption[]  guiOptions 
)
inlinestatic
static T GUIUtil.EnumFlagField< T > ( string  caption,
value,
int  ValueCount,
int  xCount,
Func< int, T >  ValueAt,
Func< int, string >  ValueNameAt,
Func< T, int >  IntCast,
Func< int, T >  TCast 
)
inlinestatic
static float GUIUtil.LabelHorizontalSlider ( string  caption,
float  value,
float  leftValue,
float  rightValue,
string  valueStringFormat,
params GUILayoutOption[]  guiOptions 
)
inlinestatic
static float GUIUtil.LabelVerticalSlider ( string  caption,
float  value,
float  leftValue,
float  rightValue,
string  valueStringFormat,
params GUILayoutOption[]  guiOptions 
)
inlinestatic
static void GUIUtil.ProgressBar ( Rect  rect,
float  start,
float  end,
GUIStyle  style 
)
inlinestatic
static void GUIUtil.ProgressBarVertical ( Rect  rect,
float  start,
float  end,
GUIStyle  style 
)
inlinestatic
static Rect GUIUtil.ScreenCenteredRect ( float  width,
float  height 
)
inlinestatic

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