yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gui::InputScalarTargetIdentity Struct Reference

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
 

Detailed Description

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.

Definition at line 56 of file input.h.

Member Function Documentation

◆ operator==()

bool yaze::gui::InputScalarTargetIdentity::operator== ( const InputScalarTargetIdentity & other) const
inline

Definition at line 62 of file input.h.

References component, container, context, and element.

Member Data Documentation

◆ context

uint64_t yaze::gui::InputScalarTargetIdentity::context = 0

Definition at line 57 of file input.h.

Referenced by operator==().

◆ container

uint64_t yaze::gui::InputScalarTargetIdentity::container = 0

Definition at line 58 of file input.h.

Referenced by operator==().

◆ element

uint64_t yaze::gui::InputScalarTargetIdentity::element = 0

Definition at line 59 of file input.h.

Referenced by operator==().

◆ component

uint64_t yaze::gui::InputScalarTargetIdentity::component = 0

Definition at line 60 of file input.h.

Referenced by operator==().


The documentation for this struct was generated from the following file: