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

Method list_box

dlib/gui_widgets/widgets.cpp:2252–2265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2250 namespace list_box_helper{
2251 template <typename S>
2252 list_box<S>::
2253 list_box(
2254 drawable_window& w
2255 ) :
2256 scrollable_region(w,MOUSE_WHEEL|MOUSE_CLICK),
2257 ms_enabled(false),
2258 last_selected(0)
2259 {
2260 set_vertical_scroll_increment(mfont->height());
2261 set_horizontal_scroll_increment(mfont->height());
2262
2263 style.reset(new list_box_style_default());
2264 enable_events();
2265 }
2266
2267// ----------------------------------------------------------------------------------------
2268

Callers

nothing calls this directly

Calls 2

heightMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected