class
TGUIDistributionField
template<class T, class SELF>Templated common class for all GUI distribution field types.
Public
Constructors
TGUIDistributionField<T, SELF>
Methods
GetDistributionType
Returns the type of the currently selected distribution.
HasInputFocus
Checks if any of the float input fields currently have input focus.
Only relevant for non-curve distributions.
SetInputFocus
Sets input focus to a specific component's input box.
- rangeComponent
- Whether to focus on the minimum or the maximum part of the range. Only relevant if the distribution represents a constant range.
- vectorComponent
- Vector component to focus on. Only relevant of the distribution constant is a vector type, and if the current distribution type is a non-curve (constant) type.
- focus
- True to enable focus, false to disable.
staticCreate
Creates a new GUI editor field with a label.
- labelContent
- Content to display in the editor field label.
- labelWidth
- Width of the label in pixels.
- styleClass
- Style class that will be used for determining GUI element visuals from the current style sheet. If no class is provided, default style is determined based on GUI element type.
Fields
OnClicked
Triggered when the user clicks on the curve display.
Only relevant if the distribution is a curve distribution. Provides the index of the clicked curve.
OnConstantModified
Triggered when the user modifies the value of the non-curve (constant) values of the distribution.
Only relevant if the distribution is not a curve distribution.
OnConstantConfirmed
Triggered when the user confirms inputs in the non-curve (constant) values of the distribution.
Only relevant if the distribution is not a curve distribution.
OnConstantFocusGained
Triggered when a GUI field representing an individual component gains focus.
This only applies to input fields representing the non-curve (constant) distribution types.
OnConstantFocusLost
Triggered when a GUI field representing an individual component loses focus.
This only applies to input fields representing the non-curve (constant) distribution types.
Protected
Methods
Rebuild
Rebuilds the internal GUI components for the current property type.