Draw a scalar editor that commits the model value atomically. More...
#include <input.h>
Public Member Functions | |
| bool | operator== (const InputScalarTargetIdentity &other) const |
Public Attributes | |
| uint64_t | context = 0 |
| uint64_t | container = 0 |
| uint64_t | element = 0 |
| uint64_t | component = 0 |
Draw a scalar editor that commits the model value atomically.
ImGui::InputScalar writes through its data pointer for every intermediate text edit. This helper instead keeps the in-progress value per ImGuiID and writes data only when the item is deactivated after an edit. Pressing Enter remains compatible with ImGui Test Engine's ItemInputValue because the standard input deactivates on Enter; EnterReturnsTrue is intentionally removed from flags.
Pending state is discarded if the widget disappears for a frame, its data type changes, the backing model changes, or target_identity changes while an edit is active. Supplying semantic identity keeps a stable automation ID from carrying pending text across rooms, selections, or palette targets.
|
inline |
| uint64_t yaze::gui::InputScalarTargetIdentity::context = 0 |
Definition at line 57 of file input.h.
Referenced by operator==().
| uint64_t yaze::gui::InputScalarTargetIdentity::container = 0 |
Definition at line 58 of file input.h.
Referenced by operator==().
| uint64_t yaze::gui::InputScalarTargetIdentity::element = 0 |
Definition at line 59 of file input.h.
Referenced by operator==().
| uint64_t yaze::gui::InputScalarTargetIdentity::component = 0 |
Definition at line 60 of file input.h.
Referenced by operator==().