Mana
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
TextHistory Struct Reference

#include <textfield.h>

Public Member Functions

 TextHistory ()
 
bool empty () const
 
bool atBegining () const
 
bool atEnd () const
 
void toBegining ()
 
void toEnd ()
 
void addEntry (const std::string &text)
 
bool matchesLastEntry (const std::string &text)
 

Public Attributes

std::list< std::string > history
 Command history.
 
std::list< std::string >::iterator current
 History iterator.
 

Detailed Description

Definition at line 30 of file textfield.h.

Constructor & Destructor Documentation

◆ TextHistory()

TextHistory::TextHistory ( )
inline

Definition at line 35 of file textfield.h.

Member Function Documentation

◆ addEntry()

void TextHistory::addEntry ( const std::string &  text)
inline

Definition at line 53 of file textfield.h.

◆ atBegining()

bool TextHistory::atBegining ( ) const
inline

Definition at line 41 of file textfield.h.

◆ atEnd()

bool TextHistory::atEnd ( ) const
inline

Definition at line 44 of file textfield.h.

◆ empty()

bool TextHistory::empty ( ) const
inline

Definition at line 38 of file textfield.h.

◆ matchesLastEntry()

bool TextHistory::matchesLastEntry ( const std::string &  text)
inline

Definition at line 56 of file textfield.h.

◆ toBegining()

void TextHistory::toBegining ( )
inline

Definition at line 47 of file textfield.h.

◆ toEnd()

void TextHistory::toEnd ( )
inline

Definition at line 50 of file textfield.h.

Member Data Documentation

◆ current

std::list<std::string>::iterator TextHistory::current

History iterator.

Definition at line 33 of file textfield.h.

◆ history

std::list<std::string> TextHistory::history

Command history.

Definition at line 32 of file textfield.h.


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