yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::editor::MessageEditor::TextBox Struct Reference

Public Member Functions

void Undo ()
 
void clearUndo ()
 
void Copy ()
 
void Cut ()
 
void Paste ()
 
void clear ()
 
void SelectAll ()
 
void Focus ()
 

Public Attributes

std::string text
 
std::string buffer
 
int cursor_pos = 0
 
int selection_start = 0
 
int selection_end = 0
 
int selection_length = 0
 
bool has_selection = false
 
bool has_focus = false
 
bool changed = false
 
bool can_undo = false
 

Detailed Description

Definition at line 105 of file message_editor.h.

Member Function Documentation

◆ Undo()

void yaze::app::editor::MessageEditor::TextBox::Undo ( )
inline

Definition at line 117 of file message_editor.h.

References buffer, cursor_pos, has_selection, selection_start, and text.

Referenced by yaze::app::editor::MessageEditor::Undo().

◆ clearUndo()

void yaze::app::editor::MessageEditor::TextBox::clearUndo ( )
inline

Definition at line 122 of file message_editor.h.

References can_undo.

Referenced by yaze::app::editor::MessageEditor::Undo().

◆ Copy()

void yaze::app::editor::MessageEditor::TextBox::Copy ( )
inline

Definition at line 123 of file message_editor.h.

References text.

Referenced by yaze::app::editor::MessageEditor::Copy(), and Cut().

◆ Cut()

void yaze::app::editor::MessageEditor::TextBox::Cut ( )
inline

Definition at line 124 of file message_editor.h.

References changed, Copy(), cursor_pos, has_selection, selection_end, selection_start, and text.

Referenced by yaze::app::editor::MessageEditor::Cut().

Here is the call graph for this function:

◆ Paste()

void yaze::app::editor::MessageEditor::TextBox::Paste ( )
inline

◆ clear()

void yaze::app::editor::MessageEditor::TextBox::clear ( )
inline

◆ SelectAll()

void yaze::app::editor::MessageEditor::TextBox::SelectAll ( )
inline

◆ Focus()

void yaze::app::editor::MessageEditor::TextBox::Focus ( )
inline

Definition at line 157 of file message_editor.h.

References has_focus.

Referenced by yaze::app::editor::MessageEditor::SelectAll().

Member Data Documentation

◆ text

std::string yaze::app::editor::MessageEditor::TextBox::text

◆ buffer

std::string yaze::app::editor::MessageEditor::TextBox::buffer

Definition at line 107 of file message_editor.h.

Referenced by clear(), and Undo().

◆ cursor_pos

int yaze::app::editor::MessageEditor::TextBox::cursor_pos = 0

Definition at line 108 of file message_editor.h.

Referenced by clear(), Cut(), Paste(), and Undo().

◆ selection_start

int yaze::app::editor::MessageEditor::TextBox::selection_start = 0

Definition at line 109 of file message_editor.h.

Referenced by clear(), Cut(), Paste(), SelectAll(), and Undo().

◆ selection_end

int yaze::app::editor::MessageEditor::TextBox::selection_end = 0

Definition at line 110 of file message_editor.h.

Referenced by clear(), Cut(), Paste(), and SelectAll().

◆ selection_length

int yaze::app::editor::MessageEditor::TextBox::selection_length = 0

◆ has_selection

bool yaze::app::editor::MessageEditor::TextBox::has_selection = false

Definition at line 112 of file message_editor.h.

Referenced by clear(), Cut(), Paste(), SelectAll(), and Undo().

◆ has_focus

bool yaze::app::editor::MessageEditor::TextBox::has_focus = false

Definition at line 113 of file message_editor.h.

Referenced by clear(), and Focus().

◆ changed

bool yaze::app::editor::MessageEditor::TextBox::changed = false

Definition at line 114 of file message_editor.h.

Referenced by clear(), Cut(), and Paste().

◆ can_undo

bool yaze::app::editor::MessageEditor::TextBox::can_undo = false

Definition at line 115 of file message_editor.h.

Referenced by clear(), clearUndo(), and yaze::app::editor::MessageEditor::Undo().


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