MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / selected

Method selected

src/host/ui/ui_state.cpp:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36UiState::UiState(const BufferModel& model) : model_(model) {}
37
38std::size_t UiState::selected() const {
39 if (model_.size() == 0) {
40 return 0;
41 }
42 return selected_ < model_.size() ? selected_ : model_.size() - 1;
43}
44
45void UiState::select(std::size_t i) {
46 selected_ = i;

Callers 10

mainFunction · 0.80
draw_goto_panelFunction · 0.80
draw_contrast_panelFunction · 0.80
draw_status_barFunction · 0.80
draw_buffer_list_rowFunction · 0.80
for_each_targetFunction · 0.80
draw_toolbarFunction · 0.80
TESTFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

TESTFunction · 0.64