added clearArea

This commit is contained in:
fluxgen 2003-06-24 10:12:57 +00:00
parent 476c6d1d17
commit fc5de0455e
2 changed files with 12 additions and 2 deletions

View file

@ -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;

View file

@ -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();