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

Method GetChild

src/SFGUI/Bin.cpp:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3namespace sfg {
4
5Widget::Ptr Bin::GetChild() const {
6 if( GetChildren().empty() ) {
7 return Widget::Ptr();
8 }
9
10 return *GetChildren().begin();
11}
12
13bool Bin::HandleAdd( Widget::Ptr child ) {
14 if( !GetChildren().empty() ) {

Callers 3

RemoveMethod · 0.80
CreateButtonDrawableMethod · 0.80

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected