20 #ifndef LIST_WINDOW_HXX 21 #define LIST_WINDOW_HXX 68 return !(*
this == other);
110 :
w(_w),
size(_size) {}
135 bool HandleMouse(mmask_t bstate,
int y);
211 unsigned ValidateIndex(
unsigned i)
const;
213 void CheckSelected();
bool Find(const ListText &text, const char *str, bool wrap, bool bell_on_wrap)
unsigned start
Definition: ListWindow.hxx:94
constexpr const_iterator begin() const
Definition: ListWindow.hxx:76
void SetLength(unsigned length)
unsigned value
Definition: ListWindow.hxx:56
Definition: ListWindow.hxx:35
ListWindow(WINDOW *_w, Size _size)
Definition: ListWindow.hxx:109
void ScrollTo(unsigned n)
void MoveCursorPreviousPage()
void ScrollUp(unsigned n)
bool hide_cursor
Definition: ListWindow.hxx:107
constexpr bool Contains(unsigned i) const
Definition: ListWindow.hxx:51
constexpr bool operator==(const const_iterator &other) const
Definition: ListWindow.hxx:63
const unsigned & operator*() const
Definition: ListWindow.hxx:71
bool HandleCommand(command_t cmd)
Definition: ListWindow.hxx:55
unsigned range_base
Definition: ListWindow.hxx:100
const_iterator & operator++()
Definition: ListWindow.hxx:58
void Paint(const ListRenderer &renderer) const
void SetCursor(unsigned i)
Definition: ListRenderer.hxx:25
void MoveCursorNextPage()
bool HandleScrollCommand(command_t cmd)
constexpr const_iterator end() const
Definition: ListWindow.hxx:80
void MoveCursor(unsigned n)
unsigned start_index
Definition: ListWindow.hxx:39
Definition: ListText.hxx:25
WINDOW * w
Definition: ListWindow.hxx:86
constexpr bool empty() const
Definition: ListWindow.hxx:47
unsigned end_index
Definition: ListWindow.hxx:45
bool Jump(const ListText &text, const char *str)
#define gcc_pure
Definition: Compiler.h:101
command_t
Definition: command.hxx:35
unsigned length
Definition: ListWindow.hxx:92
bool ReverseFind(const ListText &text, const char *str, bool wrap, bool bell_on_wrap)
Size size
Definition: ListWindow.hxx:87
Definition: ListWindow.hxx:85
constexpr bool operator!=(const const_iterator &other) const
Definition: ListWindow.hxx:67
gcc_pure ListWindowRange GetRange() const
bool range_selection
Definition: ListWindow.hxx:105
unsigned selected
Definition: ListWindow.hxx:95
void ScrollDown(unsigned n)
void MoveCursorPrevious()