From: Felix Domke Date: Sun, 14 May 2006 22:52:51 +0000 (+0000) Subject: support backgroundColor for eWindow X-Git-Tag: 2.6.0~3427 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/8bca86cd0957744b9b1439c0ef63debb2e562c94 support backgroundColor for eWindow --- diff --git a/lib/gui/ewindow.cpp b/lib/gui/ewindow.cpp index 112b82d7..910acda4 100644 --- a/lib/gui/ewindow.cpp +++ b/lib/gui/ewindow.cpp @@ -52,6 +52,14 @@ std::string eWindow::getTitle() const return m_title; } +void eWindow::setBackgroundColor(const gRGB &col) +{ + eDebug("eWindow: Set background color!"); + /* set background color for child, too */ + eWidget::setBackgroundColor(col); + m_child->setBackgroundColor(col); +} + void eWindow::setFlag(int flags) { m_flags |= flags; diff --git a/lib/gui/ewindow.h b/lib/gui/ewindow.h index bb7f771c..265f512a 100644 --- a/lib/gui/ewindow.h +++ b/lib/gui/ewindow.h @@ -19,6 +19,8 @@ public: enum { wfNoBorder = 1 }; + + void setBackgroundColor(const gRGB &col); void setFlag(int flags); void clearFlag(int flags);