CTextBox: move enableBackgroundPaint() into cpp file

partial cleanup
This commit is contained in:
2018-12-07 21:41:19 +01:00
parent 1d5de6babc
commit 80a1a8b64f
2 changed files with 14 additions and 1 deletions

View File

@@ -936,3 +936,15 @@ int CTextBox::getMaxLineWidth(const std::string& text, Font* font)
return len;
}
void CTextBox::enableBackgroundPaint(bool mode)
{
m_nPaintBackground = mode;
}
void CTextBox::disableBackgroundPaint()
{
enableBackgroundPaint(false);
}

View File

@@ -181,7 +181,8 @@ class CTextBox : public sigc::trackable
void refresh(void);
void scrollPageDown(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
bool enableSaveScreen(bool mode = true);
bool setText(const std::string* newText, int max_width = 0, bool force_repaint = true);