How ultroned/convi works
Convi is a macOS text calculator and converter pad. The user enters expressions line by line; the app refreshes each line’s result, trying registered converters and showing N/A when none recognizes the input. The documented converter capability is timezone conversion. Internally, the app loop dispatches input/update and drawing, while a custom raylib text-measurement helper supports layout. The excerpts establish the app entry, converter dispatch, timezone parsing, and drawing responsibilities; registry selection is documented in the README. Other possible converter types are not evidenced by this tree.
Main entry points: app.c Editor and results · main.c App loop · converter.c Converter registry · raylib_custom.c Text measurement
Components 8
Pad interface
- App loop
src/main.c - Editor and results
src/app.c - Pad state
src/app.h
Conversion
- Converter registry
src/converter.c - Timezone converter
src/converters/timezone.c
Rendering
- raylib
- Text measurement
src/raylib_custom.c
Other components
- User
Connections 9
- User → App loop: enters text
README.md - App loop → Editor and results: updates and draws
src/main.c - App loop → Pad state: initializes
src/main.c - Editor and results → Pad state: updates
src/app.c - Editor and results → Converter registry: converts lines
src/app.c - Converter registry → Timezone converter: tries converter
README.md - Editor and results → raylib: draws interface
src/app.c - Editor and results → Text measurement: measures text
src/app.c - Text measurement → raylib: uses font metrics
src/raylib_custom.c