Objects of this type can be used to programmatically close message boxes.
Public Member Functions | |
| ScopedMessageBox (std::shared_ptr< detail::ScopedMessageBoxImpl >) | |
| ScopedMessageBox () | |
| Constructor. | |
| ~ScopedMessageBox () noexcept | |
| Destructor. | |
| ScopedMessageBox (ScopedMessageBox &&) noexcept | |
| Move constructor. | |
| ScopedMessageBox & | operator= (ScopedMessageBox &&) noexcept |
| Move assignment operator. | |
| void | close () |
| Closes the message box, if it is currently showing. | |
|
explicit |
Referenced by close(), operator=(), and ScopedMessageBox().
| juce::ScopedMessageBox::ScopedMessageBox | ( | ) |
Constructor.
|
noexcept |
Destructor.
|
noexcept |
Move constructor.
References ScopedMessageBox().
|
noexcept |
Move assignment operator.
References ScopedMessageBox().
| void juce::ScopedMessageBox::close | ( | ) |
Closes the message box, if it is currently showing.
This is also called automatically during ~ScopedMessageBox. This is useful if you want to display a message corresponding to a particular view, and hide the message automatically when the view is hidden. This situation commonly arises when displaying messages in plugin editors.
References close(), JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR, and ScopedMessageBox().
Referenced by close().