8#if (defined(_MSVC_LANG) ? _MSVC_LANG : __cplusplus) < 201703L
10 "OpenPine C++ wrapper headers require C++17 (std::optional, std::string_view)."
33 Hline(
const ffi::Hline* p) : p_(p) {}
38 double value()
const {
return ffi::hlineValue(p_); }
43 std::optional<uint32_t>
color()
const {
45 if (ffi::hlineColor(p_, &v)) {
55 std::optional<std::string_view>
title()
const {
56 ffi::PineStringRef ref;
57 if (ffi::hlineTitle(p_, &ref)) {
67 HlineStyle
lineStyle()
const {
return ffi::hlineLineStyle(p_); }
72 int32_t
lineWidth()
const {
return ffi::hlineLineWidth(p_); }
77 bool editable()
const {
return ffi::hlineEditable(p_); }
A type-safe display bitmask.
double value() const
Gets the Y-axis value of the horizontal line.
Hline(const ffi::Hline *p)
bool editable() const
Gets whether the line is user-editable.
std::optional< std::string_view > title() const
Gets the optional title/label.
std::optional< uint32_t > color() const
Gets the optional line color.
Display display() const
Gets the display mask for the hline.
int32_t lineWidth() const
Gets the stroke width.
HlineStyle lineStyle() const
Gets the stroke style.
Type-safe wrappers for display bitmasks used by visuals.
std::string_view refToView(const ffi::PineStringRef &ref)
Shared helpers for converting C ABI string refs to std::string_view.
Re-exports FFI types into the openpine namespace.