1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
//! Blinc Paint/Canvas API
//!
//! A 2D drawing API for custom graphics, similar to HTML Canvas or Skia.
//! All core types are unified with blinc_core for seamless integration
//! with the GPU renderer.
//!
//! # Features
//!
//! - Path drawing (lines, curves, arcs)
//! - Shape primitives (rect, circle, rounded rect)
//! - Fills and strokes with colors, gradients
//! - Text rendering
//! - DrawContext implementation for GPU rendering
//!
//! # Example
//!
//! ```ignore
//! use blinc_paint::{PaintContext, Color, Rect};
//! use blinc_core::DrawContext;
//!
//! let mut ctx = PaintContext::new(800.0, 600.0);
//!
//! // Canvas-like API
//! ctx.fill_rect_xywh(10.0, 20.0, 100.0, 50.0, Color::BLUE);
//! ctx.translate(50.0, 50.0);
//! ctx.fill_rounded_rect_xywh(0.0, 0.0, 80.0, 40.0, 8.0, Color::RED);
//!
//! // Or use the DrawContext API directly
//! ctx.fill_rect(Rect::new(0.0, 0.0, 50.0, 25.0), 4.0.into(), Color::GREEN.into());
//!
//! // Get commands for GPU execution
//! let commands = ctx.take_commands();
//! ```
// Re-export modules
// ─────────────────────────────────────────────────────────────────────────────
// Core type re-exports from blinc_core (unified type system)
// ─────────────────────────────────────────────────────────────────────────────
pub use ;
// ─────────────────────────────────────────────────────────────────────────────
// blinc_paint specific exports
// ─────────────────────────────────────────────────────────────────────────────
pub use PaintContext;
pub use PathBuilder;
pub use ;