![]() |
Gorgon Game Engine
|
This class allows users to enter any value to an inputbox. More...
Public Types | |
using | PropType = P_< UI::internal::prophelper< Inputbox< T_, V_, P_ >, T_ >, T_, &UI::internal::prophelper< Inputbox< T_, V_, P_ >, T_ >::get_, &UI::internal::prophelper< Inputbox< T_, V_, P_ >, T_ >::set_ > |
using | Type = T_ |
![]() | |
using | Type = T_ |
Public Member Functions | |
Inputbox (const UI::Template &temp, std::function< void()> changedevent) | |
Initializes the inputbox. More... | |
Inputbox (const UI::Template &temp, T_ value, std::function< void()> changedevent) | |
Initializes the inputbox. More... | |
Inputbox (const UI::Template &temp, T_ value=T_()) | |
Initializes the inputbox. More... | |
Inputbox (std::function< void()> changedevent, Registry::TemplateType type=DEFTMP_) | |
Initializes the inputbox. More... | |
Inputbox (T_ value, std::function< void()> changedevent, Registry::TemplateType type=DEFTMP_) | |
Initializes the inputbox. More... | |
Inputbox (T_ value=T_(), Registry::TemplateType type=DEFTMP_) | |
Initializes the inputbox. More... | |
operator T_ () const | |
Returns the value in the box. More... | |
Inputbox & | operator= (const Inputbox &value) |
Copy assignment will only copy the value. More... | |
Inputbox & | operator= (const T_ value) |
Assignment to the value type. More... | |
![]() | |
Property (const Property &)=delete | |
Property (Property &&)=default | |
Property (UI::internal::prophelper< Inputbox< T_, UI::ConversionValidator< T_ >, Gorgon::Property >, T_ > &Object) | |
Property (UI::internal::prophelper< Inputbox< T_, UI::ConversionValidator< T_ >, Gorgon::Property >, T_ > *Object) | |
T_ | Get () const |
operator const T_ () const | |
operator T_ () | |
bool | operator!= (const T_ &v) const |
T_ | operator* () const |
Property & | operator= (const O_ &value) |
Property & | operator= (const Property &)=delete |
Property & | operator= (const Property< AC_, T_, G_, S_ > &prop) |
Property & | operator= (const T_ &value) |
Property & | operator= (Property &&)=default |
bool | operator== (const T_ &v) const |
void | Set (const T_ &value) |
Public Attributes | |
Event< Inputbox, const T_ & > | ChangedEvent |
Fired after the value of the inputbox is changed. More... | |
Event< Inputbox > | EditedEvent |
Fired after the value of in the inputbox is edited. More... | |
Protected Member Functions | |
void | changed () override |
T_ | get () const |
Returns the value in the box. More... | |
void | set (const T_ &val) |
Changes the value in the box. More... | |
void | updatevalue () override |
void | updatevaluedisplay (bool updatedisplay=true) override |
updates the value display More... | |
Additional Inherited Members | |
![]() | |
UI::internal::prophelper< Inputbox< T_, UI::ConversionValidator< T_ >, Gorgon::Property >, T_ > & | Object |
This class allows users to enter any value to an inputbox.
This class is specialized as Textbox and Numberbox. It is possible to supply a validator to a specific inputbox. Inputbox is designed for value objects that can be copied and serialized to string.
using PropType = P_<UI::internal::prophelper<Inputbox<T_, V_, P_>, T_>, T_, &UI::internal::prophelper<Inputbox<T_, V_, P_>, T_>::get_, &UI::internal::prophelper<Inputbox<T_, V_, P_>, T_>::set_> |
using Type = T_ |
|
explicit |
Initializes the inputbox.
|
explicit |
Initializes the inputbox.
|
explicit |
Initializes the inputbox.
|
explicit |
Initializes the inputbox.
|
explicit |
Initializes the inputbox.
|
explicit |
Initializes the inputbox.
|
overrideprotected |
|
protected |
Returns the value in the box.
operator T_ | ( | ) | const |
Returns the value in the box.
Copy assignment will only copy the value.
Inputbox& operator= | ( | const T_ | value | ) |
Assignment to the value type.
|
protected |
Changes the value in the box.
|
overrideprotected |
|
overrideprotected |
updates the value display
Fired after the value of the inputbox is changed.
Parameter is the previous value before the change. If the user is typing, this event will be fired after the user hits enter or if enabled, after a set amount of time. This function will be called even if the value is not actually changed since the the last call.
Fired after the value of in the inputbox is edited.
This event will be called even if the user not done with editing. The value is updated before this event is called.