| 214 | } |
| 215 | |
| 216 | bool 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 | |
| 232 | void Viewport::HandleViewportUpdate() { |
| 233 | Widget::Ptr child( GetChild() ); |
nothing calls this directly
no test coverage detected