- ListData *data;
- bool own_data;
- DataObserver *observer;
- ItemFactory *item_factory;
- ViewMode view_mode;
- int sel_index;
- int focus_index;
- unsigned first_row;
- unsigned max_scroll;
- unsigned view_rows;
- unsigned view_columns;
- const Part *items_part;
- bool ignore_slider_change;
- bool dragging;
- int drag_start_x;
- int drag_start_y;
+ ListData *data = nullptr;
+ bool own_data = false;
+ DataObserver *observer = nullptr;
+ ItemFactory *item_factory = nullptr;
+ ViewMode view_mode = LIST;
+ std::size_t sel_index = INVALID_INDEX;
+ std::size_t focus_index = INVALID_INDEX;
+ std::size_t first_row = 0;
+ std::size_t max_scroll = 0;
+ unsigned view_rows = 5;
+ unsigned view_columns = 5;
+ const Part *items_part = nullptr;
+ bool ignore_slider_change = false;
+ bool dragging = false;
+ int drag_start_x = 0;
+ int drag_start_y = 0;