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

#include <style.h>

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 75 of file style.h.

Member Function Documentation

◆ Undo()

void yaze::gui::TextBox::Undo ( )
inline

Definition at line 87 of file style.h.

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

◆ clearUndo()

void yaze::gui::TextBox::clearUndo ( )
inline

Definition at line 92 of file style.h.

References can_undo.

◆ Copy()

void yaze::gui::TextBox::Copy ( )
inline

Definition at line 93 of file style.h.

References text.

Referenced by Cut().

◆ Cut()

void yaze::gui::TextBox::Cut ( )
inline

Definition at line 94 of file style.h.

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

Here is the call graph for this function:

◆ Paste()

void yaze::gui::TextBox::Paste ( )
inline

Definition at line 101 of file style.h.

References changed, cursor_pos, has_selection, selection_end, selection_start, and text.

◆ clear()

void yaze::gui::TextBox::clear ( )
inline

◆ SelectAll()

void yaze::gui::TextBox::SelectAll ( )
inline

Definition at line 121 of file style.h.

References has_selection, selection_end, selection_length, selection_start, and text.

◆ Focus()

void yaze::gui::TextBox::Focus ( )
inline

Definition at line 127 of file style.h.

References has_focus.

Member Data Documentation

◆ text

std::string yaze::gui::TextBox::text

Definition at line 76 of file style.h.

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

◆ buffer

std::string yaze::gui::TextBox::buffer

Definition at line 77 of file style.h.

Referenced by clear(), and Undo().

◆ cursor_pos

int yaze::gui::TextBox::cursor_pos = 0

Definition at line 78 of file style.h.

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

◆ selection_start

int yaze::gui::TextBox::selection_start = 0

Definition at line 79 of file style.h.

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

◆ selection_end

int yaze::gui::TextBox::selection_end = 0

Definition at line 80 of file style.h.

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

◆ selection_length

int yaze::gui::TextBox::selection_length = 0

Definition at line 81 of file style.h.

Referenced by clear(), and SelectAll().

◆ has_selection

bool yaze::gui::TextBox::has_selection = false

Definition at line 82 of file style.h.

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

◆ has_focus

bool yaze::gui::TextBox::has_focus = false

Definition at line 83 of file style.h.

Referenced by clear(), and Focus().

◆ changed

bool yaze::gui::TextBox::changed = false

Definition at line 84 of file style.h.

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

◆ can_undo

bool yaze::gui::TextBox::can_undo = false

Definition at line 85 of file style.h.

Referenced by clear(), and clearUndo().


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