20 #ifndef LIST_WINDOW_HXX 21 #define LIST_WINDOW_HXX 26 #include "util/Compiler.h" 64 return value == other.
value;
68 return !(*
this == other);
111 :
w(_w),
size(_size) {}
136 bool HandleMouse(mmask_t bstate,
int y);
212 unsigned ValidateIndex(
unsigned i)
const;
214 void CheckSelected();
Command
Definition: Command.hxx:29
constexpr const_iterator begin() const
Definition: ListWindow.hxx:76
unsigned value
Definition: ListWindow.hxx:56
Definition: ListWindow.hxx:35
bool HandleScrollCommand(Command cmd)
bool range_selection
Definition: ListWindow.hxx:106
WINDOW * w
Definition: ListWindow.hxx:87
constexpr bool Contains(unsigned i) const
Definition: ListWindow.hxx:51
constexpr bool operator==(const const_iterator &other) const
Definition: ListWindow.hxx:63
unsigned length
Definition: ListWindow.hxx:93
bool HandleCommand(Command cmd)
bool Jump(const ListText &text, const char *str)
void MoveCursorPrevious()
Definition: ListWindow.hxx:55
bool ReverseFind(const ListText &text, const char *str, bool wrap, bool bell_on_wrap)
Size size
Definition: ListWindow.hxx:88
gcc_pure ListWindowRange GetRange() const
bool hide_cursor
Definition: ListWindow.hxx:108
void ScrollTo(unsigned n)
void ScrollUp(unsigned n)
const_iterator & operator++()
Definition: ListWindow.hxx:58
void MoveCursorNextPage()
Definition: ListRenderer.hxx:25
void Paint(const ListRenderer &renderer) const
unsigned selected
Definition: ListWindow.hxx:96
bool Find(const ListText &text, const char *str, bool wrap, bool bell_on_wrap)
void MoveCursorPreviousPage()
constexpr const_iterator end() const
Definition: ListWindow.hxx:80
unsigned start
Definition: ListWindow.hxx:95
void MoveCursor(unsigned n)
void ScrollDown(unsigned n)
void SetLength(unsigned length)
void SetCursor(unsigned i)
unsigned start_index
Definition: ListWindow.hxx:39
Definition: ListText.hxx:25
const unsigned & operator *() const
Definition: ListWindow.hxx:71
constexpr bool empty() const
Definition: ListWindow.hxx:47
unsigned end_index
Definition: ListWindow.hxx:45
ListWindow(WINDOW *_w, Size _size)
Definition: ListWindow.hxx:110
Definition: ListWindow.hxx:85
unsigned range_base
Definition: ListWindow.hxx:101
constexpr bool operator!=(const const_iterator &other) const
Definition: ListWindow.hxx:67