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

Method ReleaseModal

src/SFGUI/Widget.cpp:886–896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884}
885
886void Widget::ReleaseModal() {
887 if( modal_widget.lock() == shared_from_this() ) {
888 modal_widget.reset();
889
890 return;
891 }
892
893#if defined( SFGUI_DEBUG )
894 std::cerr << "SFGUI warning: Tried to release modal although current widget not modal.\n";
895#endif
896}
897
898bool Widget::IsModal() const {
899 if( modal_widget.lock() == shared_from_this() ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected