| 872 | } |
| 873 | |
| 874 | void 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 | |
| 886 | void Widget::ReleaseModal() { |
| 887 | if( modal_widget.lock() == shared_from_this() ) { |
nothing calls this directly
no outgoing calls
no test coverage detected