mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
textbox: add clear() function
Origin commit data
------------------
Commit: 0b504f8c60
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-31 (Mon, 31 Oct 2016)
Origin message was:
------------------
- textbox: add clear() function
This commit is contained in:
@@ -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){
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user