How jwkerr/clock works
This is a native analogue-clock practice app for a student, with teacher controls. The workflow starts from the computer’s current time, opens an interactive dial, and lets a user read or adjust the time; teacher controls can change the display and allow independent hand movement. The UI and timekeeping logic are implemented in the two core source files. The README documents capabilities not fully visible in the UI excerpt; those are represented without inferring additional internal calls.
Main entry points: ui.rs Clock app state · clock.rs Clock time and hand math · main.rs Native app startup
Components 7
Application startup
- Native app startup
src/main.rs
Clock interface
- Clock app state
src/ui.rs - Teacher controls
src/ui.rs - Clock face
src/ui.rs - Hand interaction
src/ui.rs
Timekeeping
- Clock time and hand math
src/clock.rs
Other components
- Student / teacher
Connections 10
- Native app startup → Clock time and hand math: initializes time
src/main.rs - Native app startup → Clock app state: starts app
src/main.rs - Student / teacher → Teacher controls: sets options
README.md - Student / teacher → Clock face: reads or drags
README.md - Clock app state → Teacher controls: shows controls
src/ui.rs - Clock app state → Clock face: shows dial
src/ui.rs - Teacher controls → Clock app state: updates settings
src/ui.rs - Hand interaction → Clock time and hand math: moves linked hands
src/ui.rs - Clock face → Clock time and hand math: gets hand turns
src/ui.rs - Clock app state → Hand interaction: handles pointer input
src/ui.rs