The Crystal Programming Language Forum

Can i use fltk or fox toolkit

How about calling c library functions.
fltk and fox are rather very simple gui toolkits.
So for a simple button or edit form it could be nice.
Is this possible or easy done ?

Yes, but depending of the fltk API if you don’t code a Crystal layer to abstract the C nature of the API your Crystal code can end up looking a lot like C. But yes, it’s possible and easy, the language reference have some examples.

Could you guide me exact url’s with info on binding with c & c++ ?
First API’s i think of are, C-ncurses, c+±foxtoolkit , c+±fltktoolkit

https://crystal-lang.org/reference/syntax_and_semantics/c_bindings/index.html