jhanarato / uposatha-inky

Display the uposatha on a Pimoroni Inky display
MIT License
0 stars 0 forks source link

Split `ImageComponent` into two protocols #18

Closed jhanarato closed 1 year ago

jhanarato commented 1 year ago

ImageComponent can probably be split in two:

The layout module only knows Area. countdown.Icons only knows Drawable

jhanarato commented 1 year ago

How about Sized with size() returning a Size dataclass object?

jhanarato commented 1 year ago

Continue with ScreenLayout. Convert to iterate over coordinates and remove draw(). Introduce Area protocol.

jhanarato commented 1 year ago

TDD this.

jhanarato commented 1 year ago

Done now. Area resides in layout module, Drawable in components.