FlowArithmeticCalculator 1.0.0
Flow Arithmetic Calculator
Loading...
Searching...
No Matches
UIRendererDelegate.h
Go to the documentation of this file.
1#ifndef GUI_RENDERER_DELEGATE_UI_RENDERER_DELEGATE_H
2#define GUI_RENDERER_DELEGATE_UI_RENDERER_DELEGATE_H
3
4#include <string>
5#include <vector>
6
9
15 // using an empty namespace to avoid polluting the outer scope of business_logic
16 namespace {
18 } // namespace
19
25 template <typename Canvas>
26 class
27 UIRendererDelegate { // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
28 public:
29 virtual ~UIRendererDelegate() = default;
30
38 virtual void renderCenteredTextsRows(Canvas* canvas,
40 const std::vector<components::UITextsRow>& rows) = 0;
41 };
42} // namespace gui::renderer::delegate
43
44#endif // GUI_RENDERER_DELEGATE_UI_RENDERER_DELEGATE_H
The delegate for the UI renderer.
virtual void renderCenteredTextsRows(Canvas *canvas, const business_logic::geometry::Size2D &size, const std::vector< components::UITextsRow > &rows)=0
Renders the texts on the canvas around the center horizontally, centered vertically.
UI primitives and components to be rendered as part of the UI.
Definition UIText.cpp:3
Renderer delegates for re-use by other components to be able to anonymously invoke functionalities of...
A basic struct representing a 2D size.
Definition Size2D.h:8