Class · aurore
aurore::Dialog
On this page
#include <aurore/views/dialog.hpp>
class aurore::Dialog : public aurore::BoxConstructors 3
Functions 12
virtual AppletFrame * getAppletFrame() override void addButton(std::string label, VoidEvent::Callback cb) Adds a button to this dialog, with a maximum of three The position depends on the add order
Adding a button after the dialog has been opened is NOT SUPPORTED
dialog.hpp:87A cancelable dialog is closed when the user presses B (defaults to true)
A dialog without any buttons cannot be cancelable
dialog.hpp:96The text of a dialog made with Dialog(text), changed while it is open (a progress, a countdown). Nothing for a dialog with its own view.
dialog.hpp:103Relabels the button at index (0 to 2, in the order they were added).
When false, a button runs its callback and leaves the dialog open (it closes it with close() when it is done): a dialog that shows progress, a button that retries. True by default.
dialog.hpp:116Is this view translucent?
If you override it please return
|| View::isTranslucent() to keep the fadeIn transition
Overrides aurore::View::isTranslucent
Also the functions of aurore::Box (53), aurore::View (221).
Protected functions 7
virtual AccessibilityRole getDefaultAccessibilityRole() override The view's own role and label when the app gave none.
Overrides aurore::View::getDefaultAccessibilityRole
A focusable box says the texts shown in it (getAccessibilityText).
Overrides aurore::Box::getDefaultAccessibilityLabel
Read from Aurore's headers by Doxygen at each build · library/include