#include <scene_path.hpp>
|
| | ScenePath () |
| bool | fill_enabled () const |
| | Whether this path should be filled (default true).
|
| void | set_fill_enabled (bool v) |
| bool | stroke_enabled () const |
| | Whether this path should be stroked (default false).
|
| void | set_stroke_enabled (bool v) |
| Color | fill_color () const |
| void | set_fill_color (Color c) |
| Color | stroke_color () const |
| void | set_stroke_color (Color c) |
| float | stroke_width () const |
| void | set_stroke_width (float w) |
| FillRule | fill_rule () const |
| void | set_fill_rule (FillRule r) |
| void | clear () |
| void | move_to (float x, float y) |
| void | line_to (float x, float y) |
| void | quad_to (float cpx, float cpy, float x, float y) |
| void | cubic_to (float cp1x, float cp1y, float cp2x, float cp2y, float x, float y) |
| void | close_path () |
| const Path & | path () const |
| | The node's geometry, as a value. Copying it out is O(1) (see Path).
|
| void | set_path (Path p) |
| | Replace the geometry wholesale — the drop-in for callers that built a Path elsewhere (an SVG parse, a shape helper, a transformed copy).
|
| SceneRect | local_bounds () const override |
| | Local-coordinate bounding box (pre-transform, pre-opacity).
|
| void | paint_geometry (Canvas &canvas) const override |
| | Paint this node (and its sub-tree) into canvas.
|
| SceneNodeKind | kind () const |
| const std::string & | id () const |
| void | set_id (std::string v) |
| bool | visible () const |
| void | set_visible (bool v) |
| float | opacity () const |
| void | set_opacity (float a) |
| const SceneTransform & | transform () const |
| void | set_transform (const SceneTransform &t) |
| SceneGroup * | parent () const |
| SceneRect | transformed_local_bounds () const |
| | Bounds after the node's own transform — used for parent group unions.
|
| bool | dirty () const |
| void | mark_dirty () |
| | Mark this node and (recursively) every ancestor dirty.
|
| void | mark_clean (const SceneRect &painted_scene_bounds) |
| | Called by the scene walker after a full paint.
|
| const SceneRect & | last_painted_bounds () const |
| | The scene-space rect this node occupied at the last paint.
|
◆ ScenePath()
| pulp::canvas::ScenePath::ScenePath |
( |
| ) |
|
|
inline |
◆ clear()
| void pulp::canvas::ScenePath::clear |
( |
| ) |
|
|
inline |
◆ close_path()
| void pulp::canvas::ScenePath::close_path |
( |
| ) |
|
|
inline |
◆ cubic_to()
| void pulp::canvas::ScenePath::cubic_to |
( |
float | cp1x, |
|
|
float | cp1y, |
|
|
float | cp2x, |
|
|
float | cp2y, |
|
|
float | x, |
|
|
float | y ) |
|
inline |
◆ dirty()
| bool pulp::canvas::SceneNode::dirty |
( |
| ) |
const |
|
inlineinherited |
◆ fill_color()
| Color pulp::canvas::ScenePath::fill_color |
( |
| ) |
const |
|
inline |
◆ fill_enabled()
| bool pulp::canvas::ScenePath::fill_enabled |
( |
| ) |
const |
|
inline |
Whether this path should be filled (default true).
◆ fill_rule()
| FillRule pulp::canvas::ScenePath::fill_rule |
( |
| ) |
const |
|
inline |
◆ id()
| const std::string & pulp::canvas::SceneNode::id |
( |
| ) |
const |
|
inlineinherited |
◆ kind()
◆ last_painted_bounds()
| const SceneRect & pulp::canvas::SceneNode::last_painted_bounds |
( |
| ) |
const |
|
inlineinherited |
The scene-space rect this node occupied at the last paint.
Always united with the post-mutation bounds to derive the "what needs repainting" rect — this is the whole point of the retained scene graph: small mutations → small repaint rects.
◆ line_to()
| void pulp::canvas::ScenePath::line_to |
( |
float | x, |
|
|
float | y ) |
|
inline |
◆ local_bounds()
| SceneRect pulp::canvas::ScenePath::local_bounds |
( |
| ) |
const |
|
overridevirtual |
Local-coordinate bounding box (pre-transform, pre-opacity).
Subclasses MUST compute this from current geometry.
Implements pulp::canvas::SceneNode.
◆ mark_clean()
| void pulp::canvas::SceneNode::mark_clean |
( |
const SceneRect & | painted_scene_bounds | ) |
|
|
inlineinherited |
Called by the scene walker after a full paint.
Captures the bounding box that was painted (in scene coordinates) so the next mutation knows what to invalidate.
◆ mark_dirty()
| void pulp::canvas::SceneNode::mark_dirty |
( |
| ) |
|
|
inherited |
◆ move_to()
| void pulp::canvas::ScenePath::move_to |
( |
float | x, |
|
|
float | y ) |
|
inline |
◆ opacity()
| float pulp::canvas::SceneNode::opacity |
( |
| ) |
const |
|
inlineinherited |
◆ paint_geometry()
| void pulp::canvas::ScenePath::paint_geometry |
( |
Canvas & | canvas | ) |
const |
|
overridevirtual |
Paint this node (and its sub-tree) into canvas.
The walker calls save() / restore() around this call, applies the composed CTM, and pushes opacity if opacity_ < 1.0. Implementations therefore emit geometry/state only — they MUST NOT touch save/restore.
Implements pulp::canvas::SceneNode.
◆ parent()
| SceneGroup * pulp::canvas::SceneNode::parent |
( |
| ) |
const |
|
inlineinherited |
◆ path()
| const Path & pulp::canvas::ScenePath::path |
( |
| ) |
const |
|
inline |
The node's geometry, as a value. Copying it out is O(1) (see Path).
◆ quad_to()
| void pulp::canvas::ScenePath::quad_to |
( |
float | cpx, |
|
|
float | cpy, |
|
|
float | x, |
|
|
float | y ) |
|
inline |
◆ set_fill_color()
| void pulp::canvas::ScenePath::set_fill_color |
( |
Color | c | ) |
|
|
inline |
◆ set_fill_enabled()
| void pulp::canvas::ScenePath::set_fill_enabled |
( |
bool | v | ) |
|
|
inline |
◆ set_fill_rule()
| void pulp::canvas::ScenePath::set_fill_rule |
( |
FillRule | r | ) |
|
|
inline |
◆ set_id()
| void pulp::canvas::SceneNode::set_id |
( |
std::string | v | ) |
|
|
inlineinherited |
◆ set_opacity()
| void pulp::canvas::SceneNode::set_opacity |
( |
float | a | ) |
|
|
inlineinherited |
◆ set_path()
| void pulp::canvas::ScenePath::set_path |
( |
Path | p | ) |
|
|
inline |
Replace the geometry wholesale — the drop-in for callers that built a Path elsewhere (an SVG parse, a shape helper, a transformed copy).
◆ set_stroke_color()
| void pulp::canvas::ScenePath::set_stroke_color |
( |
Color | c | ) |
|
|
inline |
◆ set_stroke_enabled()
| void pulp::canvas::ScenePath::set_stroke_enabled |
( |
bool | v | ) |
|
|
inline |
◆ set_stroke_width()
| void pulp::canvas::ScenePath::set_stroke_width |
( |
float | w | ) |
|
|
inline |
◆ set_transform()
| void pulp::canvas::SceneNode::set_transform |
( |
const SceneTransform & | t | ) |
|
|
inlineinherited |
◆ set_visible()
| void pulp::canvas::SceneNode::set_visible |
( |
bool | v | ) |
|
|
inlineinherited |
◆ stroke_color()
| Color pulp::canvas::ScenePath::stroke_color |
( |
| ) |
const |
|
inline |
◆ stroke_enabled()
| bool pulp::canvas::ScenePath::stroke_enabled |
( |
| ) |
const |
|
inline |
Whether this path should be stroked (default false).
◆ stroke_width()
| float pulp::canvas::ScenePath::stroke_width |
( |
| ) |
const |
|
inline |
◆ transform()
◆ transformed_local_bounds()
| SceneRect pulp::canvas::SceneNode::transformed_local_bounds |
( |
| ) |
const |
|
inlineinherited |
Bounds after the node's own transform — used for parent group unions.
◆ visible()
| bool pulp::canvas::SceneNode::visible |
( |
| ) |
const |
|
inlineinherited |
The documentation for this class was generated from the following file:
- /home/runner/work/pulp/pulp/core/canvas/include/pulp/canvas/scene/scene_path.hpp