2023-07-10 11:20:55 -04:00
|
|
|
from typing import NewType
|
2023-07-10 17:03:30 -04:00
|
|
|
from pathlib import Path
|
2023-07-10 11:20:55 -04:00
|
|
|
from dataclasses import dataclass
|
|
|
|
|
|
|
|
# X11 window id
|
|
|
|
WindowId = NewType("WindowId", int)
|
|
|
|
# PID int
|
|
|
|
ProcessId = NewType("ProcessId", int)
|
|
|
|
# page number
|
|
|
|
PageNumber = NewType("PageNumber", int)
|
|
|
|
|
|
|
|
|
|
|
|
# reference to a specific page in a specific pdf
|
|
|
|
@dataclass
|
|
|
|
class Reference:
|
2023-07-10 17:03:30 -04:00
|
|
|
filepath: Path
|
2023-07-10 11:20:55 -04:00
|
|
|
page: PageNumber
|