chiark / gitweb /
Infra: Rudimentary setup system.
[clg] / gtk / defpackage.lisp
1 (defpackage "GTK"
2   (:use "GFFI" "GLIB" "COMMON-LISP" "AUTOEXPORT" "PKG-CONFIG" "CLG-UTILS")
3   #+cmu(:use "PCL" "EXT")
4   #+sbcl(:use "SB-PCL" "SB-EXT")
5   #+clisp(:use "CLOS")
6   #+clisp(:shadowing-import-from "GFFI" "SLOT-DEFINITION-TYPE")
7   #+(or cmu sbcl)
8   (:import-from #+cmu"PCL" #+sbcl"SB-PCL"
9            "ADD-READER-METHOD" "ADD-WRITER-METHOD")
10   #+(or cmu sbcl)
11   (:import-from #+cmu"SYSTEM" #+sbcl"SB-SYS" "SAP-INT" "ADD-FD-HANDLER" "REMOVE-FD-HANDLER")
12   #?(or 
13      (pkg-config:featurep :cmu) 
14      (and (pkg-config:sbcl< 1 0 6) (not (pkg-config:featurep :win32))))
15   (:import-from #+cmu"LISP" #+sbcl"SB-IMPL"
16    "*PERIODIC-POLLING-FUNCTION*" "*MAX-EVENT-TO-SEC*" "*MAX-EVENT-TO-USEC*")
17   #?(and (pkg-config:sbcl>= 1 0 15 6) (not (pkg-config:featurep :win32)))
18   (:import-from "SB-IMPL"
19    "*PERIODIC-POLLING-FUNCTION*" "*PERIODIC-POLLING-PERIOD*")
20   #+clisp
21   (:import-from "SOCKET" "SOCKET-STATUS")
22   (:export "EVENTS-PENDING-P" "GET-CURRENT-EVENT" "MAIN-DO-EVENT" "MAIN"
23            "MAIN-LEVEL" "MAIN-QUIT" "MAIN-ITERATION-DO" "MAIN-ITERATE-ALL"
24            "*REENTRANT-MAIN-ITERATION*" "*RUNNING-MAIN-ITERATION*")
25   (:export "CONTAINER-CHILD-CLASS" "CONTAINER-CHILD" "CONTAINER-CHILD-CLASS")
26   ;; Signal names that need to be explicit exported
27   (:export "TOGGLED")
28   ;; Symbols re-exported from glib -- will not be exported from
29   ;; this package in the future
30   (:export "SIGNAL-EMIT-STOP" "SIGNAL-CONNECT" "SIGNAL-DISCONNECT"
31            "SIGNAL-HANDLER-BLOCK" "SIGNAL-HANDLER-UNBLOCK"
32            "TIMEOUT-ADD" "TIMEOUT-REMOVE" "IDLE-ADD" "IDLE-REMOVE"))
33
34
35 (defpackage "CLG"
36   (:use "GLIB" "GTK")
37   ;; Symbols re-exported from the GLIB package
38   (:export "SIGNAL-EMIT-STOP" "SIGNAL-CONNECT" "SIGNAL-DISCONNECT"
39            "SIGNAL-HANDLER-BLOCK" "SIGNAL-HANDLER-UNBLOCK"
40            "TIMEOUT-ADD" "TIMEOUT-REMOVE" "IDLE-ADD" "IDLE-REMOVE")
41   ;; Symbols re-exported from the GDK package 
42   (:import-from "GDK" "TIMEOUT-ADD-WITH-LOCK" "IDLE-ADD-WITH-LOCK")
43   (:export "TIMEOUT-ADD-WITH-LOCK" "IDLE-ADD-WITH-LOCK")
44   ;; Symbols not automatically re-exported from the GTK package
45   (:export "TOGGLE" "CONTAINER-CHILD"))
46