Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
canvas_widget.hpp File Reference

A View that replays recorded draw commands in paint(). More...

#include <pulp/view/view.hpp>
#include <pulp/canvas/canvas.hpp>
#include <algorithm>
#include <cmath>
#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <unordered_map>
#include <vector>

Go to the source code of this file.

Classes

struct  pulp::view::NativeCanvasPaintContext
 Per-paint metadata for native, retained CanvasWidget content. More...
class  pulp::view::NativeCanvasPainter
 Retained native painter installed on a CanvasWidget. More...
struct  pulp::view::CanvasDrawCmd
 A draw command recorded from JS for replay in paint(). More...
class  pulp::view::CanvasWidget
 A View whose paint() replays a list of recorded draw commands. More...
struct  pulp::view::CanvasWidget::NativeGpuTextureFrame

Namespaces

namespace  pulp
namespace  pulp::view
 Hover-cursor tracking for platform window hosts.

Enumerations

enum class  pulp::view::NativeCanvasBackendRequirement { pulp::view::any , pulp::view::skia_dawn_allow_recording , pulp::view::skia_dawn }

Detailed Description

A View that replays recorded draw commands in paint().

Full Canvas 2D API equivalent — JS records commands, C++ replays through the active Canvas backend.