MCPcopy Create free account
hub / github.com/TankOs/SFGUI / ~Widget

Method ~Widget

src/SFGUI/Widget.cpp:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67Widget::~Widget() {
68 if( !m_parent.lock() ) {
69 // If this widget is an orphan, we assume it is
70 // a root widget and try to de-register it.
71 std::vector<Widget*>::iterator iter( std::find( root_widgets.begin(), root_widgets.end(), this ) );
72
73 if( iter != root_widgets.end() ) {
74 root_widgets.erase( iter );
75 }
76 }
77}
78
79bool Widget::IsLocallyVisible() const {
80 return m_visible;

Callers

nothing calls this directly

Calls 1

endMethod · 0.80

Tested by

no test coverage detected