This commit is contained in:
2026-08-15 16:46:58 +12:00
commit a4aa721a59
16 changed files with 508 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
from .structs import MonitorInfo, Modeline
from abc import ABC, abstractmethod
class AbstractDisplay(ABC):
@abstractmethod
def get_modes(self) -> list[MonitorInfo]:
pass
@abstractmethod
def set_mode(self, modeline: Modeline, requested_connector: str) -> None:
pass
@abstractmethod
def save_current_mode(self, location: str) -> None:
pass
@abstractmethod
def read_saved_mode(self, location: str) -> Modeline:
pass
@staticmethod
@abstractmethod
def detect(self) -> bool:
pass