added clearArea
fluxgen fluxgen
2 files changed,
12 insertions(+),
2 deletions(-)
M
src/FbTk/FbWindow.cc
→
src/FbTk/FbWindow.cc
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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"@@ -113,6 +113,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) {
M
src/FbTk/FbWindow.hh
→
src/FbTk/FbWindow.hh
@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// 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 @@ void setName(const char *name);
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();