8#if (defined(_MSVC_LANG) ? _MSVC_LANG : __cplusplus) < 201703L
10 "OpenPine C++ wrapper headers require C++17 (std::optional, std::string_view)."
30 Line(
const ffi::Line* p) : p_(p) {}
35 int64_t
x1()
const {
return ffi::lineX1(p_); }
40 double y1()
const {
return ffi::lineY1(p_); }
45 int64_t
x2()
const {
return ffi::lineX2(p_); }
50 double y2()
const {
return ffi::lineY2(p_); }
55 XLocation
xloc()
const {
return ffi::lineXloc(p_); }
60 Extend
extend()
const {
return ffi::lineExtend(p_); }
65 std::optional<uint32_t>
color()
const {
67 if (ffi::lineColor(p_, &v)) {
77 LineStyle
style()
const {
return ffi::lineStyle(p_); }
82 int32_t
width()
const {
return ffi::lineWidth(p_); }
Extend extend() const
Gets the extend mode.
LineStyle style() const
Gets the stroke style.
XLocation xloc() const
Gets the X-axis coordinate system used by x1()/x2().
double y1() const
Gets the first Y coordinate.
int32_t width() const
Gets the stroke width.
int64_t x1() const
Gets the first X coordinate.
std::optional< uint32_t > color() const
Gets the optional stroke color.
bool forceOverlay() const
Gets whether the line is forced to render as overlay.
double y2() const
Gets the second Y coordinate.
int64_t x2() const
Gets the second X coordinate.
Re-exports FFI types into the openpine namespace.