Misc changes the type query code
[clg] / gdk / gdktypes.lisp
CommitLineData
0d07716f 1;; Common Lisp bindings for GTK+ v2.0
d6a0064f 2;; Copyright (C) 1999-2001 Espen S. Johnsen <esj@stud.cs.uit.no>
0d07716f 3;;
4;; This library is free software; you can redistribute it and/or
5;; modify it under the terms of the GNU Lesser General Public
6;; License as published by the Free Software Foundation; either
7;; version 2 of the License, or (at your option) any later version.
8;;
9;; This library is distributed in the hope that it will be useful,
10;; but WITHOUT ANY WARRANTY; without even the implied warranty of
11;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12;; Lesser General Public License for more details.
13;;
14;; You should have received a copy of the GNU Lesser General Public
15;; License along with this library; if not, write to the Free Software
16;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
d6a0064f 18;; $Id: gdktypes.lisp,v 1.3 2001/05/11 16:17:21 espen Exp $
0d07716f 19
20(in-package "GDK")
21
d6a0064f 22(init-types-in-library "/opt/gnome/lib/libgdk-x11-1.3.so")
0d07716f 23
d6a0064f 24(defclass color (boxed)
0d07716f 25 ((pixel
26 :allocation :alien
27 :type unsigned-long)
28 (red
29 :allocation :alien
30 :accessor color-red
31 :type unsigned-short)
32 (green
33 :allocation :alien
34 :accessor color-grenn
35 :type unsigned-short)
36 (blue
37 :allocation :alien
38 :accessor color-blue
39 :type unsigned-short))
d6a0064f 40 (:metaclass boxed-class))
0d07716f 41
42
0d07716f 43
d6a0064f 44(define-types-by-introspection "Gdk"
45 ("GdkFunction" :type gc-function)
46 ("GdkGC" :type gc)
47 ("GdkDrawableImplX11" :ignore t)
48 ("GdkWindowImplX11" :ignore t)
49 ("GdkPixmapImplX11" :ignore t)
50 ("GdkGCX11" :ignore t)
51 ("GdkColor" :ignore t)
52 ("GdkEvent" :ignore t))
0d07716f 53
0d07716f 54
d6a0064f 55(deftype bitmap () 'pixmap)
0d07716f 56
d6a0064f 57(defclass cursor (struct)
0d07716f 58 ((type
59 :allocation :alien
60 :accessor cursor-type
61 :initarg :type
62 :type cursor-type))
d6a0064f 63 (:metaclass proxy-class)
64 (:copy %cursor-copy)
65 (:free %cursor-free))
e49839f2 66
d6a0064f 67(defclass device (struct)
e49839f2 68 ()
d6a0064f 69 (:metaclass proxy-class))
0d07716f 70