|
| | Graph (const ffi::Graph *p) |
| | Constructs a Graph wrapper around the given pointer.
|
| GraphType | type () const |
| | Gets the type of the graph.
|
| std::optional< graph::Hline > | asHline () const |
| | Gets the hline payload, if this graph is an hline.
|
| std::optional< graph::Label > | asLabel () const |
| | Gets the label payload, if this graph is a label.
|
| std::optional< graph::Line > | asLine () const |
| | Gets the line payload, if this graph is a line.
|
| std::optional< graph::LineFill > | asLineFill () const |
| | Gets the line-fill payload, if this graph is a line fill.
|
| std::optional< graph::Box > | asBox () const |
| | Gets the box payload, if this graph is a box.
|
| std::optional< graph::Polyline > | asPolyline () const |
| | Gets the polyline payload, if this graph is a polyline.
|
| std::optional< graph::Table > | asTable () const |
| | Gets the table payload, if this graph is a table.
|
Represents a non-series graph in a chart.
A Graph is a tagged union of draw primitives (hline, label, line, box, etc.). Use type() to inspect the kind, then call the corresponding asXxx() accessor.
Definition at line 36 of file graph.hpp.