https://github.com/jd557/twotm8-native
Example GUI application in scala native
https://github.com/jd557/twotm8-native
Last synced: about 1 month ago
JSON representation
Example GUI application in scala native
- Host: GitHub
- URL: https://github.com/jd557/twotm8-native
- Owner: JD557
- Created: 2023-03-23T18:25:48.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-20T15:06:16.000Z (almost 2 years ago)
- Last Synced: 2025-04-01T18:09:26.669Z (about 1 month ago)
- Language: Scala
- Size: 102 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twotm8 Native

This repo contains an example graphical application in [Scala Native](https://scala-native.org), using [microui](https://github.com/rxi/microui).
The backend is abstracted away in a `Backend` trait (with an example `MinartBackend` powered by [minart](https://github.com/jd557/minart)), so it should be pretty simple to bring your own implementation.
The application connects to [Twotm8](https://github.com/keynmol/twotm8) and shows the posts from a few predefined profiles.
## Notes:
The default `MinartBackend` expects `libSDL` to be installed.
The `LibCurlHttp` HTTP client requires `libcurl` to be installed.
If for some reason you have problems linking `libcurl`, there's a naive `BinCurlHttp` client that calls the `curl` executable. You can use it by simply updating the `TwotM8Native.scala` to use that client instead.The microui bindings come from https://github.com/keynmol/microuilib-scala-native-demo