* Moved all remaining classes to use the new display::Frame.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@749 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-07-29 00:22:26 +00:00
parent 4c9fc671be
commit fa5ff92e24
16 changed files with 257 additions and 202 deletions
+6 -2
View File
@@ -57,8 +57,9 @@ public:
typedef rak::mem_fun2<Manager, void, Window*, rak::timer> SlotTimer;
static const int flag_active = (1 << 0);
static const int flag_width_dynamic = (1 << 1);
static const int flag_height_dynamic = (1 << 2);
static const int flag_offscreen = (1 << 1);
static const int flag_width_dynamic = (1 << 2);
static const int flag_height_dynamic = (1 << 3);
Window(Canvas* canvas, int flags, extent_type minWidth, extent_type minHeight);
@@ -67,6 +68,9 @@ public:
bool is_active() const { return m_flags & flag_active; }
void set_active(bool state);
bool is_offscreen() const { return m_flags & flag_offscreen; }
void set_offscreen(bool state) { if (state) m_flags |= flag_offscreen; else m_flags &= ~flag_offscreen; }
bool is_width_dynamic() const { return m_flags & flag_width_dynamic; }
bool is_height_dynamic() const { return m_flags & flag_height_dynamic; }