TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::RenameSubsystem Class Reference

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

Detailed Description

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.

Member Function Documentation

◆ Start()

void tachyon::RenameSubsystem::Start ( tachyon::ID id,
std::string * buffer,
std::string_view text )
inline

Starts renaming row id: buffer is set to Text and edited in place.

◆ Cancel()

void tachyon::RenameSubsystem::Cancel ( )
inline

Ends the rename without touching the buffer.

Member Data Documentation

◆ targetID

tachyon::ID tachyon::RenameSubsystem::targetID = tachyon::ID::Invalid()

the row being renamed

◆ isActive

bool tachyon::RenameSubsystem::isActive = false

◆ firstFrame

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.

◆ editBuffer

std::string* tachyon::RenameSubsystem::editBuffer = nullptr

the caller's buffer the field edits


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