namespace dialog — HIRO 0.7.0 documentation

# namespace dialog

## Overview

Dialog message boxes wrapper functions. More…

    namespace dialog {

    // global functions

    void Error(const std::string& msg, const std::string& title = "Error");
    void Warning(const std::string& msg, const std::string& title = "Warning");
    void Info(const std::string& msg, const std::string& title = "Information");
    bool Confirmation(const std::string& question, const std::string& title = "Confirmation");

    } // namespace dialog

## Detailed Documentation

Dialog message boxes wrapper functions.

### Global Functions

    void Error(const std::string& msg, const std::string& title = "Error")

Shows error dialog and displays message. Program waits until user confirms.

    void Warning(const std::string& msg, const std::string& title = "Warning")

Show warning dialog and displays message. Program waits until user confirms.

    void Info(const std::string& msg, const std::string& title = "Information")

Show information dialog with specified message. Program waits until user confirms.

    bool Confirmation(const std::string& question, const std::string& title = "Confirmation")

Show dialog with YES and NO buttons and returns answer. Program waits until user selects answer.