medit/moo/moopython/mooterm-pygtk.defs

684 lines
13 KiB
Plaintext

;; Hand-edited
(define-object Term
(in-module "Moo")
(parent "GtkWidget")
(c-name "MooTerm")
(gtype-id "MOO_TYPE_TERM")
)
(define-object TermTag
(in-module "Moo")
(parent "GObject")
(c-name "MooTermTag")
(gtype-id "MOO_TYPE_TERM_TAG")
)
(define-object TermWindow
(in-module "Moo")
(parent "MooWindow")
(c-name "MooTermWindow")
(gtype-id "MOO_TYPE_TERM_WINDOW")
)
(define-boxed TermIter
(in-module "Moo")
(c-name "MooTermIter")
(gtype-id "MOO_TYPE_TERM_ITER")
(copy-func "moo_term_iter_copy")
(release-func "moo_term_iter_free")
)
;; Enumerations and flags ...
(define-enum TermEraseBinding
(in-module "Moo")
(c-name "MooTermEraseBinding")
(gtype-id "MOO_TYPE_TERM_ERASE_BINDING")
(values
'("auto" "MOO_TERM_ERASE_AUTO")
'("ascii-backspace" "MOO_TERM_ERASE_ASCII_BACKSPACE")
'("ascii-delete" "MOO_TERM_ERASE_ASCII_DELETE")
'("delete-sequence" "MOO_TERM_ERASE_DELETE_SEQUENCE")
)
)
(define-flags TermTextAttrMask
(in-module "Moo")
(c-name "MooTermTextAttrMask")
(gtype-id "MOO_TYPE_TERM_TEXT_ATTR_MASK")
(values
'("reverse" "MOO_TERM_TEXT_REVERSE")
'("blink" "MOO_TERM_TEXT_BLINK")
'("foreground" "MOO_TERM_TEXT_FOREGROUND")
'("background" "MOO_TERM_TEXT_BACKGROUND")
'("bold" "MOO_TERM_TEXT_BOLD")
'("underline" "MOO_TERM_TEXT_UNDERLINE")
)
)
(define-enum TermTextColor
(in-module "Moo")
(c-name "MooTermTextColor")
(gtype-id "MOO_TYPE_TERM_TEXT_COLOR")
(values
'("black" "MOO_TERM_BLACK")
'("red" "MOO_TERM_RED")
'("green" "MOO_TERM_GREEN")
'("yellow" "MOO_TERM_YELLOW")
'("blue" "MOO_TERM_BLUE")
'("magenta" "MOO_TERM_MAGENTA")
'("cyan" "MOO_TERM_CYAN")
'("white" "MOO_TERM_WHITE")
)
)
;; From mooterm-text.h
(define-method get_line_count
(of-object "MooTerm")
(c-name "moo_term_get_line_count")
(return-type "guint")
)
(define-method get_line
(of-object "MooTerm")
(c-name "moo_term_get_line")
(return-type "MooTermLine*")
(parameters
'("guint" "line_no")
)
)
(define-method set_line_data
(of-object "MooTerm")
(c-name "moo_term_set_line_data")
(return-type "none")
(parameters
'("MooTermLine*" "line")
'("const-char*" "key")
'("gpointer" "data")
)
)
(define-method set_line_data_full
(of-object "MooTerm")
(c-name "moo_term_set_line_data_full")
(return-type "none")
(parameters
'("MooTermLine*" "line")
'("const-char*" "key")
'("gpointer" "data")
'("GDestroyNotify" "destroy")
)
)
(define-method get_line_data
(of-object "MooTerm")
(c-name "moo_term_get_line_data")
(return-type "gpointer")
(parameters
'("MooTermLine*" "line")
'("const-char*" "key")
)
)
(define-method create_tag
(of-object "MooTerm")
(c-name "moo_term_create_tag")
(return-type "MooTermTag*")
(parameters
'("const-char*" "name")
)
)
(define-method get_tag
(of-object "MooTerm")
(c-name "moo_term_get_tag")
(return-type "MooTermTag*")
(parameters
'("const-char*" "name")
)
)
(define-method delete_tag
(of-object "MooTerm")
(c-name "moo_term_delete_tag")
(return-type "none")
(parameters
'("MooTermTag*" "tag")
)
)
(define-method get_tag_table
(of-object "MooTerm")
(c-name "moo_term_get_tag_table")
(return-type "MooTermTagTable*")
)
(define-method get_iter_at_line
(of-object "MooTerm")
(c-name "moo_term_get_iter_at_line")
(return-type "gboolean")
(parameters
'("MooTermIter*" "iter")
'("guint" "line")
)
)
(define-method get_iter_at_line_offset
(of-object "MooTerm")
(c-name "moo_term_get_iter_at_line_offset")
(return-type "gboolean")
(parameters
'("MooTermIter*" "iter")
'("guint" "line")
'("guint" "offset")
)
)
(define-method get_iter_at_cursor
(of-object "MooTerm")
(c-name "moo_term_get_iter_at_cursor")
(return-type "none")
(parameters
'("MooTermIter*" "iter")
)
)
(define-method forward_to_line_end
(of-object "MooTermIter")
(c-name "moo_term_iter_forward_to_line_end")
(return-type "none")
)
(define-method apply_tag
(of-object "MooTerm")
(c-name "moo_term_apply_tag")
(return-type "none")
(parameters
'("MooTermTag*" "tag")
'("MooTermIter*" "start")
'("MooTermIter*" "end")
)
)
(define-method remove_tag
(of-object "MooTerm")
(c-name "moo_term_remove_tag")
(return-type "none")
(parameters
'("MooTermTag*" "tag")
'("MooTermIter*" "start")
'("MooTermIter*" "end")
)
)
(define-method has_tag
(of-object "MooTermIter")
(c-name "moo_term_iter_has_tag")
(return-type "gboolean")
(parameters
'("MooTermTag*" "tag")
)
)
(define-method get_tag_start
(of-object "MooTermIter")
(c-name "moo_term_iter_get_tag_start")
(return-type "gboolean")
(parameters
'("MooTermTag*" "tag")
)
)
(define-method get_tag_end
(of-object "MooTermIter")
(c-name "moo_term_iter_get_tag_end")
(return-type "gboolean")
(parameters
'("MooTermTag*" "tag")
)
)
(define-method window_to_buffer_coords
(of-object "MooTerm")
(c-name "moo_term_window_to_buffer_coords")
(return-type "none")
(parameters
'("int" "window_x")
'("int" "window_y")
'("int*" "buffer_x")
'("int*" "buffer_y")
)
)
(define-method get_iter_at_location
(of-object "MooTerm")
(c-name "moo_term_get_iter_at_location")
(return-type "none")
(parameters
'("MooTermIter*" "iter")
'("int" "x")
'("int" "y")
)
)
(define-method get_iter_at_pos
(of-object "MooTerm")
(c-name "moo_term_get_iter_at_pos")
(return-type "none")
(parameters
'("MooTermIter*" "iter")
'("int" "x")
'("int" "y")
)
)
(define-function moo_term_get_text
(c-name "moo_term_get_text")
(return-type "char*")
(parameters
'("MooTermIter*" "start")
'("MooTermIter*" "end")
)
)
;; From mooterm.h
(define-method set_adjustment
(of-object "MooTerm")
(c-name "moo_term_set_adjustment")
(return-type "none")
(parameters
'("GtkAdjustment*" "vadj")
)
)
(define-method fork_command
(of-object "MooTerm")
(c-name "moo_term_fork_command")
(return-type "gboolean")
(parameters
'("const-MooTermCommand*" "cmd")
'("const-char*" "working_dir")
'("char**" "envp")
'("GError**" "error")
)
)
(define-method fork_command_line
(of-object "MooTerm")
(c-name "moo_term_fork_command_line")
(return-type "gboolean")
(parameters
'("const-char*" "cmd_line")
'("const-char*" "working_dir")
'("char**" "envp")
'("GError**" "error")
)
)
(define-method fork_argv
(of-object "MooTerm")
(c-name "moo_term_fork_argv")
(return-type "gboolean")
(parameters
'("char**" "argv")
'("const-char*" "working_dir")
'("char**" "envp")
'("GError**" "error")
)
)
(define-method child_alive
(of-object "MooTerm")
(c-name "moo_term_child_alive")
(return-type "gboolean")
)
(define-method kill_child
(of-object "MooTerm")
(c-name "moo_term_kill_child")
(return-type "none")
)
(define-function moo_term_set_helper_directory
(c-name "moo_term_set_helper_directory")
(return-type "none")
(parameters
'("const-char*" "dir")
)
)
(define-method feed
(of-object "MooTerm")
(c-name "moo_term_feed")
(return-type "none")
(parameters
'("const-char*" "data")
'("int" "len")
)
)
(define-method feed_child
(of-object "MooTerm")
(c-name "moo_term_feed_child")
(return-type "none")
(parameters
'("const-char*" "string")
'("int" "len")
)
)
(define-method scroll_to_top
(of-object "MooTerm")
(c-name "moo_term_scroll_to_top")
(return-type "none")
)
(define-method scroll_to_bottom
(of-object "MooTerm")
(c-name "moo_term_scroll_to_bottom")
(return-type "none")
)
(define-method scroll_lines
(of-object "MooTerm")
(c-name "moo_term_scroll_lines")
(return-type "none")
(parameters
'("int" "lines")
)
)
(define-method scroll_pages
(of-object "MooTerm")
(c-name "moo_term_scroll_pages")
(return-type "none")
(parameters
'("int" "pages")
)
)
(define-method copy_clipboard
(of-object "MooTerm")
(c-name "moo_term_copy_clipboard")
(return-type "none")
(parameters
'("GdkAtom" "selection")
)
)
(define-method paste_clipboard
(of-object "MooTerm")
(c-name "moo_term_paste_clipboard")
(return-type "none")
(parameters
'("GdkAtom" "selection")
)
)
(define-method select_all
(of-object "MooTerm")
(c-name "moo_term_select_all")
(return-type "none")
)
(define-method get_selection
(of-object "MooTerm")
(c-name "moo_term_get_selection")
(return-type "char*")
)
(define-method get_content
(of-object "MooTerm")
(c-name "moo_term_get_content")
(return-type "char*")
)
(define-method ctrl_c
(of-object "MooTerm")
(c-name "moo_term_ctrl_c")
(return-type "none")
)
(define-method set_pointer_visible
(of-object "MooTerm")
(c-name "moo_term_set_pointer_visible")
(return-type "none")
(parameters
'("gboolean" "visible")
)
)
(define-method set_font_from_string
(of-object "MooTerm")
(c-name "moo_term_set_font_from_string")
(return-type "none")
(parameters
'("const-char*" "font")
)
)
(define-method set_cursor_blink_time
(of-object "MooTerm")
(c-name "moo_term_set_cursor_blink_time")
(return-type "none")
(parameters
'("guint" "ms")
)
)
(define-method reset
(of-object "MooTerm")
(c-name "moo_term_reset")
(return-type "none")
)
(define-method soft_reset
(of-object "MooTerm")
(c-name "moo_term_soft_reset")
(return-type "none")
)
(define-function moo_term_profile_new
(c-name "moo_term_profile_new")
(is-constructor-of "MooTermProfile")
(return-type "MooTermProfile*")
(parameters
'("const-char*" "name")
'("const-MooTermCommand*" "cmd")
'("char**" "envp")
'("const-char*" "working_dir")
)
)
(define-method copy
(of-object "MooTermProfile")
(c-name "moo_term_profile_copy")
(return-type "MooTermProfile*")
)
(define-method free
(of-object "MooTermProfile")
(c-name "moo_term_profile_free")
(return-type "none")
)
(define-function moo_term_profile_array_new
(c-name "moo_term_profile_array_new")
(is-constructor-of "MooTermProfileArray")
(return-type "MooTermProfileArray*")
)
(define-method add
(of-object "MooTermProfileArray")
(c-name "moo_term_profile_array_add")
(return-type "none")
(parameters
'("const-MooTermProfile*" "profile")
)
)
(define-method copy
(of-object "MooTermProfileArray")
(c-name "moo_term_profile_array_copy")
(return-type "MooTermProfileArray*")
)
(define-method free
(of-object "MooTermProfileArray")
(c-name "moo_term_profile_array_free")
(return-type "none")
)
(define-method get_profiles
(of-object "MooTerm")
(c-name "moo_term_get_profiles")
(return-type "MooTermProfileArray*")
)
(define-method get_profile
(of-object "MooTerm")
(c-name "moo_term_get_profile")
(return-type "MooTermProfile*")
(parameters
'("guint" "index")
)
)
(define-method set_profile
(of-object "MooTerm")
(c-name "moo_term_set_profile")
(return-type "none")
(parameters
'("guint" "index")
'("const-MooTermProfile*" "profile")
)
)
(define-method add_profile
(of-object "MooTerm")
(c-name "moo_term_add_profile")
(return-type "none")
(parameters
'("const-MooTermProfile*" "profile")
)
)
(define-method remove_profile
(of-object "MooTerm")
(c-name "moo_term_remove_profile")
(return-type "none")
(parameters
'("guint" "index")
)
)
(define-method set_default_profile
(of-object "MooTerm")
(c-name "moo_term_set_default_profile")
(return-type "none")
(parameters
'("int" "profile")
)
)
(define-method get_default_profile
(of-object "MooTerm")
(c-name "moo_term_get_default_profile")
(return-type "int")
)
(define-method start_default_profile
(of-object "MooTerm")
(c-name "moo_term_start_default_profile")
(return-type "gboolean")
(parameters
'("GError**" "error")
)
)
(define-method start_profile
(of-object "MooTerm")
(c-name "moo_term_start_profile")
(return-type "gboolean")
(parameters
'("int" "profile")
'("GError**" "error")
)
)
(define-function moo_term_command_new
(c-name "moo_term_command_new")
(is-constructor-of "MooTermCommand")
(return-type "MooTermCommand*")
(parameters
'("const-char*" "cmd_line")
'("char**" "argv")
)
)
(define-method copy
(of-object "MooTermCommand")
(c-name "moo_term_command_copy")
(return-type "MooTermCommand*")
)
(define-method free
(of-object "MooTermCommand")
(c-name "moo_term_command_free")
(return-type "none")
)
;; From mootermtag.h
(define-method set_attr
(of-object "MooTermTag")
(c-name "moo_term_tag_set_attr")
(return-type "none")
(parameters
'("MooTermTextAttr" "attr")
)
)
;; From mootermwindow.h
(define-function moo_term_window_new
(c-name "moo_term_window_new")
(is-constructor-of "MooTermWindow")
(return-type "GtkWidget*")
)
(define-method apply_settings
(of-object "MooTermWindow")
(c-name "moo_term_window_apply_settings")
(return-type "none")
)
(define-method get_term
(of-object "MooTermWindow")
(c-name "moo_term_window_get_term")
(return-type "MooTerm*")
)
(define-method set_term_type
(of-object "MooTermWindow")
(c-name "moo_term_window_set_term_type")
(return-type "none")
(parameters
'("GType" "type")
)
)