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

Method unselect

dlib/gui_widgets/widgets.cpp:2336–2348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2334
2335 template <typename S>
2336 void list_box<S>::
2337 unselect (
2338 unsigned long index
2339 )
2340 {
2341 auto_mutex M(m);
2342 DLIB_ASSERT ( index < size() ,
2343 "\tvoid list_box::unselect(index)"
2344 << "\n\tindex: " << index
2345 << "\n\tsize(): " << size() );
2346 items[index].is_selected = false;
2347 parent.invalidate_rectangle(rect);
2348 }
2349
2350// ----------------------------------------------------------------------------------------
2351

Callers

nothing calls this directly

Calls 1

sizeFunction · 0.85

Tested by

no test coverage detected