medit/moo/moopython/mooterm-pygtk.defs

134 lines
2.9 KiB
Plaintext
Raw Normal View History

2005-07-22 02:50:25 -07:00
;;
;; mooterm/mooterm-pygtk.defs
;;
; object definitions ...
(define-object Term
2005-07-26 04:12:40 -07:00
2005-07-22 02:50:25 -07:00
(in-module "Moo")
(parent "GtkWidget")
(c-name "MooTerm")
(gtype-id "MOO_TYPE_TERM")
)
2005-07-31 07:53:10 -07:00
(define-boxed TermCommand
(in-module "Moo")
(c-name "MooTermCommand")
(gtype-id "MOO_TYPE_TERM_COMMAND")
(copy-func "moo_term_command_copy")
(release-func "moo_term_command_free")
(fields
'("char*" "cmd_line")
'("char**" "argv")
)
)
2005-07-26 04:12:40 -07:00
(define-boxed TermProfile
(in-module "Moo")
(c-name "MooTermProfile")
(gtype-id "MOO_TYPE_TERM_PROFILE")
(copy-func "moo_term_profile_copy")
(release-func "moo_term_profile_free")
(fields
'("char*" "name")
2005-07-31 07:53:10 -07:00
'("MooTermCommand*" "cmd")
2005-07-26 04:12:40 -07:00
'("char**" "envp")
'("char*" "working_dir")
)
)
;; MooTerm methods
2005-07-22 02:50:25 -07:00
(define-function moo_term_new
(c-name "moo_term_new")
(is-constructor-of "MooTerm")
(return-type "MooTerm*")
(parameters
'("guint" "width")
'("guint" "height")
)
)
(define-method feed
(of-object "MooTerm")
(c-name "moo_term_feed")
(return-type "none")
(parameters
'("const-gchar*" "data")
'("int" "len" (default "-1"))
)
)
(define-method feed_child
(of-object "MooTerm")
(c-name "moo_term_feed_child")
(return-type "none")
(parameters
'("const-gchar*" "data")
'("int" "len" (default "-1"))
)
)
2005-07-31 07:53:10 -07:00
(define-method fork_command_line
(of-object "MooTerm")
(c-name "moo_term_fork_command_line")
(return-type "gboolean")
(parameters
'("const-gchar*" "cmd_line")
'("const-gchar*" "working_dir" (null-ok) (default "NULL"))
'("char**" "envp" (null-ok) (default "NULL"))
'("GError**" "error" (null-ok) (default "NULL"))
)
)
(define-method fork_argv
(of-object "MooTerm")
(c-name "moo_term_fork_argv")
(return-type "gboolean")
(parameters
'("char**" "argv")
'("const-gchar*" "working_dir" (null-ok) (default "NULL"))
'("char**" "envp" (null-ok) (default "NULL"))
'("GError**" "error" (null-ok) (default "NULL"))
)
)
2005-07-22 02:50:25 -07:00
(define-method fork_command
(of-object "MooTerm")
(c-name "moo_term_fork_command")
(return-type "gboolean")
(parameters
2005-07-31 07:53:10 -07:00
'("const-MooTermCommand*" "cmd")
2005-07-22 02:50:25 -07:00
'("const-gchar*" "working_dir" (null-ok) (default "NULL"))
'("char**" "envp" (null-ok) (default "NULL"))
2005-07-31 07:53:10 -07:00
'("GError**" "error" (null-ok) (default "NULL"))
2005-07-22 02:50:25 -07:00
)
)
2005-07-26 04:12:40 -07:00
;; MooTermProfile
(define-function moo_term_profile_new
(c-name "moo_term_profile_new")
(is-constructor-of "MooTermProfile")
(return-type "MooTermProfile*")
(parameters
'("char*" "name" (null-ok) (default "NULL"))
2005-07-31 07:53:10 -07:00
'("const-MooTermCommand*" "cmd" (null-ok) (default "NULL"))
2005-07-26 04:12:40 -07:00
'("char**" "envp" (null-ok) (default "NULL"))
'("char*" "working_dir" (null-ok) (default "NULL"))
)
)
2005-07-31 07:53:10 -07:00
(define-function moo_term_command_new
(c-name "moo_term_command_new")
(is-constructor-of "MooTermCommand")
(return-type "MooTermCommand*")
(parameters
'("char*" "cmd_line" (null-ok) (default "NULL"))
'("char**" "argv" (null-ok) (default "NULL"))
)
)