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

Method set_tab_group

dlib/gui_widgets/widgets.cpp:1610–1630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1608// ----------------------------------------------------------------------------------------
1609
1610 void tabbed_display::
1611 set_tab_group (
1612 unsigned long idx,
1613 widget_group& group
1614 )
1615 {
1616 auto_mutex M(m);
1617
1618 DLIB_ASSERT ( idx < number_of_tabs() ,
1619 "\tvoid tabbed_display::set_tab_group()"
1620 << "\n\tidx: " << idx
1621 << "\n\tnumber_of_tabs(): " << number_of_tabs() );
1622
1623
1624 tabs[idx].group = &group;
1625 group.set_pos(rect.left()+3,rect.top()+mfont->height()+top_pad+bottom_pad+2);
1626 if (idx == selected_tab_)
1627 group.show();
1628 else
1629 group.hide();
1630 }
1631
1632// ----------------------------------------------------------------------------------------
1633

Callers

nothing calls this directly

Calls 6

set_posMethod · 0.45
leftMethod · 0.45
topMethod · 0.45
heightMethod · 0.45
showMethod · 0.45
hideMethod · 0.45

Tested by

no test coverage detected