ConfirmModalStrategy
#include "GUI/Elements/Modals/ConfirmModal.h"
Inherited by BeforeExitSceneStrategy
Public Functions
Name | |
---|---|
ConfirmModalStrategy(std::string title, std::string message, std::string yesText ="Yes", std::string noText ="No") | |
virtual void | beforeOpen() |
virtual void | onNo() |
virtual void | onYes() |
Protected Attributes
Name | |
---|---|
class ConfirmModal * | m_modal <br>Non-owning pointer to the modal window set by ConfirmModal to point to itself. |
Friends
Name | |
---|---|
class | ConfirmModal |
Public Functions Documentation
function ConfirmModalStrategy
cpp
inline ConfirmModalStrategy(
std::string title,
std::string message,
std::string yesText ="Yes",
std::string noText ="No"
)
inline ConfirmModalStrategy(
std::string title,
std::string message,
std::string yesText ="Yes",
std::string noText ="No"
)
function beforeOpen
cpp
inline virtual void beforeOpen()
inline virtual void beforeOpen()
Reimplemented by: BeforeExitSceneStrategy::beforeOpen
function onNo
cpp
inline virtual void onNo()
inline virtual void onNo()
Reimplemented by: BeforeExitSceneStrategy::onNo
function onYes
cpp
inline virtual void onYes()
inline virtual void onYes()
Reimplemented by: BeforeExitSceneStrategy::onYes
Protected Attributes Documentation
variable m_modal
cpp
class ConfirmModal * m_modal = nullptr;
class ConfirmModal * m_modal = nullptr;
Non-owning pointer to the modal window set by ConfirmModal to point to itself.
Friends
friend ConfirmModal
cpp
friend class ConfirmModal(
ConfirmModal
);
friend class ConfirmModal(
ConfirmModal
);
Updated on 2025-01-07 at 13:40:43 +0000