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

Method HandleAdd

src/SFGUI/Button.cpp:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107bool Button::HandleAdd( Widget::Ptr child ) {
108 if( child && child->GetName() != "Image" ) {
109#if defined( SFGUI_DEBUG )
110 std::cerr << "SFGUI warning: Only an Image can be added to a Button.\n";
111#endif
112
113 return false;
114 }
115
116 return Bin::HandleAdd( child );
117}
118
119void Button::HandleSizeChange() {
120 AllocateChild();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected