|
FifeGUI 0.3.0
A C++ GUI library designed for games.
|
#include <focushandler.hpp>
Public Member Functions | |
| ModalScope (FocusHandler *handler, Widget *focusOwner, Widget *mouseOwner=nullptr) | |
| ModalScope (ModalScope &&)=delete | |
| ModalScope (ModalScope const &)=delete | |
| ModalScope & | operator= (ModalScope &&)=delete |
| ModalScope & | operator= (ModalScope const &)=delete |
| void | release () |
Modal scope management (RAII guard).
Automatically pops the modal when destroyed, unless release() is called.
Definition at line 111 of file focushandler.hpp.
|
inline |
RAII helper that pushes a modal state on construction and pops it on destruction unless release() is called.
| handler | The focus handler managing modal states. |
| focusOwner | Widget that will receive modal focus. |
| mouseOwner | Optional widget for modal mouse input focus. |
Definition at line 122 of file focushandler.hpp.
|
inlinenoexcept |
Definition at line 130 of file focushandler.hpp.
|
inline |
Release ownership so the modal is not popped during destruction.
After calling release() the ModalScope destructor will not call popModal().
Definition at line 158 of file focushandler.hpp.