SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MessageDialog::IConfirmDialogListener Class Reference

Listener interface to get notified of whether the user chose to confirm or cancel. More...

#include <message_dialog.hpp>

Inheritance diagram for MessageDialog::IConfirmDialogListener:
Inheritance graph
[legend]

Public Member Functions

virtual void onConfirm ()
 Implement to be notified of dialog confirmed.
 
virtual void onCancel ()
 Implement to be notified of dialog cancelled.
 
virtual void onDialogUpdate (float dt)
 Optional callback.
 

Detailed Description

Listener interface to get notified of whether the user chose to confirm or cancel.

Member Function Documentation

◆ onCancel()

virtual void MessageDialog::IConfirmDialogListener::onCancel ( )
inlinevirtual

Implement to be notified of dialog cancelled.

Note
The default implementation is to close the modal dialog, but you may override this method to change the behavior.

Reimplemented in EditGPScreen.

◆ onConfirm()

virtual void MessageDialog::IConfirmDialogListener::onConfirm ( )
inlinevirtual

Implement to be notified of dialog confirmed.

Note
The dialog is not closed automatically, close it in the callback if this behavior is desired.

Reimplemented in EditGPScreen, GhostReplaySelection, GrandPrixEditorScreen, HighScoreSelection, OptionsScreenDevice, and RaceResultGUI.


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