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

Method HandleAdd

src/SFGUI/Viewport.cpp:216–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216bool Viewport::HandleAdd( Widget::Ptr child ) {
217 if( !GetChildren().empty() ) {
218#if defined( SFGUI_DEBUG )
219 std::cerr << "SFGUI warning: Only one widget can be added to a Bin.\n";
220#endif
221
222 return false;
223 }
224
225 Container::HandleAdd( child );
226
227 child->SetViewport( m_children_viewport );
228
229 return true;
230}
231
232void Viewport::HandleViewportUpdate() {
233 Widget::Ptr child( GetChild() );

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.80
SetViewportMethod · 0.45

Tested by

no test coverage detected