openpine_vm/visuals/location.rs
1use openpine_macros::Enum;
2use serde::{Deserialize, Serialize};
3
4/// Where to place a character/shape relative to the bar.
5#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Enum, Serialize, Deserialize)]
6#[openpine(rename_all = "lowercase")]
7pub enum Location {
8 /// Above the bar.
9 #[default]
10 AboveBar,
11 /// Below the bar.
12 BelowBar,
13 /// Absolute coordinates.
14 Absolute,
15 /// At the top of the chart pane.
16 Top,
17 /// At the bottom of the chart pane.
18 Bottom,
19}