20 #ifndef LIST_WINDOW_HXX 21 #define LIST_WINDOW_HXX 26 #include "util/Compiler.h" 64 return value == other.
value;
68 return !(*
this == other);
71 const unsigned &operator *()
const {
96 unsigned selected = 0;
101 unsigned range_base = 0;
106 bool range_selection =
false;
108 bool hide_cursor =
false;
111 :w(_w), size(_size) {}
116 void Resize(
Size _size);
118 void SetLength(
unsigned length);
123 bool HandleCommand(
Command cmd);
129 bool HandleScrollCommand(
Command cmd);
136 bool HandleMouse(mmask_t bstate,
int y);
142 void Center(
unsigned n);
148 void ScrollTo(
unsigned n);
153 void SetCursor(
unsigned i);
159 void MoveCursor(
unsigned n);
161 void MoveCursorNext();
162 void MoveCursorPrevious();
163 void MoveCursorTop();
164 void MoveCursorMiddle();
165 void MoveCursorBottom();
166 void MoveCursorFirst();
167 void MoveCursorLast();
168 void MoveCursorNextPage();
169 void MoveCursorPreviousPage();
171 void ScrollUp(
unsigned n);
172 void ScrollDown(
unsigned n);
199 bool ReverseFind(
const ListText &text,
208 bool Jump(
const ListText &text,
const char *str);
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
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
Definition: ListWindow.hxx:55
Size size
Definition: ListWindow.hxx:88
const_iterator & operator++()
Definition: ListWindow.hxx:58
Definition: ListRenderer.hxx:25
constexpr const_iterator end() const
Definition: ListWindow.hxx:80
unsigned start_index
Definition: ListWindow.hxx:39
Definition: ListText.hxx:25
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
constexpr bool operator!=(const const_iterator &other) const
Definition: ListWindow.hxx:67