|
OpenPine C++ API
C++ wrapper for the OpenPine Pine Script VM
|
Represents a series graph in a chart. More...
#include <series_graph.hpp>
Public Member Functions | |
| SeriesGraph (const ffi::SeriesGraph *p) | |
| Constructs a wrapper around the given series graph pointer. | |
| SeriesGraphType | type () const |
| Gets the type of the series graph. | |
| std::optional< seriesgraph::Plot > | asPlot () const |
| Gets the plot associated with this graph, if any. | |
| std::optional< seriesgraph::BackgroundColors > | asBackgroundColors () const |
| Gets the background-colors associated with this graph, if any. | |
| std::optional< seriesgraph::Fill > | asFill () const |
| Gets the fill associated with this graph, if any. | |
| std::optional< seriesgraph::PlotArrow > | asPlotArrow () const |
| Gets the plot-arrow associated with this graph, if any. | |
| std::optional< seriesgraph::PlotBar > | asPlotBar () const |
| Gets the plot-bar associated with this graph, if any. | |
| std::optional< seriesgraph::PlotCandle > | asPlotCandle () const |
| Gets the plot-candle associated with this graph, if any. | |
| std::optional< seriesgraph::PlotChar > | asPlotChar () const |
| Gets the plot-char associated with this graph, if any. | |
| std::optional< seriesgraph::PlotShape > | asPlotShape () const |
| Gets the plot-shape associated with this graph, if any. | |
Represents a series graph in a chart.
A SeriesGraph is a tagged union of several draw/plot-like outputs. Use type() to inspect the concrete kind and then query the appropriate accessor.
Definition at line 37 of file series_graph.hpp.
|
inline |
Constructs a wrapper around the given series graph pointer.
Definition at line 43 of file series_graph.hpp.
|
inline |
Gets the background-colors associated with this graph, if any.
Definition at line 70 of file series_graph.hpp.
|
inline |
Gets the fill associated with this graph, if any.
Definition at line 84 of file series_graph.hpp.
|
inline |
Gets the plot associated with this graph, if any.
Definition at line 56 of file series_graph.hpp.
|
inline |
Gets the plot-arrow associated with this graph, if any.
Definition at line 98 of file series_graph.hpp.
|
inline |
Gets the plot-bar associated with this graph, if any.
Definition at line 112 of file series_graph.hpp.
|
inline |
Gets the plot-candle associated with this graph, if any.
Definition at line 126 of file series_graph.hpp.
|
inline |
Gets the plot-char associated with this graph, if any.
Definition at line 140 of file series_graph.hpp.
|
inline |
Gets the plot-shape associated with this graph, if any.
Definition at line 154 of file series_graph.hpp.
|
inline |
Gets the type of the series graph.
Definition at line 49 of file series_graph.hpp.