Lines Matching refs:shown_items

1930 …th, size_t lines, size_t /*sel*/) : widget(ITEM_WIDGET), num_items(0), shown_items(lines), thumb_d…  in w_list_base()
1933 …rect.h = item_height() * static_cast<uint16>(shown_items) + get_theme_space(LIST_WIDGET, T_SPACE) … in w_list_base()
2043 if (delta_y > 0 && num_items > shown_items && trough_rect.h > thumb_height) { in mouse_move()
2044 set_top_item(delta_y * (num_items - shown_items) / (trough_rect.h - thumb_height)); in mouse_move()
2053 …ce(LIST_WIDGET, T_SPACE)) / item_height() + top_item < std::min(num_items, top_item + shown_items)) in mouse_move()
2103 if (selection > shown_items) in event()
2104 { set_selection(selection - shown_items); } in event()
2109 if (selection + shown_items < num_items - 1) in event()
2110 { set_selection(selection + shown_items); } in event()
2150 if (top_item + amt < num_items - shown_items) in event()
2153 set_top_item(num_items - shown_items); in event()
2169 else if (s >= top_item + shown_items) in set_selection()
2170 set_top_item(s - shown_items + 1); in set_selection()
2184 if (num_items <= shown_items) in new_items()
2187 thumb_height = static_cast<uint16>(shown_items) * trough_rect.h; in new_items()
2189 thumb_height = uint16(float(shown_items * trough_rect.h) / num_items + 0.5); in new_items()
2218 set_top_item((i > shown_items / 2) ? i - shown_items / 2 : 0); in center_item()
2224 if (num_items > shown_items) in set_top_item()
2225 i = PIN(i, 0, num_items - shown_items); in set_top_item()
2233 if (num_items <= shown_items) in set_top_item()
2236 …thumb_y = int16(float(top_item * (trough_rect.h - thumb_height)) / (num_items - shown_items) + 0.5… in set_top_item()
2749 bool save_top_item = top_item < num_items - shown_items; in append_entry()
2757 } else if (num_items > shown_items) { in append_entry()
2758 set_top_item(num_items - shown_items); in append_entry()