MCPcopy Create free account
hub / github.com/davisking/dlib / is_selected

Method is_selected

dlib/gui_widgets/widgets.cpp:2300–2312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2298
2299 template <typename S>
2300 bool list_box<S>::
2301 is_selected (
2302 unsigned long index
2303 ) const
2304 {
2305 auto_mutex M(m);
2306 DLIB_ASSERT ( index < size() ,
2307 "\tbool list_box::is_selected(index)"
2308 << "\n\tindex: " << index
2309 << "\n\tsize(): " << size() );
2310
2311 return items[index].is_selected;
2312 }
2313
2314// ----------------------------------------------------------------------------------------
2315

Callers

nothing calls this directly

Calls 1

sizeFunction · 0.85

Tested by

no test coverage detected