msink / kotlin-libui

Kotlin/Native interop to libui: a portable GUI library
MIT License
648 stars 49 forks source link

User guide/Documentation #33

Open ky8585 opened 4 years ago

ky8585 commented 4 years ago

Despite two years have passed since the moment when this problem had been outlined for the first time, there is still no documentation. I'm a newbie to both Kotlin|NAtive and GUI. I found that I simply cannot do even the simplest things without documents.

Can anybody assist me in providing at least full-functional (and not few simple samples) examples of coding GUI using libui? I need to build a very simple application:

  1. Initialize window
  2. Initialize menu
  3. Input several common project data (the algorithm is to check the input and do not allow incorrect data)
  4. Output these data to the screen
  5. Switch to the next screen
  6. Input several particular project item data
  7. Output them to the table on the screen
  8. Perform calculations.
  9. Switch to the next screen
  10. Output the results to the screen
  11. Calculate one more version?
  12. If Yes - goto 6
  13. If No - do nothing

Thank you.

ESchouten commented 4 years ago

I am a new user aswell, but this is my take on it

Basic application: https://github.com/msink/hello-libui

Official LibUI repository: https://github.com/andlabs/libui

Documentation for Golang bindings: https://godoc.org/github.com/andlabs/ui