8#if (defined(_MSVC_LANG) ? _MSVC_LANG : __cplusplus) < 201703L
9#error "OpenPine C++ wrapper headers require C++17."
28 explicit InputTime(
const ffi::InputTime& data) : data_(data) {}
30 int64_t
id()
const {
return data_.id; }
34 std::optional<std::string_view>
title()
const {
38 std::optional<std::string_view>
tooltip()
const {
46 std::optional<std::string_view>
group()
const {
50 uint64_t
display()
const {
return data_.display; }
52 bool active()
const {
return data_.active; }
54 bool confirm()
const {
return data_.confirm; }
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.
Shared helpers for converting C ABI string refs to std::string_view.
Re-exports FFI types into the openpine namespace.