added clearArea
This commit is contained in:
parent
476c6d1d17
commit
fc5de0455e
2 changed files with 12 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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 "FbWindow.hh"
|
||||||
#include "EventManager.hh"
|
#include "EventManager.hh"
|
||||||
|
@ -115,6 +115,12 @@ void FbWindow::clear() {
|
||||||
XClearWindow(s_display, m_window);
|
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) {
|
FbWindow &FbWindow::operator = (Window win) {
|
||||||
setNew(win);
|
setNew(win);
|
||||||
return *this;
|
return *this;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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
|
#ifndef FBTK_FBWINDOW_HH
|
||||||
#define FBTK_FBWINDOW_HH
|
#define FBTK_FBWINDOW_HH
|
||||||
|
@ -73,6 +73,10 @@ public:
|
||||||
void setEventMask(long mask);
|
void setEventMask(long mask);
|
||||||
/// clear window with background pixmap or color
|
/// clear window with background pixmap or color
|
||||||
virtual void clear();
|
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
|
/// assign a new X window to this
|
||||||
virtual FbWindow &operator = (Window win);
|
virtual FbWindow &operator = (Window win);
|
||||||
virtual void hide();
|
virtual void hide();
|
||||||
|
|
Loading…
Reference in a new issue