mirror of
https://github.com/quantum5/win2xcur.git
synced 2025-04-24 10:11:57 -04:00
Export Windows writers and parsers
This commit is contained in:
parent
414090ff5a
commit
9966927529
|
@ -9,7 +9,8 @@ from typing import BinaryIO
|
||||||
|
|
||||||
from win2xcur import shadow
|
from win2xcur import shadow
|
||||||
from win2xcur.parser import open_blob
|
from win2xcur.parser import open_blob
|
||||||
from win2xcur.writer.x11 import check_xcursorgen, to_x11
|
from win2xcur.writer import to_x11
|
||||||
|
from win2xcur.writer.x11 import check_xcursorgen
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
|
|
|
@ -8,7 +8,7 @@ from threading import Lock
|
||||||
from typing import BinaryIO
|
from typing import BinaryIO
|
||||||
|
|
||||||
from win2xcur.parser import open_blob
|
from win2xcur.parser import open_blob
|
||||||
from win2xcur.writer.windows import to_smart
|
from win2xcur.writer import to_smart
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
|
|
|
@ -5,6 +5,8 @@ from win2xcur.parser.base import BaseParser
|
||||||
from win2xcur.parser.cur import CURParser
|
from win2xcur.parser.cur import CURParser
|
||||||
from win2xcur.parser.xcursor import XCursorParser
|
from win2xcur.parser.xcursor import XCursorParser
|
||||||
|
|
||||||
|
__all__ = ['ANIParser', 'CURParser', 'XCursorParser', 'PARSERS', 'open_blob']
|
||||||
|
|
||||||
PARSERS: List[Type[BaseParser]] = [CURParser, ANIParser, XCursorParser]
|
PARSERS: List[Type[BaseParser]] = [CURParser, ANIParser, XCursorParser]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
|
from win2xcur.writer.windows import to_ani, to_cur, to_smart
|
||||||
from win2xcur.writer.x11 import to_x11
|
from win2xcur.writer.x11 import to_x11
|
||||||
|
|
||||||
|
__all__ = ['to_ani', 'to_cur', 'to_smart', 'to_x11']
|
||||||
|
|
||||||
CONVERTERS = {
|
CONVERTERS = {
|
||||||
'x11': (to_x11, ''),
|
'x11': (to_x11, ''),
|
||||||
|
'ani': (to_ani, '.ani'),
|
||||||
|
'cur': (to_cur, '.cur'),
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,8 +3,7 @@ from itertools import chain
|
||||||
from typing import List, Tuple
|
from typing import List, Tuple
|
||||||
|
|
||||||
from win2xcur.cursor import CursorFrame
|
from win2xcur.cursor import CursorFrame
|
||||||
from win2xcur.parser.ani import ANIParser
|
from win2xcur.parser import ANIParser, CURParser
|
||||||
from win2xcur.parser.cur import CURParser
|
|
||||||
|
|
||||||
|
|
||||||
def to_cur(frame: CursorFrame) -> bytes:
|
def to_cur(frame: CursorFrame) -> bytes:
|
||||||
|
|
Loading…
Reference in a new issue