- textbox: add clear() function

This commit is contained in:
svenhoefer
2016-10-31 23:06:47 +01:00
parent 1fc717f56f
commit 0b504f8c60
2 changed files with 11 additions and 0 deletions

View File

@@ -836,6 +836,16 @@ void CTextBox::hide (void)
frameBuffer = NULL; frameBuffer = NULL;
} }
void CTextBox::clear(void)
{
//TRACE("[CTextBox] %s Line %d\r\n", __FUNCTION__, __LINE__);
if (frameBuffer == NULL)
return;
std::string clear(" ");
setText(&clear);
}
bool CTextBox::clearScreenBuffer() bool CTextBox::clearScreenBuffer()
{ {
if(m_bgpixbuf){ if(m_bgpixbuf){

View File

@@ -210,6 +210,7 @@ class CTextBox : public sigc::trackable
inline int getTextMode() {return m_nMode;}; inline int getTextMode() {return m_nMode;};
void paint (void); void paint (void);
void hide (void); void hide (void);
void clear(void);
bool clearScreenBuffer(); bool clearScreenBuffer();
sigc::signal<void> OnAfterRefresh; sigc::signal<void> OnAfterRefresh;
sigc::signal<void> OnAfterScrollPage; sigc::signal<void> OnAfterScrollPage;