class
TGUIColorGradientField
template<class T, class TGUI, class TSELF>
Inherits:
TGUIField<TSELF>
Templated class for creating GUI fields for both normal and HDR color gradients.
Public
Constructors
TGUIColorGradientField<T, TGUI, TSELF>
TGUIColorGradientField<T, TGUI, TSELF>(const PrivatelyConstruct &dummy, const GUIContent &labelContent, u32 labelWidth, const String &style, const GUISizeConstraints &dimensions, bool withLabel)
Methods
staticGetGuiTypeName
static const String &GetGuiTypeName()
Returns type name of the GUI element used for finding GUI element styles.
GetValue
T GetValue() const
Returns the value of the field.
SetValue
void SetValue(const T &value)
Changes the value of the field.
staticCreate
static T *Create(const GUIContent &labelContent, u32 labelWidth, const String &styleClass = StringUtility::kBlank)
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
Internal
Methods
CalculateUnconstrainedOptimalSize
GUILogicalSize CalculateUnconstrainedOptimalSize() const override
Calculates the optimal size for the GUI element, ignoring size constraints.
Protected
Methods
Clicked
void Clicked()
Triggered when the child color input field is clicked on.