all repos — fluxbox @ fc5de0455e1d99b6b89168ab3c9b973360791d68

custom fork of the fluxbox windowmanager

added clearArea
fluxgen fluxgen
commit

fc5de0455e1d99b6b89168ab3c9b973360791d68

parent

476c6d1d172d87594233642023dbfdd29ab28a2a

2 files changed, 12 insertions(+), 2 deletions(-)

jump to
M src/FbTk/FbWindow.ccsrc/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.hhsrc/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();