[gtk-cffi-cvs] CVS gtk-cffi

CVS User rklochkov rklochkov at common-lisp.net
Mon Dec 24 16:42:08 UTC 2012


Update of /project/gtk-cffi/cvsroot/gtk-cffi
In directory tiger.common-lisp.net:/tmp/cvs-serv4753

Added Files:
	README.md 
Log Message:
Fis cvs



--- /project/gtk-cffi/cvsroot/gtk-cffi/README.md	2012/12/24 16:42:08	NONE
+++ /project/gtk-cffi/cvsroot/gtk-cffi/README.md	2012/12/24 16:42:08	1.1
gtk-cffi
========

GTK-CFFI is a library, providing CFFI layer to GTK3. License is LLGPL for GTK, BSD for GLib and GDK.

GTK interface is mapped like this:

<table>
<tr><td>GTK</td><td>Lisp</td></tr>
<tr><td>gtk_widget_set_parent</td><td>(setf (parent widget) new-parent)</td></tr>
<tr><td>gtk_widget_get_parent</td><td>(parent widget)</td></tr>
</table>

Properties realized as (property object :property-name). There are corresponding setters for them. 
Signals: (gsignal object :signal-name). Value of signal can be name of C function, its address, 
corresponding keyword or lisp function, including closure.

Along with GtkListStore, I made LispStore. It can be filled much faster, than ListStore.

Why not cl-gtk2
===============
- cl-gtk2 supports only GTK2, gtk-cffi supports GTK3
- cl-gtk2 describes properties by hand, gtk-cffi uses g-object-class-find-property and caching results
- cl-gtk2 offers c-style functions like (gtk:widget-queue-resize-no-redraw widget), in gtk-cffi this will be (gtk:queue-resize widget :no-redraw t)





More information about the gtk-cffi-cvs mailing list