| 112 | } |
| 113 | |
| 114 | ReturnCode plot_eval( |
| 115 | Context* ctx, |
| 116 | const Expr* expr) { |
| 117 | PlotConfig plot; |
| 118 | |
| 119 | /* scale setup */ |
| 120 | if (auto rc = plot_prepare(ctx, &plot, expr); !rc) { |
| 121 | return rc; |
| 122 | } |
| 123 | |
| 124 | /* execute drawing commands */ |
| 125 | if (auto rc = plot_draw(ctx, &plot, expr); !rc) { |
| 126 | return rc; |
| 127 | } |
| 128 | |
| 129 | return OK; |
| 130 | } |
| 131 | |
| 132 | Rectangle plot_get_clip(const PlotConfig* plot, const Layer* layer) { |
| 133 | if (plot->layout_stack.empty()) { |
nothing calls this directly
no test coverage detected