C# Class FullInspector.Internal.fiGUI

Afficher le fichier Open project: jacobdufault/fullinspector

Méthodes publiques

Méthode 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 méthode

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. ///
Résultat float

PopLabelWidth() public static méthode

Removes a stored label width.
public static PopLabelWidth ( ) : float
Résultat float

PushLabelWidth() public static méthode

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. ///
Résultat float