-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevents.py
More file actions
44 lines (33 loc) · 812 Bytes
/
Copy pathevents.py
File metadata and controls
44 lines (33 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# SPDX-License-Identifier: LicenseRef-ImageWriter-NC
# Copyright (c) 2026 Giorgio Ferrara
# ImageWriter Stream Decoder
# Copyright (c) 2026 Giorgio Ferrara
#
# This software is licensed for non-commercial use only.
# Commercial use requires a separate license agreement.
#
# See LICENSE and COMMERCIAL_LICENSE.md for details.
from dataclasses import dataclass
@dataclass
class NewPrintJob:
pass
@dataclass
class NewPage:
pass
@dataclass
class SetLeftMargin:
left_margin: int
@dataclass
class SetXRelativeToMargin:
x: int
@dataclass
class GraphicBand:
size: int
band: bytes
@dataclass
class SetVerticalUnit:
vertical_unit: int
@dataclass
class LineFeed:
pass
Event = NewPrintJob | NewPage | SetLeftMargin | SetXRelativeToMargin | GraphicBand | SetVerticalUnit | LineFeed