/[gtk-cffi]/gtk-cffi/README.md
ViewVC logotype

Contents of /gtk-cffi/README.md

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Mon Dec 24 16:42:08 2012 UTC (15 months, 4 weeks ago) by rklochkov
Branch: MAIN
CVS Tags: HEAD
Fis cvs
1 rklochkov 1.1 gtk-cffi
2     ========
3    
4     GTK-CFFI is a library, providing CFFI layer to GTK3. License is LLGPL for GTK, BSD for GLib and GDK.
5    
6     GTK interface is mapped like this:
7    
8     <table>
9     <tr><td>GTK</td><td>Lisp</td></tr>
10     <tr><td>gtk_widget_set_parent</td><td>(setf (parent widget) new-parent)</td></tr>
11     <tr><td>gtk_widget_get_parent</td><td>(parent widget)</td></tr>
12     </table>
13    
14     Properties realized as (property object :property-name). There are corresponding setters for them.
15     Signals: (gsignal object :signal-name). Value of signal can be name of C function, its address,
16     corresponding keyword or lisp function, including closure.
17    
18     Along with GtkListStore, I made LispStore. It can be filled much faster, than ListStore.
19    
20     Why not cl-gtk2
21     ===============
22     - cl-gtk2 supports only GTK2, gtk-cffi supports GTK3
23     - cl-gtk2 describes properties by hand, gtk-cffi uses g-object-class-find-property and caching results
24     - 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)
25    

  ViewVC Help
Powered by ViewVC 1.1.5