8#if (defined(_MSVC_LANG) ? _MSVC_LANG : __cplusplus) < 201703L
9#error "OpenPine C++ wrapper headers require C++17."
30 int64_t
id()
const {
return data_.id; }
36 std::optional<std::string_view>
title()
const {
40 std::optional<std::string_view>
tooltip()
const {
44 std::optional<std::string_view>
group()
const {
48 uint64_t
display()
const {
return data_.display; }
50 bool active()
const {
return data_.active; }
52 bool confirm()
const {
return data_.confirm; }
55 ffi::InputTextArea data_;
int64_t id() const
Input ID.
bool active() const
Whether the input is active.
InputTextArea(const ffi::InputTextArea &data)
Constructs from FFI data.
uint64_t display() const
Display bitmask.
std::optional< std::string_view > group() const
Optional group name.
std::optional< std::string_view > title() const
Optional title.
bool confirm() const
Whether the input requires confirmation.
std::string_view defaultValue() const
Default text.
std::optional< std::string_view > tooltip() const
Optional tooltip.
std::optional< std::string_view > optRefToView(bool has_field, const ffi::PineStringRef &ref)
Returns optional string_view when has_field is true, otherwise std::nullopt.
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.