1#ifndef BLOCKS_MANAGER_RENDERER_H
2#define BLOCKS_MANAGER_RENDERER_H
4#include <skia/include/core/SkCanvas.h>
5#include <skia/include/core/SkPaint.h>
35 void render(SkCanvas* canvas,
Manages the blocks in the GUI, both their rendering and interaction.
business_logic::delegate::IWindowDelegate * windowDelegate
BlocksManager(business_logic::delegate::IWindowDelegate *windowDelegate)
The delegate for the window.
Class that extends business_logic::BlocksManager and adds rendering logic.
void maybeRenderDraggedLine(SkCanvas *canvas)
Renders the dragged line on the canvas.
static SkPaint connectorPaint
SkiaBlocksManagerRenderer(business_logic::delegate::IWindowDelegate *windowDelegate)
void render(SkCanvas *canvas, const business_logic::geometry::Size2D &size, gui::renderer::delegate::UIRendererDelegate< SkCanvas > *&uiRendererDelegate)
Renders the blocks on the canvas.
static SkPaint cycleConnectorPaint
The delegate for the UI renderer.
UI primitives and components to be rendered as part of the UI.
The business logic module.
The GUI counterpart carrying implementations integrating with business_logic::elements.
Color constants used for rendering entities.
A basic struct representing a 2D size.