Files
rtorrent/src/display/window_download_chunks_seen.h
T
2025-05-02 18:03:51 +09:00

34 lines
662 B
C++

#ifndef RTORRENT_DISPLAY_WINDOW_DOWNLOAD_CHUNKS_SEEN_H
#define RTORRENT_DISPLAY_WINDOW_DOWNLOAD_CHUNKS_SEEN_H
#include <list>
#include "window.h"
namespace core {
class Download;
}
namespace display {
class WindowDownloadChunksSeen : public Window {
public:
WindowDownloadChunksSeen(core::Download* d, unsigned int* focus);
virtual void redraw();
unsigned int rows() const;
unsigned int chunks_per_row() const { return (width() - 6) / 11 * 10; }
unsigned int max_focus() const { return std::max<int>(rows() - height() / 2 + 1, 0); }
private:
core::Download* m_download;
unsigned int* m_focus;
};
}
#endif