Finish Gdk/Drawing-primitives and add sever Pango types
[cl-gtk2.git] / gdk / gdk.threads.lisp
blob268c05a9531d56ec037503b93de189ef1622737b
1 (in-package :gdk)
3 (defcfun gdk-threads-init :void)
4 (glib:at-init () (gdk-threads-init))
6 (defcfun gdk-threads-enter :void)
7 (export 'gdk-threads-enter)
9 (defcfun gdk-threads-leave :void)
10 (export 'gdk-threads-leave)
12 ;; void gdk_threads_set_lock_functions (GCallback enter_fn,
13 ;; GCallback leave_fn);
15 (defcallback source-func-callback :boolean
16 ((data :pointer))
17 (funcall (stable-pointer-value data)))
19 (defcallback stable-pointer-free-destroy-notify-callback :void ((data :pointer))
20 (free-stable-pointer data))
22 (defcfun gdk_threads_add_idle_full :uint
23 (priority :int)
24 (function :pointer)
25 (data :pointer)
26 (destroy-notify :pointer))
28 (defun gdk-threads-add-idle-full (priority function)
29 (gdk_threads_add_idle_full priority
30 (callback source-func-callback)
31 (allocate-stable-pointer function)
32 (callback stable-pointer-free-destroy-notify-callback)))
34 (export 'gdk-threads-add-idle-full)
36 (defcfun gdk_threads_add_timeout_full :uint
37 (priority :int)
38 (interval :uint)
39 (function :pointer)
40 (data :pointer)
41 (destroy-notify :pointer))
43 (defun gdk-threads-add-timeout-full (priority interval-msec function)
44 (gdk_threads_add_timeout_full priority interval-msec
45 (callback source-func-callback)
46 (allocate-stable-pointer function)
47 (callback stable-pointer-free-destroy-notify-callback)))
49 (export 'gdk-threads-add-timeout-full)
51 (defcfun gdk_threads_add_timeout_seconds_full :uint
52 (priority :int)
53 (interval :uint)
54 (function :pointer)
55 (data :pointer)
56 (destroy-notify :pointer))
58 (defun gdk-threads-add-timeout-seconds-full (priority interval-sec function)
59 (gdk_threads_add_timeout_seconds_full priority interval-sec
60 (callback source-func-callback)
61 (allocate-stable-pointer function)
62 (callback stable-pointer-free-destroy-notify-callback)))
64 (export 'gdk-threads-add-timeout-seconds-full)