class GUIVector3Field

A composite GUI object representing an editor field.

Editor fields are a combination of a label and an input field. Label is optional. This specific implementation displays a Vector3 input field.

Public

Constructors

GUIVector3Field

GUIVector3Field(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.

SetValue

void SetValue(const Vector3 &value)

Value in the input field.

GetValue

Vector3 GetValue() const

HasInputFocus

bool HasInputFocus() const

Checks is the input field currently active.

SetInputFocus

void SetInputFocus(VectorComponent component, bool focus)

Sets input focus to a specific component's input box.

SetTint

void SetTint(const Color &color) override

Sets the tint of the GUI element.

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

OnValueChanged

Event<void (const Vector3 &)> OnValueChanged

Reports the new value of the vector when the user changes the value of any of the vector components.

OnComponentChanged

Event<void (float, VectorComponent)> OnComponentChanged

Reports the new value of an individual vector component when the user changes it.

OnComponentFocusGained

Event<void (VectorComponent)> OnComponentFocusGained

Triggered when an individual component gains focus.

OnComponentFocusLost

Event<void (VectorComponent)> OnComponentFocusLost

Triggered when an individual component loses focus.

OnConfirm

Event<void (VectorComponent)> OnConfirm

Triggered when the user hits the Enter key with any of the component input boxes in focus.

Protected

Methods

ValueChanged

void ValueChanged(float newValue, VectorComponent component)

Triggered when the values in any of the input boxes change.

InputConfirmed

void InputConfirmed(VectorComponent component)

Triggered when the users confirms input in the input box.

Fields

mFieldX

GUIFloatField * mFieldX

mFieldY

GUIFloatField * mFieldY

mFieldZ

GUIFloatField * mFieldZ