|
OpenPine C++ API
C++ wrapper for the OpenPine Pine Script VM
|
Wrapper for an integer script input. More...
#include <input_int.hpp>
Public Member Functions | |
| InputInt (const ffi::InputInt &data, const ffi::Input *input=nullptr) | |
| Constructs from FFI data and optional handle for optionAt(). | |
| int64_t | id () const |
| Input ID. | |
| int64_t | defaultValue () const |
| Default value. | |
| std::optional< std::string_view > | title () const |
| Optional title. | |
| std::optional< std::string_view > | tooltip () const |
| Optional tooltip. | |
| std::optional< std::string_view > | inlineGroup () const |
| Optional inline group name. | |
| std::optional< std::string_view > | group () const |
| Optional group name. | |
| uint64_t | display () const |
| Display bitmask. | |
| bool | active () const |
| Whether the input is active. | |
| uintptr_t | optionsLength () const |
| Number of options (for optionAt()). | |
| std::optional< int64_t > | minValue () const |
| Optional minimum value. | |
| std::optional< int64_t > | maxValue () const |
| Optional maximum value. | |
| std::optional< int64_t > | step () const |
| Optional step. | |
| bool | confirm () const |
| Whether the input requires confirmation. | |
| std::optional< int64_t > | optionAt (uintptr_t index) const |
| Option value at the given index. | |
Friends | |
| class | openpine::ScriptInput |
Wrapper for an integer script input.
String views are valid only while the ScriptInfo/Instance is alive.
Definition at line 27 of file input_int.hpp.
|
inline |
Constructs from FFI data and optional handle for optionAt().
Definition at line 30 of file input_int.hpp.
|
inline |
Whether the input is active.
Definition at line 55 of file input_int.hpp.
|
inline |
Whether the input requires confirmation.
Definition at line 71 of file input_int.hpp.
|
inline |
Default value.
Definition at line 35 of file input_int.hpp.
|
inline |
Display bitmask.
Definition at line 53 of file input_int.hpp.
|
inline |
Optional group name.
Definition at line 49 of file input_int.hpp.
References openpine::detail::optRefToView().
|
inline |
Input ID.
Definition at line 33 of file input_int.hpp.
|
inline |
Optional inline group name.
Definition at line 45 of file input_int.hpp.
References openpine::detail::optRefToView().
|
inline |
Optional maximum value.
Definition at line 63 of file input_int.hpp.
|
inline |
Optional minimum value.
Definition at line 59 of file input_int.hpp.
|
inline |
Option value at the given index.
| index | Zero-based option index (must be < optionsLength()). |
Definition at line 78 of file input_int.hpp.
|
inline |
Number of options (for optionAt()).
Definition at line 57 of file input_int.hpp.
|
inline |
Optional step.
Definition at line 67 of file input_int.hpp.
|
inline |
Optional title.
Definition at line 37 of file input_int.hpp.
References openpine::detail::optRefToView().
|
inline |
Optional tooltip.
Definition at line 41 of file input_int.hpp.
References openpine::detail::optRefToView().
|
friend |
Definition at line 88 of file input_int.hpp.