OpenPine C++ API
C++ wrapper for the OpenPine Pine Script VM
Loading...
Searching...
No Matches
openpine::seriesgraph::PlotChar Class Reference

Represents a plotchar output. More...

#include <plot_char.hpp>

Public Member Functions

 PlotChar (const ffi::PlotChar *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.
char32_t character () const
 Gets the character codepoint.
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-char is editable.
ffi::Size size () const
 Gets the character 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-char is forced to render as overlay.

Detailed Description

Represents a plotchar output.

Definition at line 27 of file plot_char.hpp.

Constructor & Destructor Documentation

◆ PlotChar()

openpine::seriesgraph::PlotChar::PlotChar ( const ffi::PlotChar * p)
inline

Definition at line 32 of file plot_char.hpp.

Member Function Documentation

◆ boolValue()

std::optional< bool > openpine::seriesgraph::PlotChar::boolValue ( uintptr_t idx) const
inline

Gets the series value at the specified index interpreted as boolean.

Definition at line 62 of file plot_char.hpp.

◆ character()

char32_t openpine::seriesgraph::PlotChar::character ( ) const
inline

Gets the character codepoint.

Definition at line 74 of file plot_char.hpp.

◆ color()

std::optional< uint32_t > openpine::seriesgraph::PlotChar::color ( uintptr_t idx) const
inline

Gets the per-bar color.

Definition at line 86 of file plot_char.hpp.

◆ display()

Display openpine::seriesgraph::PlotChar::display ( ) const
inline

Gets the display bitmask.

Definition at line 149 of file plot_char.hpp.

◆ editable()

bool openpine::seriesgraph::PlotChar::editable ( ) const
inline

Returns whether the plot-char is editable.

Definition at line 127 of file plot_char.hpp.

◆ forceOverlay()

bool openpine::seriesgraph::PlotChar::forceOverlay ( ) const
inline

Gets whether the plot-char is forced to render as overlay.

Definition at line 178 of file plot_char.hpp.

◆ format()

std::optional< std::string_view > openpine::seriesgraph::PlotChar::format ( ) const
inline

Gets the optional formatting hint.

Definition at line 154 of file plot_char.hpp.

References openpine::detail::refToView().

◆ location()

ffi::Location openpine::seriesgraph::PlotChar::location ( ) const
inline

Gets the placement location.

Definition at line 81 of file plot_char.hpp.

◆ offset()

int32_t openpine::seriesgraph::PlotChar::offset ( ) const
inline

Gets the bar index offset.

Definition at line 98 of file plot_char.hpp.

◆ precision()

std::optional< int32_t > openpine::seriesgraph::PlotChar::precision ( ) const
inline

Gets the optional decimal precision.

Definition at line 166 of file plot_char.hpp.

◆ showLast()

std::optional< uintptr_t > openpine::seriesgraph::PlotChar::showLast ( ) const
inline

Gets the show_last value, if set.

Definition at line 137 of file plot_char.hpp.

◆ size()

ffi::Size openpine::seriesgraph::PlotChar::size ( ) const
inline

Gets the character size.

Definition at line 132 of file plot_char.hpp.

◆ text()

std::optional< std::string_view > openpine::seriesgraph::PlotChar::text ( ) const
inline

Gets the optional text string.

Definition at line 103 of file plot_char.hpp.

References openpine::detail::refToView().

◆ textColor()

std::optional< uint32_t > openpine::seriesgraph::PlotChar::textColor ( uintptr_t idx) const
inline

Gets the per-bar text color.

Definition at line 115 of file plot_char.hpp.

◆ title()

std::optional< std::string_view > openpine::seriesgraph::PlotChar::title ( ) const
inline

Gets the title.

Returns
The title if available, otherwise std::nullopt.

Definition at line 38 of file plot_char.hpp.

References openpine::detail::refToView().

◆ value()

std::optional< double > openpine::seriesgraph::PlotChar::value ( uintptr_t idx) const
inline

Gets the series numeric value at the specified index.

Definition at line 50 of file plot_char.hpp.


The documentation for this class was generated from the following file: