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

Method GrabModal

src/SFGUI/Widget.cpp:874–884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872}
873
874void Widget::GrabModal() {
875 if( modal_widget.lock() ) {
876#if defined( SFGUI_DEBUG )
877 std::cerr << "SFGUI warning: Tried to grab modal while existing widget has it.\n";
878#endif
879
880 return;
881 }
882
883 modal_widget = shared_from_this();
884}
885
886void Widget::ReleaseModal() {
887 if( modal_widget.lock() == shared_from_this() ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected