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

Method PackStart

src/SFGUI/Box.cpp:36–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void Box::PackStart( Widget::Ptr widget, bool expand, bool fill ) {
37 if( IsChild( widget ) ) {
38 return;
39 }
40
41 // It's important to create the ChildInfo object first, so that the
42 // HandleAdd() method recognized the widget as a correctly packed one.
43 m_box_children.push_front( ChildInfo( widget, expand, fill ) );
44 Add( widget );
45}
46
47void Box::Pack( Widget::Ptr widget, bool expand, bool fill ) {
48 PackEnd( widget, expand, fill );

Callers

nothing calls this directly

Calls 1

ChildInfoClass · 0.85

Tested by

no test coverage detected