![]() |
Murl Engine API
Version 2018.3
|
The system-dialog interface. More...
#include <murl_i_system_dialog.h>
The system-dialog interface.
The ISystemDialog object can be created by the ISystemDialogControl object.
Inherited by Murl::Platform::Ios::SystemDialog, Murl::Platform::Osx::SystemDialog, Murl::Platform::Tvos::SystemDialog, and Murl::Platform::Win32::SystemDialog.
Public Member Functions | |
virtual const String & | GetTitle () const =0 |
Get the title string. More... | |
virtual const String & | GetMessage () const =0 |
Get the message string. More... | |
virtual UInt32 | GetNumberOfButtons () const =0 |
Get the number of buttons. More... | |
virtual const String & | GetButtonLabel (UInt32 index) const =0 |
Get a button label string by index. More... | |
virtual Bool | AddButton (const String &label)=0 |
Add a button to the dialog. More... | |
virtual Bool | Open ()=0 |
Open (show) the dialog. More... | |
virtual Bool | Close (SInt32 clickedButtonIndex)=0 |
Close (hide) the dialog. More... | |
virtual Bool | IsOpen () const =0 |
Check if the dialog is open. More... | |
virtual Bool | WasClosed () const =0 |
Check if the dialog was closed in the most recent tick. More... | |
virtual SInt32 | GetClickedButtonIndex () const =0 |
Get the clicked button index. More... | |
|
pure virtual |
Get the title string.
|
pure virtual |
Get the message string.
|
pure virtual |
Get the number of buttons.
Get a button label string by index.
A valid button index is [0 .. GetNumberOfButtons() - 1].
index | The zero-based index of the button. |
Add a button to the dialog.
Button appearance is platform dependent but it is ensured that the negative button is always button 0 on dialogs with more than 1 button. On Android the maximum number of visible dialog buttons is limited to 3.
label | The button label string. |
|
pure virtual |
Open (show) the dialog.
Close (hide) the dialog.
A valid button index is [0 .. GetNumberOfButtons() - 1].
clickedButtonIndex | The zero-based index of the clicked button. |
|
pure virtual |
Check if the dialog is open.
|
pure virtual |
Check if the dialog was closed in the most recent tick.
|
pure virtual |
Get the clicked button index.
ButtonIndex 0 is the default (selected) button, button appearance is right to left or bottom up.