|
OpenPine C++ API
C++ wrapper for the OpenPine Pine Script VM
|
Represents bar-colors settings in a chart. More...
#include <bar_colors.hpp>
Public Member Functions | |
| BarColors (const ffi::BarColors *p) | |
| int32_t | offset () const |
| Returns the bar-colors offset. | |
| bool | editable () const |
| Returns whether bar-colors are editable. | |
| std::optional< uintptr_t > | showLast () const |
| Gets the show_last value, if set. | |
| std::optional< std::string_view > | title () const |
| Gets the title of the bar-colors series. | |
| Display | display () const |
| Gets the display bitmask. | |
| std::optional< uint32_t > | color (uintptr_t idx) const |
| Gets the bar color at the specified index. | |
Represents bar-colors settings in a chart.
A BarColors exposes the per-bar color series as well as metadata like title, offset and display mask.
Definition at line 29 of file bar_colors.hpp.
|
inline |
Definition at line 34 of file bar_colors.hpp.
|
inline |
Gets the bar color at the specified index.
| idx | The bar index. |
Definition at line 82 of file bar_colors.hpp.
|
inline |
Gets the display bitmask.
Definition at line 74 of file bar_colors.hpp.
|
inline |
Returns whether bar-colors are editable.
Definition at line 44 of file bar_colors.hpp.
|
inline |
Returns the bar-colors offset.
Definition at line 39 of file bar_colors.hpp.
|
inline |
Gets the show_last value, if set.
Definition at line 49 of file bar_colors.hpp.
|
inline |
Gets the title of the bar-colors series.
Definition at line 62 of file bar_colors.hpp.
References openpine::detail::refToView().