1#ifndef BUSINESS_LOGIC_WINDOW_DELEGATE_I_WINDOW_DELEGATE_H
2#define BUSINESS_LOGIC_WINDOW_DELEGATE_I_WINDOW_DELEGATE_H
48 virtual void showWarning(
const std::string& title,
const std::string& message) = 0;
58 const std::string& title,
59 const std::string& message,
60 const std::optional<FloatingPoint>& defaultValue) = 0;
The delegate for the window.
virtual bool promptConfirmation(const std::string &title, const std::string &message)=0
Prompt for user confirmation.
virtual ~IWindowDelegate()=default
virtual void focusWindow()=0
Focus the window.
virtual void showWarning(const std::string &title, const std::string &message)=0
Show a warning message.
virtual geometry::Size2D getWindowSize()=0
Get the window size.
virtual std::optional< FloatingPoint > promptFloatingPointInput(const std::string &title, const std::string &message, const std::optional< FloatingPoint > &defaultValue)=0
Prompt for a floating point input.
virtual geometry::Size2D getFramebufferSize()=0
Get the framebuffer size.
Delegates exposed by the business_logic module, used for integrating with a GUI / renderer implementa...
A basic struct representing a 2D size.