Loading...
Searching...
No Matches
ScopedMessageBox Class Reference

Objects of this type can be used to programmatically close message boxes. More...

#include <juce_ScopedMessageBox.h>

Public Member Functions

 ScopedMessageBox (std::shared_ptr< detail::ScopedMessageBoxImpl >)
 
 ScopedMessageBox ()
 Constructor.
 
 ~ScopedMessageBox () noexcept
 Destructor.
 
 ScopedMessageBox (ScopedMessageBox &&) noexcept
 Move constructor.
 
ScopedMessageBoxoperator= (ScopedMessageBox &&) noexcept
 Move assignment operator.
 
void close ()
 Closes the message box, if it is currently showing.
 

Detailed Description

Objects of this type can be used to programmatically close message boxes.

See also
NativeMessageBox::showScopedAsync(), AlertWindow::showScopedAsync()

Constructor & Destructor Documentation

◆ ScopedMessageBox() [1/3]

ScopedMessageBox::ScopedMessageBox ( std::shared_ptr< detail::ScopedMessageBoxImpl > )
explicit

◆ ScopedMessageBox() [2/3]

ScopedMessageBox::ScopedMessageBox ( )

Constructor.

◆ ~ScopedMessageBox()

ScopedMessageBox::~ScopedMessageBox ( )
noexcept

Destructor.

◆ ScopedMessageBox() [3/3]

ScopedMessageBox::ScopedMessageBox ( ScopedMessageBox && )
noexcept

Move constructor.

Member Function Documentation

◆ operator=()

ScopedMessageBox & ScopedMessageBox::operator= ( ScopedMessageBox && )
noexcept

Move assignment operator.

◆ close()

void 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.


The documentation for this class was generated from the following file:
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram