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.
Runs ImGui::InputScalar on a candidate value kept per ImGuiID and copies the candidate to data only when the item is deactivated after an edit (Enter, Tab, or focus loss). Escape discards the candidate. Returns true only when that copy changed data. EnterReturnsTrue is removed from flags; ImGui Test Engine's ItemInputValue still commits because Enter deactivates the input.
ImGui 1.93 InputScalar also waits for Enter, Tab, or focus loss by default (ImGuiItemFlags_LiveEditOnInputScalar is off). The separate candidate lets this helper refuse a commit when the model or target_identity changed while the edit was active.
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 62 of file input.h.
Referenced by operator==().
| uint64_t yaze::gui::InputScalarTargetIdentity::container = 0 |
Definition at line 63 of file input.h.
Referenced by operator==().
| uint64_t yaze::gui::InputScalarTargetIdentity::element = 0 |
Definition at line 64 of file input.h.
Referenced by operator==().
| uint64_t yaze::gui::InputScalarTargetIdentity::component = 0 |
Definition at line 65 of file input.h.
Referenced by operator==().