mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
CTextBox: move enableBackgroundPaint() into cpp file
partial cleanup
This commit is contained in:
@@ -936,3 +936,15 @@ int CTextBox::getMaxLineWidth(const std::string& text, Font* font)
|
|||||||
|
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CTextBox::enableBackgroundPaint(bool mode)
|
||||||
|
{
|
||||||
|
m_nPaintBackground = mode;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CTextBox::disableBackgroundPaint()
|
||||||
|
{
|
||||||
|
enableBackgroundPaint(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -181,7 +181,8 @@ class CTextBox : public sigc::trackable
|
|||||||
void refresh(void);
|
void refresh(void);
|
||||||
void scrollPageDown(const int pages);
|
void scrollPageDown(const int pages);
|
||||||
void scrollPageUp(const int pages);
|
void scrollPageUp(const int pages);
|
||||||
void enableBackgroundPaint(bool mode = true){m_nPaintBackground = mode;}
|
void enableBackgroundPaint(bool mode = true);
|
||||||
|
void disableBackgroundPaint();
|
||||||
//enable screen saving behind chars, is required for transparent text paint, returns true if mode was changed
|
//enable screen saving behind chars, is required for transparent text paint, returns true if mode was changed
|
||||||
bool enableSaveScreen(bool mode = true);
|
bool enableSaveScreen(bool mode = true);
|
||||||
bool setText(const std::string* newText, int max_width = 0, bool force_repaint = true);
|
bool setText(const std::string* newText, int max_width = 0, bool force_repaint = true);
|
||||||
|
Reference in New Issue
Block a user