aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbTk/FbWindow.cc8
-rw-r--r--src/FbTk/FbWindow.hh6
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 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWindow.cc,v 1.20 2003/05/19 22:38:55 fluxgen Exp $ 22// $Id: FbWindow.cc,v 1.21 2003/06/24 10:12:57 fluxgen Exp $
23 23
24#include "FbWindow.hh" 24#include "FbWindow.hh"
25#include "EventManager.hh" 25#include "EventManager.hh"
@@ -115,6 +115,12 @@ void FbWindow::clear() {
115 XClearWindow(s_display, m_window); 115 XClearWindow(s_display, m_window);
116} 116}
117 117
118void FbWindow::clearArea(int x, int y,
119 unsigned int width, unsigned int height,
120 bool exposures) {
121 XClearArea(s_display, window(), x, y, width, height, exposures);
122}
123
118FbWindow &FbWindow::operator = (Window win) { 124FbWindow &FbWindow::operator = (Window win) {
119 setNew(win); 125 setNew(win);
120 return *this; 126 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 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWindow.hh,v 1.17 2003/05/19 22:38:54 fluxgen Exp $ 22// $Id: FbWindow.hh,v 1.18 2003/06/24 10:12:57 fluxgen Exp $
23 23
24#ifndef FBTK_FBWINDOW_HH 24#ifndef FBTK_FBWINDOW_HH
25#define FBTK_FBWINDOW_HH 25#define FBTK_FBWINDOW_HH
@@ -73,6 +73,10 @@ public:
73 void setEventMask(long mask); 73 void setEventMask(long mask);
74 /// clear window with background pixmap or color 74 /// clear window with background pixmap or color
75 virtual void clear(); 75 virtual void clear();
76 /// @param exposures wheter Expose event should be generated
77 virtual void clearArea(int x, int y,
78 unsigned int width, unsigned int height,
79 bool exposures = false);
76 /// assign a new X window to this 80 /// assign a new X window to this
77 virtual FbWindow &operator = (Window win); 81 virtual FbWindow &operator = (Window win);
78 virtual void hide(); 82 virtual void hide();