1 \input texinfo @c -*-texinfo-*-
2 @c %**start of header (This is for running texinfo on a region.)
5 @c %**end of header (This is for running texinfo on a region.)
7 @c @documentencoding utf-8
20 @deftp {Structure} \args\
29 @macro Superclass {name}
30 Superclass: @ref{\name\}
43 @macro Accessor {args}
44 @deffn {Accessor} \args\
48 @macro TypedAccessor {name, class, type}
49 @deffn {Accessor} \name\ \class\
50 For class: @ref{\class\}
56 @macro GenericFunction {args}
57 @deffn {Generic Function} \args\
61 @macro ForeignType {args}
62 @deftp {Foreign Type} \args\
66 @macro Variable {args}
67 @defvr {Special Variable} \args\
71 @macro Condition {args}
72 @deftp {Condition Type} \args\
82 @strong{Implementor's note:} @emph{\text\}
86 @c Info "requires" that x-refs end in a period or comma, or ) in the
87 @c case of @pxref. So the following implements that requirement for
88 @c the "See also" subheadings that permeate this manual, but only in
100 @c Typeset comments in roman font for the TeX output.
105 @alias lispcmt = asis
108 @c My copy of makeinfo is not generating any HTML for @result{} for
109 @c some odd reason. (It certainly used to...)
116 @c Similar macro to @result. Its purpose is to work around the fact
117 @c that ⇒ does not work properly inside @lisp.
130 @c ============================= Macros =============================
133 @c Show types, functions, and concepts in the same index.
139 @subtitle A Common Lisp binding for Gtk+
140 @author Dmitry Kalyanov
153 * GObject Reference::
160 @code{cl-gtk2} is the GUI library for Common Lisp. @code{cl-gtk2} is based on @uref{http://www.gtk.org/,,Gtk+} GUI library and is Common Lisp binding for it. @code{cl-gtk2} allows you to create graphical user interfaces for Common Lisp applications.
162 As @code{Gtk+} is based on object system GObject, @code{cl-gtk2} is based on a binding to this object system called @uref{../gobject/index.html,,cl-gtk2-gobject}.
164 @code{cl-gtk2} provides a thin wrapper around @code{Gtk+} functionality, mostly retaining the same set of classes, properties and methods.
166 The important parts of @code{Gtk+} are:
168 @item GObject type system
175 @item Layout and composition of widgets
177 @item Using Gtk+ with threads
178 @item Building stand-alone applications
182 @chapter Installation
184 @code{cl-gtk2} has the following dependencies. They all must be installed before installing @code{cl-gtk2}.
187 @item @uref{http://common-lisp.net/project/cffi/,,CFFI} (version >= 0.10.4)
188 @item @uref{http://www.cliki.net/trivial-garbage,,Trivial-Garbage} (version >= 0.18)
189 @item @uref{http://common-lisp.net/project/iterate/,,Iterate} (version >= 1.4.3)
190 @item @uref{http://common-lisp.net/project/bordeaux-threads/,,Bordeaux-Threads} (version >= 0.6.0)
191 @item @uref{http://common-lisp.net/project/closer/closer-mop.html,,Closer-MOP} (version >= 0.55)
194 At first, source code of @code{cl-gtk2} needs to be downloaded. There are two options to download the sources: use @uref{http://git-scm.org/,,Git} or download @code{tar.gz} archive.
196 To get sources with Git, clone @code{cl-gtk2} repository:
198 git clone git://repo.or.cz/cl-gtk2.git
201 Or download and unpack the @code{tar.gz}-archived @uref{http://repo.or.cz/w/cl-gtk2.git?a=snapshot;h=HEAD;sf=tgz,,snapshot} of @code{cl-gtk2}.
203 To be able to compile, load and use @code{cl-gtk2}, you should register the @code{ASDF} system definitions.
205 To do this, either add @code{glib}, @code{gdk} and @code{gtk} directories to @code{asdf:*central-registry*}:
207 (push "/path/to/cl-gtk2/glib" asdf:*central-registry*)
208 (push "/path/to/cl-gtk2/gdk" asdf:*central-registry*)
209 (push "/path/to/cl-gtk2/gtk" asdf:*central-registry*)
211 or create symlinks to @code{cl-gtk2-glib.asd}, @code{cl-gtk2-gdk.asd} and @code{cl-gtk2-gtk.asd} files in a directory where @code{ASDF} systems are located (it might be @code{/usr/share/common-lisp/systems/} for system-wide installation in Gentoo Linux and Debian Linux, @code{~/.sbcl/systems/} for user installation for SBCL compiler):
213 cd ~/.sbcl/systems # depends on your system
214 ln -s /path/to/cl-gtk2/glib/cl-gtk2-glib.asd .
215 ln -s /path/to/cl-gtk2/gdk/cl-gtk2-gdk.asd .
216 ln -s /path/to/cl-gtk2/gtk/cl-gtk2-gtk.asd .
219 @node GObject Reference
220 @chapter GObject Reference
224 @include gobject.ref.texi
229 @chapter Gdk Reference
231 @include gdk.ref.texi