chiark / gitweb /
Added bindigns to GdkAtom
authorespen <espen>
Sun, 30 Jan 2005 15:08:02 +0000 (15:08 +0000)
committerespen <espen>
Sun, 30 Jan 2005 15:08:02 +0000 (15:08 +0000)
gdk/defpackage.lisp
gdk/gdk.lisp
gdk/gdktypes.lisp

index 52480f1e1595208709062f6561cfc69a0d6ab8e9..74c21653250872c0b7d7131ed0184b0465e0c834 100644 (file)
@@ -1,6 +1,7 @@
 (defpackage "GDK"
   (:use "GLIB" "COMMON-LISP" "AUTOEXPORT")
   (:shadowing-import-from "PCL"
-   "CLASS-NAME" "CLASS-OF" "FIND-CLASS"))
+   "CLASS-NAME" "CLASS-OF" "FIND-CLASS")
+  (:shadow "ATOM"))
 
 
index c695a676ad5e4f336383378e8f85a2e766d7e2a9..c300d7181718f1dccdf469cf20a11acf557194ac 100644 (file)
@@ -15,7 +15,7 @@
 ;; License along with this library; if not, write to the Free Software
 ;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-;; $Id: gdk.lisp,v 1.12 2004/12/20 00:32:15 espen Exp $
+;; $Id: gdk.lisp,v 1.13 2005/01/30 15:08:03 espen Exp $
 
 
 (in-package "GDK")
@@ -127,6 +127,13 @@ (defbinding screen-height-mm () int)
 (defbinding flush () nil)
 (defbinding beep () nil)
 
+(defbinding atom-intern (atom-name &optional only-if-exists) atom
+  ((string atom-name) string)
+  (only-if-exists boolean))
+
+(defbinding atom-name () string
+  (atom atom))
+
 
 
 ;;; Visuals
@@ -652,7 +659,7 @@ (defbinding keyval-from-name () unsigned-int
 (defbinding keyval-to-upper () unsigned-int
   (keyval unsigned-int))
 
-(defbinding keyval-to-lower ()unsigned-int
+(defbinding keyval-to-lower () unsigned-int
   (keyval unsigned-int))
 
 (defbinding (keyval-is-upper-p "gdk_keyval_is_upper") () boolean
index ce2777a35133a2567c4b2b8513af79c372ab30ad..6334ae1f4537382222b14d35885d6975748342ea 100644 (file)
@@ -15,7 +15,7 @@
 ;; License along with this library; if not, write to the Free Software
 ;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-;; $Id: gdktypes.lisp,v 1.10 2004/12/26 11:47:24 espen Exp $
+;; $Id: gdktypes.lisp,v 1.11 2005/01/30 15:08:03 espen Exp $
 
 (in-package "GDK")
 
@@ -54,7 +54,7 @@ (defclass color (boxed)
 (deftype point () '(vector int 2))
 (deftype segment () '(vector int 4))
 (deftype trapezoid () '(vector double-float 6))
-
+(deftype atom () 'unsigned-int)
 
 
 ;; Could this just as well have been a vector?