diff options
author | fluxgen <fluxgen> | 2003-06-24 10:12:57 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-06-24 10:12:57 (GMT) |
commit | fc5de0455e1d99b6b89168ab3c9b973360791d68 (patch) | |
tree | 88426dcb67e38da079f354cd3fa9ca8ff23f28a5 | |
parent | 476c6d1d172d87594233642023dbfdd29ab28a2a (diff) | |
download | fluxbox_pavel-fc5de0455e1d99b6b89168ab3c9b973360791d68.zip fluxbox_pavel-fc5de0455e1d99b6b89168ab3c9b973360791d68.tar.bz2 |
added clearArea
-rw-r--r-- | src/FbTk/FbWindow.cc | 8 | ||||
-rw-r--r-- | 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 @@ | |||
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 | ||
118 | void 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 | |||
118 | FbWindow &FbWindow::operator = (Window win) { | 124 | FbWindow &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(); |