Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
PenTool.h File Reference

Prototype path authoring tool. PenTool creates source-backed <path> elements and appends straight line segments from document-space clicks. More...

#include <cstddef>
#include <optional>
#include <string>
#include <vector>
#include "donner/base/Vector2.h"
#include "donner/editor/Tool.h"
#include "donner/svg/SVGPathElement.h"
Include dependency graph for PenTool.h:
This graph shows which files directly or indirectly include this file:

Classes

class  donner::editor::PenTool
 Click-to-place path authoring tool. More...
struct  donner::editor::PenTool::PreviewSegment
 Preview segment for immediate pen-tool chrome. More...
struct  donner::editor::PenTool::PreviewHandleLine
 Preview line connecting an anchor to one of its control handles. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Detailed Description

Prototype path authoring tool. PenTool creates source-backed <path> elements and appends straight line segments from document-space clicks.


Class Documentation

◆ donner::editor::PenTool::PreviewSegment

struct donner::editor::PenTool::PreviewSegment

Preview segment for immediate pen-tool chrome.

Collaboration diagram for donner::editor::PenTool::PreviewSegment:
[legend]
Class Members
Vector2d control1 = Vector2d::Zero()
Vector2d control2 = Vector2d::Zero()
bool cubic = false
Vector2d end = Vector2d::Zero()
Vector2d start = Vector2d::Zero()

◆ donner::editor::PenTool::PreviewHandleLine

struct donner::editor::PenTool::PreviewHandleLine

Preview line connecting an anchor to one of its control handles.

Collaboration diagram for donner::editor::PenTool::PreviewHandleLine:
[legend]
Class Members
Vector2d end = Vector2d::Zero()
Vector2d start = Vector2d::Zero()