JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
juce::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()

@tags{GUI}

Definition at line 36 of file juce_ScopedMessageBox.h.

Constructor & Destructor Documentation

◆ ScopedMessageBox() [1/2]

juce::ScopedMessageBox::ScopedMessageBox ( std::shared_ptr< detail::ScopedMessageBoxImpl i)
explicit

Definition at line 32 of file juce_ScopedMessageBox.cpp.

◆ ~ScopedMessageBox()

juce::ScopedMessageBox::~ScopedMessageBox ( )
noexcept

Destructor.

Definition at line 35 of file juce_ScopedMessageBox.cpp.

◆ ScopedMessageBox() [2/2]

juce::ScopedMessageBox::ScopedMessageBox ( ScopedMessageBox &&  other)
noexcept

Move constructor.

Definition at line 40 of file juce_ScopedMessageBox.cpp.

Member Function Documentation

◆ close()

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.

Definition at line 50 of file juce_ScopedMessageBox.cpp.

◆ operator=()

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

Move assignment operator.

Definition at line 43 of file juce_ScopedMessageBox.cpp.


The documentation for this class was generated from the following files: