cl-gtk4 icon indicating copy to clipboard operation
cl-gtk4 copied to clipboard

Can you make a tutorial?

Open Filipp-Druan opened this issue 1 year ago • 3 comments

Hello! I really need a tutorial, thet would help my figure out how to deal with the Lisp version of the library using the official documentation for GTK4, which uses C. There are following questions:

  • What macros and functions were written in Lisp for Lisp version of GTK4&
  • What package are needed for what? Thanks!

Filipp-Druan avatar Mar 18 '23 14:03 Filipp-Druan

  • What macros and functions were written in Lisp for Lisp version of GTK4&

Some macros haven't been well-documented, which I will improve in the future, but at present, you can refer to GTK API reference and check out the conversion rules for these APIs. For the usage of them, see the examples written with cl-gtk4.

  • What package are needed for what?

Other than the Lisp packages available on Ultralisp, the only required external package is gtk4, which is installable via your system package manager.

bohonghuang avatar Mar 18 '23 14:03 bohonghuang

https://github.com/bigos/Pyrulis/blob/master/Lisp/cl-gtk4-tictactoe.lisp Could something simpler than that be a basis of a tutorial?

Would you help someone to make a tutorial for you?

bigos avatar Mar 18 '23 18:03 bigos

I'd like to see a simple standalone example too. I'm relative new to common lisp, but not to gtk.

I started a new project with cl-project, but I'm missing something. I just copied the 'simple example' "define-application" to main.lisp, when evaluating, I get the error that the variable SIMPLE unbound is.

So yes, a starting example would suit me well :-)

davidbe avatar Mar 24 '23 19:03 davidbe