mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 14:42:30 +00:00
* Starting work on ElementText for displaying generic information.
* If a storage error was thrown from make_directory in EntryList::open, it would try to erase a FileMeta that wasn't inserted. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@753 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -62,7 +62,8 @@ public:
|
||||
using base_type::rbegin;
|
||||
using base_type::rend;
|
||||
|
||||
WindowText() : Window(new Canvas, 0, 0, 0, extent_static, extent_static) {}
|
||||
WindowText(void* object = NULL, extent_type margin = 0) :
|
||||
Window(new Canvas, 0, 0, 0, extent_static, extent_static), m_object(object), m_margin(margin) {}
|
||||
~WindowText() { clear(); }
|
||||
|
||||
void clear();
|
||||
@@ -70,6 +71,11 @@ public:
|
||||
void push_back(TextElement* element);
|
||||
|
||||
virtual void redraw();
|
||||
|
||||
private:
|
||||
void* m_object;
|
||||
|
||||
extent_type m_margin;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user