|
FlowArithmeticCalculator 1.0.0
Flow Arithmetic Calculator
|
The delegate for the window. More...
#include <IWindowDelegate.h>
Inheritance diagram for business_logic::delegate::IWindowDelegate:
Collaboration diagram for business_logic::delegate::IWindowDelegate:Public Member Functions | |
| virtual | ~IWindowDelegate ()=default |
| virtual geometry::Size2D | getWindowSize ()=0 |
| Get the window size. | |
| virtual geometry::Size2D | getFramebufferSize ()=0 |
| Get the framebuffer size. | |
| virtual void | focusWindow ()=0 |
| Focus the window. | |
| virtual void | showWarning (const std::string &title, const std::string &message)=0 |
| Show a warning message. | |
| 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 bool | promptConfirmation (const std::string &title, const std::string &message)=0 |
| Prompt for user confirmation. | |
The delegate for the window.
The delegate is used for basic window operations.
Definition at line 19 of file IWindowDelegate.h.
|
virtualdefault |
|
pure virtual |
Focus the window.
Helpful e.g. when closing a Qt dialog.
Implemented in gui::window::GLFWQtWindowImpl< RendererImpl, Canvas >.
Referenced by gui::window::prompt::GuiMessageBox::promptConfirmation(), gui::window::prompt::TextInputDialog::promptForTextInput(), and gui::window::prompt::GuiMessageBox::showWarning().
Here is the caller graph for this function:
|
pure virtual |
Get the framebuffer size.
Implemented in gui::window::WindowBase< Canvas >, and gui::window::WindowBase< SkCanvas >.
|
pure virtual |
Get the window size.
Implemented in gui::window::WindowBase< Canvas >, and gui::window::WindowBase< SkCanvas >.
Referenced by business_logic::elements::blocks::BaseBlock::cacheCornerCoordinates().
Here is the caller graph for this function:
|
pure virtual |
Prompt for user confirmation.
| title | The title of the dialog |
| message | The message to show |
Implemented in gui::window::GLFWQtWindowImpl< RendererImpl, Canvas >.
Referenced by business_logic::BlocksManager::handleRightClickOnBlock().
Here is the caller graph for this function:
|
pure virtual |
Prompt for a floating point input.
| title | The title of the input |
| message | The message to show |
| defaultValue | The default value to use for the input |
std::nullopt if the user cancels the input Implemented in gui::window::GLFWQtWindowImpl< RendererImpl, Canvas >.
Referenced by business_logic::elements::blocks::ConstantBlock::onDoubleClick().
Here is the caller graph for this function:
|
pure virtual |
Show a warning message.
| title | The title of the warning |
| message | The message to show |
Implemented in gui::window::GLFWQtWindowImpl< RendererImpl, Canvas >.
Referenced by business_logic::BlocksManager::handleNumericKeyPress(), business_logic::input::ConnectPortsInteraction::handleUserInteractedWith(), business_logic::elements::blocks::ConstantBlock::onDoubleClick(), and business_logic::BlocksManager::onNewBlockChoice().
Here is the caller graph for this function: