1;; -*- scheme -*-
2; object definitions ...
3(define-object Terminal
4  (in-module "Vte")
5  (parent "GtkWidget")
6  (c-name "VteTerminal")
7  (gtype-id "VTE_TYPE_TERMINAL")
8)
9
10;; Enumerations and flags ...
11
12(define-enum TerminalEraseBinding
13  (in-module "Vte")
14  (c-name "VteTerminalEraseBinding")
15  (gtype-id "VTE_TYPE_TERMINAL_ERASE_BINDING")
16  (values
17    '("auto" "VTE_ERASE_AUTO")
18    '("ascii-backspace" "VTE_ERASE_ASCII_BACKSPACE")
19    '("ascii-delete" "VTE_ERASE_ASCII_DELETE")
20    '("delete-sequence" "VTE_ERASE_DELETE_SEQUENCE")
21  )
22)
23
24(define-enum TerminalAntiAlias
25  (in-module "Vte")
26  (c-name "VteTerminalAntiAlias")
27  (gtype-id "VTE_TYPE_TERMINAL_ANTI_ALIAS")
28  (values
29    '("use-default" "VTE_ANTI_ALIAS_USE_DEFAULT")
30    '("force-enable" "VTE_ANTI_ALIAS_FORCE_ENABLE")
31    '("force-disable" "VTE_ANTI_ALIAS_FORCE_DISABLE")
32  )
33)
34
35(define-enum TerminalCursorBlinkMode
36  (in-module "Vte")
37  (c-name "VteTerminalCursorBlinkMode")
38  (gtype-id "VTE_TYPE_TERMINAL_CURSOR_BLINK_MODE")
39  (values
40    '("system" "VTE_CURSOR_BLINK_SYSTEM")
41    '("on" "VTE_CURSOR_BLINK_ON")
42    '("off" "VTE_CURSOR_BLINK_OFF")
43  )
44)
45
46(define-enum TerminalCursorShape
47  (in-module "Vte")
48  (c-name "VteTerminalCursorShape")
49  (gtype-id "VTE_TYPE_TERMINAL_CURSOR_SHAPE")
50  (values
51    '("block" "VTE_CURSOR_SHAPE_BLOCK")
52    '("ibeam" "VTE_CURSOR_SHAPE_IBEAM")
53    '("underline" "VTE_CURSOR_SHAPE_UNDERLINE")
54  )
55)
56
57
58;; From vte.h
59
60(define-function vte_terminal_get_type
61  (c-name "vte_terminal_get_type")
62  (return-type "GType")
63)
64
65(define-function vte_terminal_new
66  (c-name "vte_terminal_new")
67  (is-constructor-of "VteTerminal")
68  (return-type "GtkWidget*")
69)
70
71(define-method fork_command
72  (of-object "VteTerminal")
73  (c-name "vte_terminal_fork_command")
74  (return-type "pid_t")
75  (parameters
76    '("const-char*" "command")
77    '("char**" "argv")
78    '("char**" "envv")
79    '("const-char*" "directory")
80    '("gboolean" "lastlog")
81    '("gboolean" "utmp")
82    '("gboolean" "wtmp")
83  )
84)
85
86(define-method forkpty
87  (of-object "VteTerminal")
88  (c-name "vte_terminal_forkpty")
89  (return-type "pid_t")
90  (parameters
91    '("char**" "envv")
92    '("const-char*" "directory")
93    '("gboolean" "lastlog")
94    '("gboolean" "utmp")
95    '("gboolean" "wtmp")
96  )
97)
98
99(define-method feed
100  (of-object "VteTerminal")
101  (c-name "vte_terminal_feed")
102  (return-type "none")
103  (parameters
104    '("const-char*" "data")
105    '("glong" "length" (default "-1"))
106  )
107)
108
109(define-method feed_child
110  (of-object "VteTerminal")
111  (c-name "vte_terminal_feed_child")
112  (return-type "none")
113  (parameters
114    '("const-char*" "text")
115    '("glong" "length" (default "-1"))
116  )
117)
118
119(define-method feed_child_binary
120  (of-object "VteTerminal")
121  (c-name "vte_terminal_feed_child_binary")
122  (return-type "none")
123  (parameters
124    '("const-char*" "data")
125    '("glong" "length" (default "-1"))
126  )
127)
128
129(define-method copy_clipboard
130  (of-object "VteTerminal")
131  (c-name "vte_terminal_copy_clipboard")
132  (return-type "none")
133)
134
135(define-method paste_clipboard
136  (of-object "VteTerminal")
137  (c-name "vte_terminal_paste_clipboard")
138  (return-type "none")
139)
140
141(define-method copy_primary
142  (of-object "VteTerminal")
143  (c-name "vte_terminal_copy_primary")
144  (return-type "none")
145)
146
147(define-method paste_primary
148  (of-object "VteTerminal")
149  (c-name "vte_terminal_paste_primary")
150  (return-type "none")
151)
152
153(define-method select_all
154  (of-object "VteTerminal")
155  (c-name "vte_terminal_select_all")
156  (return-type "none")
157)
158
159(define-method select_none
160  (of-object "VteTerminal")
161  (c-name "vte_terminal_select_none")
162  (return-type "none")
163)
164
165(define-method set_size
166  (of-object "VteTerminal")
167  (c-name "vte_terminal_set_size")
168  (return-type "none")
169  (parameters
170    '("glong" "columns")
171    '("glong" "rows")
172  )
173)
174
175(define-method set_audible_bell
176  (of-object "VteTerminal")
177  (c-name "vte_terminal_set_audible_bell")
178  (return-type "none")
179  (parameters
180    '("gboolean" "is_audible")
181  )
182)
183
184(define-method get_audible_bell
185  (of-object "VteTerminal")
186  (c-name "vte_terminal_get_audible_bell")
187  (return-type "gboolean")
188)
189
190(define-method set_visible_bell
191  (of-object "VteTerminal")
192  (c-name "vte_terminal_set_visible_bell")
193  (return-type "none")
194  (parameters
195    '("gboolean" "is_visible")
196  )
197)
198
199(define-method get_visible_bell
200  (of-object "VteTerminal")
201  (c-name "vte_terminal_get_visible_bell")
202  (return-type "gboolean")
203)
204
205(define-method set_scroll_background
206  (of-object "VteTerminal")
207  (c-name "vte_terminal_set_scroll_background")
208  (return-type "none")
209  (parameters
210    '("gboolean" "scroll")
211  )
212)
213
214(define-method set_scroll_on_output
215  (of-object "VteTerminal")
216  (c-name "vte_terminal_set_scroll_on_output")
217  (return-type "none")
218  (parameters
219    '("gboolean" "scroll")
220  )
221)
222
223(define-method set_scroll_on_keystroke
224  (of-object "VteTerminal")
225  (c-name "vte_terminal_set_scroll_on_keystroke")
226  (return-type "none")
227  (parameters
228    '("gboolean" "scroll")
229  )
230)
231
232(define-method set_color_dim
233  (of-object "VteTerminal")
234  (c-name "vte_terminal_set_color_dim")
235  (return-type "none")
236  (parameters
237    '("const-GdkColor*" "dim")
238  )
239)
240
241(define-method set_color_bold
242  (of-object "VteTerminal")
243  (c-name "vte_terminal_set_color_bold")
244  (return-type "none")
245  (parameters
246    '("const-GdkColor*" "bold")
247  )
248)
249
250(define-method set_color_foreground
251  (of-object "VteTerminal")
252  (c-name "vte_terminal_set_color_foreground")
253  (return-type "none")
254  (parameters
255    '("const-GdkColor*" "foreground")
256  )
257)
258
259(define-method set_color_background
260  (of-object "VteTerminal")
261  (c-name "vte_terminal_set_color_background")
262  (return-type "none")
263  (parameters
264    '("const-GdkColor*" "background")
265  )
266)
267
268(define-method set_color_cursor
269  (of-object "VteTerminal")
270  (c-name "vte_terminal_set_color_cursor")
271  (return-type "none")
272  (parameters
273    '("const-GdkColor*" "cursor_background")
274  )
275)
276
277(define-method set_color_highlight
278  (of-object "VteTerminal")
279  (c-name "vte_terminal_set_color_highlight")
280  (return-type "none")
281  (parameters
282    '("const-GdkColor*" "highlight_background")
283  )
284)
285
286(define-method set_colors
287  (of-object "VteTerminal")
288  (c-name "vte_terminal_set_colors")
289  (return-type "none")
290  (parameters
291    '("const-GdkColor*" "foreground")
292    '("const-GdkColor*" "background")
293    '("const-GdkColor*" "palette")
294    '("glong" "palette_size")
295  )
296)
297
298(define-method set_default_colors
299  (of-object "VteTerminal")
300  (c-name "vte_terminal_set_default_colors")
301  (return-type "none")
302)
303
304(define-method set_background_image
305  (of-object "VteTerminal")
306  (c-name "vte_terminal_set_background_image")
307  (return-type "none")
308  (parameters
309    '("GdkPixbuf*" "image")
310  )
311)
312
313(define-method set_background_image_file
314  (of-object "VteTerminal")
315  (c-name "vte_terminal_set_background_image_file")
316  (return-type "none")
317  (parameters
318    '("const-char*" "path")
319  )
320)
321
322(define-method set_background_tint_color
323  (of-object "VteTerminal")
324  (c-name "vte_terminal_set_background_tint_color")
325  (return-type "none")
326  (parameters
327    '("const-GdkColor*" "color")
328  )
329)
330
331(define-method set_background_saturation
332  (of-object "VteTerminal")
333  (c-name "vte_terminal_set_background_saturation")
334  (return-type "none")
335  (parameters
336    '("double" "saturation")
337  )
338)
339
340(define-method set_background_transparent
341  (of-object "VteTerminal")
342  (c-name "vte_terminal_set_background_transparent")
343  (return-type "none")
344  (parameters
345    '("gboolean" "transparent")
346  )
347)
348
349(define-method set_opacity
350  (of-object "VteTerminal")
351  (c-name "vte_terminal_set_opacity")
352  (return-type "none")
353  (parameters
354    '("guint16" "opacity")
355  )
356)
357
358(define-method set_cursor_blinks
359  (of-object "VteTerminal")
360  (c-name "vte_terminal_set_cursor_blinks")
361  (return-type "none")
362  (parameters
363    '("gboolean" "blink")
364  )
365)
366
367(define-method set_cursor_blink_mode
368  (of-object "VteTerminal")
369  (c-name "vte_terminal_set_cursor_blink_mode")
370  (return-type "none")
371  (parameters
372    '("VteTerminalCursorBlinkMode" "mode")
373  )
374)
375
376(define-method get_cursor_blink_mode
377  (of-object "VteTerminal")
378  (c-name "vte_terminal_get_cursor_blink_mode")
379  (return-type "VteTerminalCursorBlinkMode")
380)
381
382(define-method set_cursor_shape
383  (of-object "VteTerminal")
384  (c-name "vte_terminal_set_cursor_shape")
385  (return-type "none")
386  (parameters
387    '("VteTerminalCursorShape" "shape")
388  )
389)
390
391(define-method get_cursor_shape
392  (of-object "VteTerminal")
393  (c-name "vte_terminal_get_cursor_shape")
394  (return-type "VteTerminalCursorShape")
395)
396
397(define-method set_scrollback_lines
398  (of-object "VteTerminal")
399  (c-name "vte_terminal_set_scrollback_lines")
400  (return-type "none")
401  (parameters
402    '("glong" "lines")
403  )
404)
405
406(define-method im_append_menuitems
407  (of-object "VteTerminal")
408  (c-name "vte_terminal_im_append_menuitems")
409  (return-type "none")
410  (parameters
411    '("GtkMenuShell*" "menushell")
412  )
413)
414
415(define-method set_font
416  (of-object "VteTerminal")
417  (c-name "vte_terminal_set_font")
418  (return-type "none")
419  (parameters
420    '("const-PangoFontDescription*" "font_desc")
421  )
422)
423
424(define-method set_font_full
425  (of-object "VteTerminal")
426  (c-name "vte_terminal_set_font_full")
427  (return-type "none")
428  (parameters
429    '("const-PangoFontDescription*" "font_desc")
430    '("VteTerminalAntiAlias" "antialias")
431  )
432)
433
434(define-method set_font_from_string
435  (of-object "VteTerminal")
436  (c-name "vte_terminal_set_font_from_string")
437  (return-type "none")
438  (parameters
439    '("const-char*" "name")
440  )
441)
442
443(define-method set_font_from_string_full
444  (of-object "VteTerminal")
445  (c-name "vte_terminal_set_font_from_string_full")
446  (return-type "none")
447  (parameters
448    '("const-char*" "name")
449    '("VteTerminalAntiAlias" "antialias")
450  )
451)
452
453(define-method get_font
454  (of-object "VteTerminal")
455  (c-name "vte_terminal_get_font")
456  (return-type "const-PangoFontDescription*")
457)
458
459(define-method get_using_xft
460  (of-object "VteTerminal")
461  (c-name "vte_terminal_get_using_xft")
462  (return-type "gboolean")
463)
464
465(define-method set_allow_bold
466  (of-object "VteTerminal")
467  (c-name "vte_terminal_set_allow_bold")
468  (return-type "none")
469  (parameters
470    '("gboolean" "allow_bold")
471  )
472)
473
474(define-method get_allow_bold
475  (of-object "VteTerminal")
476  (c-name "vte_terminal_get_allow_bold")
477  (return-type "gboolean")
478)
479
480(define-method get_has_selection
481  (of-object "VteTerminal")
482  (c-name "vte_terminal_get_has_selection")
483  (return-type "gboolean")
484)
485
486(define-method set_word_chars
487  (of-object "VteTerminal")
488  (c-name "vte_terminal_set_word_chars")
489  (return-type "none")
490  (parameters
491    '("const-char*" "spec")
492  )
493)
494
495(define-method is_word_char
496  (of-object "VteTerminal")
497  (c-name "vte_terminal_is_word_char")
498  (return-type "gboolean")
499  (parameters
500    '("gunichar" "c")
501  )
502)
503
504(define-method set_backspace_binding
505  (of-object "VteTerminal")
506  (c-name "vte_terminal_set_backspace_binding")
507  (return-type "none")
508  (parameters
509    '("VteTerminalEraseBinding" "binding")
510  )
511)
512
513(define-method set_delete_binding
514  (of-object "VteTerminal")
515  (c-name "vte_terminal_set_delete_binding")
516  (return-type "none")
517  (parameters
518    '("VteTerminalEraseBinding" "binding")
519  )
520)
521
522(define-method set_mouse_autohide
523  (of-object "VteTerminal")
524  (c-name "vte_terminal_set_mouse_autohide")
525  (return-type "none")
526  (parameters
527    '("gboolean" "setting")
528  )
529)
530
531(define-method get_mouse_autohide
532  (of-object "VteTerminal")
533  (c-name "vte_terminal_get_mouse_autohide")
534  (return-type "gboolean")
535)
536
537(define-method reset
538  (of-object "VteTerminal")
539  (c-name "vte_terminal_reset")
540  (return-type "none")
541  (parameters
542    '("gboolean" "full")
543    '("gboolean" "clear_history")
544  )
545)
546
547(define-method get_text
548  (of-object "VteTerminal")
549  (c-name "vte_terminal_get_text")
550  (return-type "char*")
551  (parameters
552    '("gboolean(*" "is_selected")
553  )
554)
555
556(define-method get_text_include_trailing_spaces
557  (of-object "VteTerminal")
558  (c-name "vte_terminal_get_text_include_trailing_spaces")
559  (return-type "char*")
560  (parameters
561    '("gboolean(*" "is_selected")
562  )
563)
564
565(define-method get_text_range
566  (of-object "VteTerminal")
567  (c-name "vte_terminal_get_text_range")
568  (return-type "char*")
569  (parameters
570    '("glong" "start_row")
571    '("glong" "start_col")
572    '("glong" "end_row")
573    '("glong" "end_col")
574    '("gboolean(*" "is_selected")
575  )
576)
577
578(define-method get_cursor_position
579  (of-object "VteTerminal")
580  (c-name "vte_terminal_get_cursor_position")
581  (return-type "none")
582  (parameters
583    '("glong*" "column")
584    '("glong*" "row")
585  )
586)
587
588(define-method match_clear_all
589  (of-object "VteTerminal")
590  (c-name "vte_terminal_match_clear_all")
591  (return-type "none")
592)
593
594(define-method match_add
595  (of-object "VteTerminal")
596  (c-name "vte_terminal_match_add")
597  (return-type "int")
598  (parameters
599    '("const-char*" "match")
600  )
601)
602
603(define-method match_add_gregex
604  (of-object "VteTerminal")
605  (c-name "vte_terminal_match_add_gregex")
606  (return-type "int")
607  (parameters
608    '("GRegex*" "regex")
609    '("GRegexMatchFlags" "flags" (default 0))
610  )
611)
612
613(define-method match_set_cursor
614  (of-object "VteTerminal")
615  (c-name "vte_terminal_match_set_cursor")
616  (return-type "none")
617  (parameters
618    '("int" "tag")
619    '("GdkCursor*" "cursor")
620  )
621)
622
623(define-method match_set_cursor_type
624  (of-object "VteTerminal")
625  (c-name "vte_terminal_match_set_cursor_type")
626  (return-type "none")
627  (parameters
628    '("int" "tag")
629    '("GdkCursorType" "cursor_type")
630  )
631)
632
633(define-method match_set_cursor_name
634  (of-object "VteTerminal")
635  (c-name "vte_terminal_match_set_cursor_name")
636  (return-type "none")
637  (parameters
638    '("int" "tag")
639    '("const-char*" "cursor_name")
640  )
641)
642
643(define-method match_remove
644  (of-object "VteTerminal")
645  (c-name "vte_terminal_match_remove")
646  (return-type "none")
647  (parameters
648    '("int" "tag")
649  )
650)
651
652(define-method match_check
653  (of-object "VteTerminal")
654  (c-name "vte_terminal_match_check")
655  (return-type "char*")
656  (parameters
657    '("glong" "column")
658    '("glong" "row")
659    '("int*" "tag")
660  )
661)
662
663(define-method set_emulation
664  (of-object "VteTerminal")
665  (c-name "vte_terminal_set_emulation")
666  (return-type "none")
667  (parameters
668    '("const-char*" "emulation")
669  )
670)
671
672(define-method get_emulation
673  (of-object "VteTerminal")
674  (c-name "vte_terminal_get_emulation")
675  (return-type "const-char*")
676)
677
678(define-method get_default_emulation
679  (of-object "VteTerminal")
680  (c-name "vte_terminal_get_default_emulation")
681  (return-type "const-char*")
682)
683
684(define-method set_encoding
685  (of-object "VteTerminal")
686  (c-name "vte_terminal_set_encoding")
687  (return-type "none")
688  (parameters
689    '("const-char*" "codeset")
690  )
691)
692
693(define-method get_encoding
694  (of-object "VteTerminal")
695  (c-name "vte_terminal_get_encoding")
696  (return-type "const-char*")
697)
698
699(define-method get_status_line
700  (of-object "VteTerminal")
701  (c-name "vte_terminal_get_status_line")
702  (return-type "const-char*")
703)
704
705(define-method get_padding
706  (of-object "VteTerminal")
707  (c-name "vte_terminal_get_padding")
708  (return-type "none")
709  (parameters
710    '("int*" "xpad")
711    '("int*" "ypad")
712  )
713)
714
715(define-method set_pty
716  (of-object "VteTerminal")
717  (c-name "vte_terminal_set_pty")
718  (return-type "none")
719  (parameters
720    '("int" "pty_master")
721  )
722)
723
724(define-method get_pty
725  (of-object "VteTerminal")
726  (c-name "vte_terminal_get_pty")
727  (return-type "int")
728)
729
730(define-method get_adjustment
731  (of-object "VteTerminal")
732  (c-name "vte_terminal_get_adjustment")
733  (return-type "GtkAdjustment*")
734)
735
736(define-method get_char_width
737  (of-object "VteTerminal")
738  (c-name "vte_terminal_get_char_width")
739  (return-type "glong")
740)
741
742(define-method get_char_height
743  (of-object "VteTerminal")
744  (c-name "vte_terminal_get_char_height")
745  (return-type "glong")
746)
747
748(define-method get_char_descent
749  (of-object "VteTerminal")
750  (c-name "vte_terminal_get_char_descent")
751  (return-type "glong")
752)
753
754(define-method get_char_ascent
755  (of-object "VteTerminal")
756  (c-name "vte_terminal_get_char_ascent")
757  (return-type "glong")
758)
759
760(define-method get_row_count
761  (of-object "VteTerminal")
762  (c-name "vte_terminal_get_row_count")
763  (return-type "glong")
764)
765
766(define-method get_column_count
767  (of-object "VteTerminal")
768  (c-name "vte_terminal_get_column_count")
769  (return-type "glong")
770)
771
772(define-method get_window_title
773  (of-object "VteTerminal")
774  (c-name "vte_terminal_get_window_title")
775  (return-type "const-char*")
776)
777
778(define-method get_icon_title
779  (of-object "VteTerminal")
780  (c-name "vte_terminal_get_icon_title")
781  (return-type "const-char*")
782)
783
784(define-method get_child_exit_status
785  (of-object "VteTerminal")
786  (c-name "vte_terminal_get_child_exit_status")
787  (return-type "int")
788)
789
790
791
792;; From vtetypebuiltins.h
793
794(define-function vte_terminal_erase_binding_get_type
795  (c-name "vte_terminal_erase_binding_get_type")
796  (return-type "GType")
797)
798
799(define-function vte_terminal_anti_alias_get_type
800  (c-name "vte_terminal_anti_alias_get_type")
801  (return-type "GType")
802)
803
804(define-function vte_terminal_cursor_blink_mode_get_type
805  (c-name "vte_terminal_cursor_blink_mode_get_type")
806  (return-type "GType")
807)
808
809(define-function vte_terminal_cursor_shape_get_type
810  (c-name "vte_terminal_cursor_shape_get_type")
811  (return-type "GType")
812)
813
814
815
816;; From vteversion.h
817
818
819