MCPcopy Create free account
hub / github.com/TankOs/SFGUI / PackEnd

Method PackEnd

src/SFGUI/Box.cpp:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void Box::PackEnd( Widget::Ptr widget, bool expand, bool fill ) {
26 if( IsChild( widget ) ) {
27 return;
28 }
29
30 // It's important to create the ChildInfo object first, so that the
31 // HandleAdd() method recognized the widget as a correctly packed one.
32 m_box_children.push_back( ChildInfo( widget, expand, fill ) );
33 Add( widget );
34}
35
36void Box::PackStart( Widget::Ptr widget, bool expand, bool fill ) {
37 if( IsChild( widget ) ) {

Callers

nothing calls this directly

Calls 1

ChildInfoClass · 0.85

Tested by

no test coverage detected