OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::TextEditState Struct Reference

#include <TextEditState.hpp>

Public Member Functions

SIV3D_NODISCARD_CXX20 TextEditState ()=default
 
SIV3D_NODISCARD_CXX20 TextEditState (const String &defaultText)
 
SIV3D_NODISCARD_CXX20 TextEditState (String &&defaultText) noexcept
 
void clear () noexcept
 

Public Attributes

String text
 
size_t cursorPos = 0
 
bool active = false
 
bool textChanged = false
 
bool tabKey = false
 
bool enterKey = false
 
Stopwatch leftPressStopwatch
 
Stopwatch rightPressStopwatch
 
Stopwatch cursorStopwatch
 

Constructor & Destructor Documentation

◆ TextEditState() [1/3]

SIV3D_NODISCARD_CXX20 s3d::TextEditState::TextEditState ( )
default

◆ TextEditState() [2/3]

SIV3D_NODISCARD_CXX20 s3d::TextEditState::TextEditState ( const String defaultText)
explicit

◆ TextEditState() [3/3]

SIV3D_NODISCARD_CXX20 s3d::TextEditState::TextEditState ( String &&  defaultText)
explicitnoexcept

Member Function Documentation

◆ clear()

void s3d::TextEditState::clear ( )
noexcept

Member Data Documentation

◆ active

bool s3d::TextEditState::active = false

◆ cursorPos

size_t s3d::TextEditState::cursorPos = 0

◆ cursorStopwatch

Stopwatch s3d::TextEditState::cursorStopwatch

◆ enterKey

bool s3d::TextEditState::enterKey = false

◆ leftPressStopwatch

Stopwatch s3d::TextEditState::leftPressStopwatch

◆ rightPressStopwatch

Stopwatch s3d::TextEditState::rightPressStopwatch

◆ tabKey

bool s3d::TextEditState::tabKey = false

◆ text

String s3d::TextEditState::text

◆ textChanged

bool s3d::TextEditState::textChanged = false

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