|
OpenPine C++ API
C++ wrapper for the OpenPine Pine Script VM
|
Represents a plotshape output. More...
#include <plot_shape.hpp>
Public Member Functions | |
| PlotShape (const ffi::PlotShape *p) | |
| std::optional< std::string_view > | title () const |
| Gets the title. | |
| std::optional< double > | value (uintptr_t idx) const |
| Gets the series numeric value at the specified index. | |
| std::optional< bool > | boolValue (uintptr_t idx) const |
| Gets the series value at the specified index interpreted as boolean. | |
| ffi::Shape | style () const |
| Gets the shape style. | |
| ffi::Location | location () const |
| Gets the placement location. | |
| std::optional< uint32_t > | color (uintptr_t idx) const |
| Gets the per-bar color. | |
| int32_t | offset () const |
| Gets the bar index offset. | |
| std::optional< std::string_view > | text () const |
| Gets the optional text string. | |
| std::optional< uint32_t > | textColor (uintptr_t idx) const |
| Gets the per-bar text color. | |
| bool | editable () const |
| Returns whether the plot-shape is editable. | |
| ffi::Size | size () const |
| Gets the shape size. | |
| std::optional< uintptr_t > | showLast () const |
| Gets the show_last value, if set. | |
| Display | display () const |
| Gets the display bitmask. | |
| std::optional< std::string_view > | format () const |
| Gets the optional formatting hint. | |
| std::optional< int32_t > | precision () const |
| Gets the optional decimal precision. | |
| bool | forceOverlay () const |
| Gets whether the plot-shape is forced to render as overlay. | |
Represents a plotshape output.
Definition at line 27 of file plot_shape.hpp.
|
inline |
Definition at line 32 of file plot_shape.hpp.
|
inline |
Gets the series value at the specified index interpreted as boolean.
Definition at line 62 of file plot_shape.hpp.
|
inline |
Gets the per-bar color.
Definition at line 84 of file plot_shape.hpp.
|
inline |
Gets the display bitmask.
Definition at line 147 of file plot_shape.hpp.
|
inline |
Returns whether the plot-shape is editable.
Definition at line 125 of file plot_shape.hpp.
|
inline |
Gets whether the plot-shape is forced to render as overlay.
Definition at line 176 of file plot_shape.hpp.
|
inline |
Gets the optional formatting hint.
Definition at line 152 of file plot_shape.hpp.
References openpine::detail::refToView().
|
inline |
Gets the placement location.
Definition at line 79 of file plot_shape.hpp.
|
inline |
Gets the bar index offset.
Definition at line 96 of file plot_shape.hpp.
|
inline |
Gets the optional decimal precision.
Definition at line 164 of file plot_shape.hpp.
|
inline |
Gets the show_last value, if set.
Definition at line 135 of file plot_shape.hpp.
|
inline |
Gets the shape size.
Definition at line 130 of file plot_shape.hpp.
|
inline |
Gets the shape style.
Definition at line 74 of file plot_shape.hpp.
|
inline |
Gets the optional text string.
Definition at line 101 of file plot_shape.hpp.
References openpine::detail::refToView().
|
inline |
Gets the per-bar text color.
Definition at line 113 of file plot_shape.hpp.
|
inline |
Gets the title.
Definition at line 38 of file plot_shape.hpp.
References openpine::detail::refToView().
|
inline |
Gets the series numeric value at the specified index.
Definition at line 50 of file plot_shape.hpp.