From fc5de0455e1d99b6b89168ab3c9b973360791d68 Mon Sep 17 00:00:00 2001 From: fluxgen <fluxgen> Date: Tue, 24 Jun 2003 10:12:57 +0000 Subject: added clearArea --- src/FbTk/FbWindow.cc | 8 +++++++- src/FbTk/FbWindow.hh | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc index 722b414..587122e 100644 --- a/src/FbTk/FbWindow.cc +++ b/src/FbTk/FbWindow.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWindow.cc,v 1.20 2003/05/19 22:38:55 fluxgen Exp $ +// $Id: FbWindow.cc,v 1.21 2003/06/24 10:12:57 fluxgen Exp $ #include "FbWindow.hh" #include "EventManager.hh" @@ -115,6 +115,12 @@ void FbWindow::clear() { XClearWindow(s_display, m_window); } +void FbWindow::clearArea(int x, int y, + unsigned int width, unsigned int height, + bool exposures) { + XClearArea(s_display, window(), x, y, width, height, exposures); +} + FbWindow &FbWindow::operator = (Window win) { setNew(win); return *this; diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh index 45928c0..bf82324 100644 --- a/src/FbTk/FbWindow.hh +++ b/src/FbTk/FbWindow.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWindow.hh,v 1.17 2003/05/19 22:38:54 fluxgen Exp $ +// $Id: FbWindow.hh,v 1.18 2003/06/24 10:12:57 fluxgen Exp $ #ifndef FBTK_FBWINDOW_HH #define FBTK_FBWINDOW_HH @@ -73,6 +73,10 @@ public: void setEventMask(long mask); /// clear window with background pixmap or color virtual void clear(); + /// @param exposures wheter Expose event should be generated + virtual void clearArea(int x, int y, + unsigned int width, unsigned int height, + bool exposures = false); /// assign a new X window to this virtual FbWindow &operator = (Window win); virtual void hide(); -- cgit v0.11.2