labelize 0.4.0

Fast Rust engine to parse ZPL & EPL label data and render to PNG/PDF. CLI, HTTP microservice, or library. Open-source Labelary alternative.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Clone, Debug, Default)]
pub struct LabelPosition {
    pub x: i32,
    pub y: i32,
    pub calculate_from_bottom: bool,
    pub automatic_position: bool,
}

impl LabelPosition {
    pub fn add(&self, other: &LabelPosition) -> LabelPosition {
        LabelPosition {
            x: self.x + other.x,
            y: self.y + other.y,
            calculate_from_bottom: self.calculate_from_bottom,
            automatic_position: self.automatic_position,
        }
    }
}