C# Class FullInspector.Internal.fiGUI

Mostra file Open project: jacobdufault/fullinspector

Public Methods

Method Description
ComputeActualLabelWidth ( float inspectorWidth, GUIContent controlLabel, float controlWidth ) : float

Gets the width of a label.

PopLabelWidth ( ) : float

Removes a stored label width.

PushLabelWidth ( GUIContent controlLabel, float controlWidth ) : float

Computes the new width that labels should be.

Method Details

ComputeActualLabelWidth() public static method

Gets the width of a label.
public static ComputeActualLabelWidth ( float inspectorWidth, GUIContent controlLabel, float controlWidth ) : float
inspectorWidth float The total width of the inspector
controlLabel UnityEngine.GUIContent /// The label for the control. This will ensure that the returned width /// can contain the entire label. ///
controlWidth float /// The total width available to the control. ///
return float

PopLabelWidth() public static method

Removes a stored label width.
public static PopLabelWidth ( ) : float
return float

PushLabelWidth() public static method

Computes the new width that labels should be.
public static PushLabelWidth ( GUIContent controlLabel, float controlWidth ) : float
controlLabel UnityEngine.GUIContent /// The label for the control. The width will be able to contain the /// label. ///
controlWidth float /// The total width available to the control. ///
return float