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

Method tabbed_display

dlib/gui_widgets/widgets.cpp:1340–1355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1338// ----------------------------------------------------------------------------------------
1339
1340 tabbed_display::
1341 tabbed_display(
1342 drawable_window& w
1343 ) :
1344 drawable(w,MOUSE_CLICK),
1345 selected_tab_(0),
1346 left_pad(6),
1347 right_pad(4),
1348 top_pad(3),
1349 bottom_pad(3)
1350 {
1351 rect = rectangle(0,0,40,mfont->height()+top_pad+bottom_pad);
1352 enable_events();
1353 tabs.set_max_size(1);
1354 tabs.set_size(1);
1355 }
1356
1357// ----------------------------------------------------------------------------------------
1358

Callers

nothing calls this directly

Calls 4

set_max_sizeMethod · 0.80
rectangleClass · 0.50
heightMethod · 0.45
set_sizeMethod · 0.45

Tested by

no test coverage detected