Gin
Public Member Functions | Public Attributes | List of all members
TextHistory Class Reference

Public Member Functions

void setHistoryLimit (int numItems)
 
void undo ()
 
void redo ()
 
bool canUndo ()
 
bool canRedo ()
 
bool addText (const juce::String &)
 
const juce::String & getCurrentText ()
 

Public Attributes

std::function< void()> onStateChanged
 

Member Function Documentation

◆ setHistoryLimit()

void TextHistory::setHistoryLimit ( int  numItems)

◆ undo()

void TextHistory::undo ( )

◆ redo()

void TextHistory::redo ( )

◆ canUndo()

bool TextHistory::canUndo ( )

◆ canRedo()

bool TextHistory::canRedo ( )

◆ addText()

bool TextHistory::addText ( const juce::String &  )

◆ getCurrentText()

const juce::String& TextHistory::getCurrentText ( )

Member Data Documentation

◆ onStateChanged

std::function<void ()> TextHistory::onStateChanged

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