22 #ifndef FIFE_FIFECHAN_ADDON_COMMANDLINE_H 23 #define FIFE_FIFECHAN_ADDON_COMMANDLINE_H 31 #include <fifechan.hpp> 56 virtual void drawCaret(fcn::Graphics * graphics, int32_t x);
void stopBlinking()
Stop blinking the caret for a few seconds.
void setCallback(const type_callback &cb)
Set callback on pressing the ENTER key.
size_t m_history_position
void keyPressed(fcn::KeyEvent &keyEvent)
void toggleCaretVisible()
Toggle the caret visibility.
void startBlinking()
Start blinking the caret.
std::function< void(std::string)> type_callback
std::vector< std::string > m_history
~CommandLine()
Destructor.
virtual void drawCaret(fcn::Graphics *graphics, int32_t x)
CommandLine()
Constructor.
Timer m_suppressBlinkTimer