File: _keybinder.defs

package info (click to toggle)
keybinder 0.3.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,880 kB
  • sloc: sh: 11,397; ansic: 602; makefile: 151; python: 10
file content (43 lines) | stat: -rw-r--r-- 979 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
;; -*- scheme -*-
; object definitions ...
;; Enumerations and flags ...


;; From bind.h

(define-function bind
  (c-name "keybinder_bind")
  (return-type "gboolean")
  (parameters
    '("const-char*" "keystring")
    '("BindkeyHandler" "handler")
    '("gpointer" "user_data")
  )
  (docstring "bind (keystring, callback, user_data) -> bool\n"
	"\n"
	"Keystring should be in the format understood by\n"
	"gtk.accelerator_parse. An example is '<Ctrl>space'.\n"
	"\n"
	"Return True on success.\n"
	"Will raise KeyError if keystring is already bound.")
)

(define-function unbind
  (c-name "keybinder_unbind")
  (return-type "none")
  (parameters
    '("const-char*" "keystring")
    '("BindkeyHandler" "handler")
  )
  (docstring "unbind (keystring)\n"
	"\n"
	"Will raise KeyError if keystring is not bound.")
)

(define-function get_current_event_time
  (c-name "keybinder_get_current_event_time")
  (return-type "guint32")
  (docstring "get_current_event_time () -> long")
)