mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-11 20:52:30 +00:00
b994517819
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@239 e378c898-3ddf-0310-93e7-cc216c733640
31 lines
478 B
C++
31 lines
478 B
C++
#ifndef RTORRENT_WINDOW_BASE_H
|
|
#define RTORRENT_WINDOW_BASE_H
|
|
|
|
namespace display {
|
|
|
|
class Canvas;
|
|
|
|
class Window {
|
|
public:
|
|
Window(Canvas* c = NULL) : m_canvas(c) {}
|
|
virtual ~Window() {}
|
|
|
|
Canvas* get_canvas() { return m_canvas; }
|
|
|
|
void refresh();
|
|
void resize(int x, int y, int w, int h);
|
|
|
|
virtual void redraw() = 0;
|
|
|
|
protected:
|
|
Window(const Window&);
|
|
void operator = (const Window&);
|
|
|
|
Canvas* m_canvas;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|
|
|