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

Method HandleAdd

src/SFGUI/Bin.cpp:13–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13bool Bin::HandleAdd( Widget::Ptr child ) {
14 if( !GetChildren().empty() ) {
15#if defined( SFGUI_DEBUG )
16 std::cerr << "SFGUI warning: Only one widget can be added to a Bin.\n";
17#endif
18
19 return false;
20 }
21
22 if( !Container::HandleAdd( child ) ) {
23 return false;
24 }
25
26 return true;
27}
28
29}

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected