|
TachyonUI 0.1.0
High-performance UI for building tools.
|
In-place rename of a tree / list / grid row (F2, Ctrl+Shift+Click or a slow re-click); the target row emits a text field instead of its label. More...
#include <gui_controls/subsystems/gui_subsystem_state.h>
Public Member Functions | |
| void | Start (tachyon::ID id, std::string *buffer, std::string_view text) |
| Starts renaming row id: buffer is set to Text and edited in place. | |
| void | Cancel () |
| Ends the rename without touching the buffer. | |
Public Attributes | |
| tachyon::ID | targetID = tachyon::ID::Invalid() |
| the row being renamed | |
| bool | isActive = false |
| bool | firstFrame = false |
| Set on the frame the rename starts, when a commit left over from an earlier edit must not end it; cleared once the field is built. | |
| std::string * | editBuffer = nullptr |
| the caller's buffer the field edits | |
In-place rename of a tree / list / grid row (F2, Ctrl+Shift+Click or a slow re-click); the target row emits a text field instead of its label.
One rename at a time.
|
inline |
Starts renaming row id: buffer is set to Text and edited in place.
|
inline |
Ends the rename without touching the buffer.
| tachyon::ID tachyon::RenameSubsystem::targetID = tachyon::ID::Invalid() |
the row being renamed
| bool tachyon::RenameSubsystem::isActive = false |
| bool tachyon::RenameSubsystem::firstFrame = false |
Set on the frame the rename starts, when a commit left over from an earlier edit must not end it; cleared once the field is built.
| std::string* tachyon::RenameSubsystem::editBuffer = nullptr |
the caller's buffer the field edits