medit/moo/moopython/mooedit-pygtk.defs

1875 lines
37 KiB
Plaintext
Raw Normal View History

;; -*- scheme -*-
2005-06-22 11:20:32 -07:00
; object definitions ...
(define-object EditWindow
(in-module "Moo")
(parent "MooWindow")
(c-name "MooEditWindow")
(gtype-id "MOO_TYPE_EDIT_WINDOW")
2005-06-22 11:20:32 -07:00
)
(define-object Editor
(in-module "Moo")
(parent "GObject")
(c-name "MooEditor")
(gtype-id "MOO_TYPE_EDITOR")
2005-06-22 11:20:32 -07:00
)
(define-object Indenter
(in-module "Moo")
2005-06-22 11:20:32 -07:00
(parent "GObject")
(c-name "MooIndenter")
(gtype-id "MOO_TYPE_INDENTER")
2005-06-22 11:20:32 -07:00
)
2005-10-30 08:39:35 -08:00
(define-object LangMgr
(in-module "Moo")
(parent "GObject")
2005-10-30 08:39:35 -08:00
(c-name "MooLangMgr")
(gtype-id "MOO_TYPE_LANG_MGR")
2005-06-22 11:20:32 -07:00
)
(define-object Plugin
2005-06-22 11:20:32 -07:00
(in-module "Moo")
(parent "GObject")
(c-name "MooPlugin")
(gtype-id "MOO_TYPE_PLUGIN")
2005-06-22 11:20:32 -07:00
)
(define-object TextBuffer
2005-06-22 11:20:32 -07:00
(in-module "Moo")
(parent "GtkTextBuffer")
(c-name "MooTextBuffer")
(gtype-id "MOO_TYPE_TEXT_BUFFER")
2005-06-22 11:20:32 -07:00
)
(define-object TextView
2005-06-22 11:20:32 -07:00
(in-module "Moo")
(parent "GtkTextView")
(c-name "MooTextView")
(gtype-id "MOO_TYPE_TEXT_VIEW")
2005-06-22 11:20:32 -07:00
)
(define-object LineView
2005-06-22 11:20:32 -07:00
(in-module "Moo")
(parent "MooTextView")
(c-name "MooLineView")
(gtype-id "MOO_TYPE_LINE_VIEW")
2005-06-22 11:20:32 -07:00
)
(define-object CmdView
2005-06-22 11:20:32 -07:00
(in-module "Moo")
(parent "MooLineView")
(c-name "MooCmdView")
(gtype-id "MOO_TYPE_CMD_VIEW")
)
(define-object Edit
(in-module "Moo")
(parent "MooTextView")
(c-name "MooEdit")
(gtype-id "MOO_TYPE_EDIT")
2005-06-22 11:20:32 -07:00
)
;; Enumerations and flags ...
(define-flags TextSearchOptions
(in-module "Moo")
(c-name "MooTextSearchOptions")
(gtype-id "MOO_TYPE_TEXT_SEARCH_OPTIONS")
2005-06-22 11:20:32 -07:00
(values
'("backwards" "MOO_TEXT_SEARCH_BACKWARDS")
'("case-insensitive" "MOO_TEXT_SEARCH_CASE_INSENSITIVE")
'("regex" "MOO_TEXT_SEARCH_REGEX")
2005-06-22 11:20:32 -07:00
)
)
(define-flags TextStyleMask
(in-module "Moo")
(c-name "MooTextStyleMask")
(gtype-id "MOO_TYPE_TEXT_STYLE_MASK")
2005-06-22 11:20:32 -07:00
(values
'("foreground" "MOO_TEXT_STYLE_FOREGROUND")
'("background" "MOO_TEXT_STYLE_BACKGROUND")
'("bold" "MOO_TEXT_STYLE_BOLD")
'("italic" "MOO_TEXT_STYLE_ITALIC")
'("underline" "MOO_TEXT_STYLE_UNDERLINE")
'("strikethrough" "MOO_TEXT_STYLE_STRIKETHROUGH")
2005-06-22 11:20:32 -07:00
)
)
;; From ../mooedit/moocmdview.h
(define-function moo_cmd_view_get_type
(c-name "moo_cmd_view_get_type")
(return-type "GType")
2005-06-22 11:20:32 -07:00
)
(define-function moo_cmd_view_new
(c-name "moo_cmd_view_new")
(is-constructor-of "MooCmdView")
(return-type "GtkWidget*")
2005-06-22 11:20:32 -07:00
)
(define-method run_command
(of-object "MooCmdView")
(c-name "moo_cmd_view_run_command")
(return-type "gboolean")
(parameters
'("const-char*" "cmd")
2005-06-22 11:20:32 -07:00
)
)
(define-method abort
(of-object "MooCmdView")
(c-name "moo_cmd_view_abort")
(return-type "none")
2005-06-22 11:20:32 -07:00
)
;; From ../mooedit/mooedit.h
(define-function moo_edit_get_type
(c-name "moo_edit_get_type")
(return-type "GType")
2005-06-22 11:20:32 -07:00
)
(define-function moo_edit_doc_status_get_type
(c-name "moo_edit_doc_status_get_type")
(return-type "GType")
)
2005-06-22 11:20:32 -07:00
(define-function moo_edit_on_external_changes_get_type
(c-name "moo_edit_on_external_changes_get_type")
(return-type "GType")
)
2005-06-22 11:20:32 -07:00
(define-function moo_edit_file_info_get_type
(c-name "moo_edit_file_info_get_type")
2005-06-22 11:20:32 -07:00
(return-type "GType")
)
(define-method get_filename
(of-object "MooEdit")
(c-name "moo_edit_get_filename")
(return-type "const-char*")
2005-06-22 11:20:32 -07:00
)
(define-method get_basename
(of-object "MooEdit")
(c-name "moo_edit_get_basename")
(return-type "const-char*")
)
(define-method get_display_filename
(of-object "MooEdit")
(c-name "moo_edit_get_display_filename")
(return-type "const-char*")
)
(define-method get_display_basename
(of-object "MooEdit")
(c-name "moo_edit_get_display_basename")
(return-type "const-char*")
)
(define-method get_encoding
(of-object "MooEdit")
(c-name "moo_edit_get_encoding")
(return-type "const-char*")
)
(define-method is_empty
(of-object "MooEdit")
(c-name "moo_edit_is_empty")
2005-06-22 11:20:32 -07:00
(return-type "gboolean")
)
(define-method set_modified
(of-object "MooEdit")
(c-name "moo_edit_set_modified")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("gboolean" "modified")
2005-06-22 11:20:32 -07:00
)
)
(define-method set_clean
(of-object "MooEdit")
(c-name "moo_edit_set_clean")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("gboolean" "clean")
2005-06-22 11:20:32 -07:00
)
)
(define-method get_status
(of-object "MooEdit")
(c-name "moo_edit_get_status")
(return-type "MooEditStatus")
)
(define-method status_changed
(of-object "MooEdit")
(c-name "moo_edit_status_changed")
2005-06-22 11:20:32 -07:00
(return-type "none")
)
(define-method get_readonly
(of-object "MooEdit")
(c-name "moo_edit_get_readonly")
(return-type "gboolean")
)
(define-method set_readonly
(of-object "MooEdit")
(c-name "moo_edit_set_readonly")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("gboolean" "readonly")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_edit_file_info_new
(c-name "moo_edit_file_info_new")
(is-constructor-of "MooEditFileInfo")
(return-type "MooEditFileInfo*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "filename")
'("const-char*" "encoding")
2005-06-22 11:20:32 -07:00
)
)
(define-method copy
(of-object "MooEditFileInfo")
(c-name "moo_edit_file_info_copy")
(return-type "MooEditFileInfo*")
)
(define-method free
(of-object "MooEditFileInfo")
(c-name "moo_edit_file_info_free")
(return-type "none")
2005-06-22 11:20:32 -07:00
)
(define-method set_lang
(of-object "MooEdit")
(c-name "moo_edit_set_lang")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("MooLang*" "lang")
2005-06-22 11:20:32 -07:00
)
)
(define-method get_lang
(of-object "MooEdit")
(c-name "moo_edit_get_lang")
(return-type "MooLang*")
2005-06-22 11:20:32 -07:00
)
(define-method set_var
(of-object "MooEdit")
(c-name "moo_edit_set_var")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("const-char*" "name")
'("const-char*" "value")
2005-06-22 11:20:32 -07:00
)
)
(define-method get_var
(of-object "MooEdit")
(c-name "moo_edit_get_var")
(return-type "const-char*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "name")
2005-06-22 11:20:32 -07:00
)
)
;; From ../mooedit/mooeditfileops.h
(define-function moo_edit_loader_get_default
(c-name "moo_edit_loader_get_default")
(return-type "MooEditLoader*")
2005-06-22 11:20:32 -07:00
)
(define-function moo_edit_saver_get_default
(c-name "moo_edit_saver_get_default")
(return-type "MooEditSaver*")
2005-06-22 11:20:32 -07:00
)
(define-method ref
(of-object "MooEditLoader")
(c-name "moo_edit_loader_ref")
(return-type "MooEditLoader*")
2005-06-22 11:20:32 -07:00
)
(define-method unref
(of-object "MooEditLoader")
(c-name "moo_edit_loader_unref")
2005-06-22 11:20:32 -07:00
(return-type "none")
)
(define-method ref
(of-object "MooEditSaver")
(c-name "moo_edit_saver_ref")
(return-type "MooEditSaver*")
2005-06-22 11:20:32 -07:00
)
(define-method unref
(of-object "MooEditSaver")
(c-name "moo_edit_saver_unref")
2005-06-22 11:20:32 -07:00
(return-type "none")
)
(define-function moo_edit_load
(c-name "moo_edit_load")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
(parameters
'("MooEditLoader*" "loader")
'("MooEdit*" "edit")
'("const-char*" "file")
'("const-char*" "encoding")
'("GError**" "error")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_edit_reload
(c-name "moo_edit_reload")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
(parameters
'("MooEditLoader*" "loader")
'("MooEdit*" "edit")
'("GError**" "error")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_edit_save
(c-name "moo_edit_save")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
(parameters
'("MooEditSaver*" "saver")
'("MooEdit*" "edit")
'("const-char*" "file")
'("const-char*" "encoding")
'("GError**" "error")
2005-06-22 11:20:32 -07:00
)
)
;; From ../mooedit/mooeditor.h
(define-function moo_editor_get_type
(c-name "moo_editor_get_type")
(return-type "GType")
2005-06-22 11:20:32 -07:00
)
(define-function moo_editor_instance
(c-name "moo_editor_instance")
(return-type "MooEditor*")
2005-06-22 11:20:32 -07:00
)
(define-method new_window
(of-object "MooEditor")
(c-name "moo_editor_new_window")
(return-type "MooEditWindow*")
2005-06-22 11:20:32 -07:00
)
(define-method new_doc
(of-object "MooEditor")
(c-name "moo_editor_new_doc")
(return-type "MooEdit*")
(parameters
'("MooEditWindow*" "window")
)
2005-06-22 11:20:32 -07:00
)
(define-method open
(of-object "MooEditor")
(c-name "moo_editor_open")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("MooEditWindow*" "window")
'("GtkWidget*" "parent")
'("GSList*" "files")
2005-06-22 11:20:32 -07:00
)
)
(define-method open_file
(of-object "MooEditor")
(c-name "moo_editor_open_file")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("MooEditWindow*" "window")
'("GtkWidget*" "parent")
'("const-char*" "filename")
'("const-char*" "encoding")
2005-06-22 11:20:32 -07:00
)
)
(define-method get_doc
(of-object "MooEditor")
(c-name "moo_editor_get_doc")
(return-type "MooEdit*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "filename")
2005-06-22 11:20:32 -07:00
)
)
(define-method get_active_doc
(of-object "MooEditor")
(c-name "moo_editor_get_active_doc")
(return-type "MooEdit*")
)
2005-06-22 11:20:32 -07:00
(define-method get_active_window
(of-object "MooEditor")
(c-name "moo_editor_get_active_window")
(return-type "MooEditWindow*")
)
2005-06-22 11:20:32 -07:00
(define-method set_active_window
(of-object "MooEditor")
(c-name "moo_editor_set_active_window")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("MooEditWindow*" "window")
2005-06-22 11:20:32 -07:00
)
)
(define-method set_active_doc
(of-object "MooEditor")
(c-name "moo_editor_set_active_doc")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("MooEdit*" "doc")
2005-06-22 11:20:32 -07:00
)
)
(define-method list_windows
(of-object "MooEditor")
(c-name "moo_editor_list_windows")
(return-type "GSList*")
)
(define-method close_window
(of-object "MooEditor")
(c-name "moo_editor_close_window")
2005-06-22 11:20:32 -07:00
(return-type "gboolean")
(parameters
'("MooEditWindow*" "window")
2005-06-22 11:20:32 -07:00
)
)
(define-method close_doc
(of-object "MooEditor")
(c-name "moo_editor_close_doc")
(return-type "gboolean")
(parameters
'("MooEdit*" "doc")
)
2005-06-22 11:20:32 -07:00
)
(define-method close_docs
(of-object "MooEditor")
(c-name "moo_editor_close_docs")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
(parameters
'("GSList*" "list")
2005-06-22 11:20:32 -07:00
)
)
(define-method close_all
(of-object "MooEditor")
(c-name "moo_editor_close_all")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
)
(define-method set_app_name
(of-object "MooEditor")
(c-name "moo_editor_set_app_name")
(return-type "none")
(parameters
'("const-char*" "name")
)
2005-06-22 11:20:32 -07:00
)
(define-method get_history
(of-object "MooEditor")
(c-name "moo_editor_get_history")
(return-type "MooHistoryList*")
2005-06-22 11:20:32 -07:00
)
(define-method get_filter_mgr
(of-object "MooEditor")
(c-name "moo_editor_get_filter_mgr")
(return-type "MooFilterMgr*")
2005-06-22 11:20:32 -07:00
)
(define-method get_ui_xml
(of-object "MooEditor")
(c-name "moo_editor_get_ui_xml")
(return-type "MooUIXML*")
2005-06-22 11:20:32 -07:00
)
(define-method set_ui_xml
(of-object "MooEditor")
(c-name "moo_editor_set_ui_xml")
(return-type "none")
(parameters
'("MooUIXML*" "xml")
)
2005-06-22 11:20:32 -07:00
)
(define-method get_editor
(of-object "MooEditWindow")
(c-name "moo_edit_window_get_editor")
(return-type "MooEditor*")
2005-06-22 11:20:32 -07:00
)
2005-10-30 08:39:35 -08:00
(define-method get_lang_mgr
(of-object "MooEditor")
2005-10-30 08:39:35 -08:00
(c-name "moo_editor_get_lang_mgr")
(return-type "MooLangMgr*")
2005-06-22 11:20:32 -07:00
)
;; From ../mooedit/mooeditsearch.h
2005-06-22 11:20:32 -07:00
(define-function moo_text_search_options_get_type
(c-name "moo_text_search_options_get_type")
2005-06-22 11:20:32 -07:00
(return-type "GType")
)
(define-function moo_text_search
(c-name "moo_text_search")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
(parameters
'("const-GtkTextIter*" "start")
'("const-GtkTextIter*" "limit")
'("const-char*" "text")
'("GtkTextIter*" "match_start")
'("GtkTextIter*" "match_end")
'("MooTextSearchOptions" "options")
'("GError**" "error")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_text_search_regex
(c-name "moo_text_search_regex")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
(parameters
'("const-GtkTextIter*" "start")
'("const-GtkTextIter*" "limit")
'("EggRegex*" "regex")
'("GtkTextIter*" "match_start")
'("GtkTextIter*" "match_end")
'("gboolean" "backwards")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_text_replace_func_replace_all
(c-name "moo_text_replace_func_replace_all")
(return-type "MooTextReplaceResponseType")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "text")
'("EggRegex*" "regex")
'("const-char*" "replacement")
'("GtkTextIter*" "to_replace_start")
'("GtkTextIter*" "to_replace_end")
'("gpointer" "data")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_text_replace_all_interactive
(c-name "moo_text_replace_all_interactive")
(return-type "int")
2005-06-22 11:20:32 -07:00
(parameters
'("GtkTextIter*" "start")
'("GtkTextIter*" "end")
'("const-char*" "text")
'("const-char*" "replacement")
'("MooTextSearchOptions" "options")
'("GError**" "error")
'("MooTextReplaceFunc" "func")
'("gpointer" "data")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_text_replace_regex_all_interactive
(c-name "moo_text_replace_regex_all_interactive")
(return-type "int")
2005-06-22 11:20:32 -07:00
(parameters
'("GtkTextIter*" "start")
'("GtkTextIter*" "end")
'("EggRegex*" "regex")
'("const-char*" "replacement")
'("gboolean" "backwards")
'("GError**" "error")
'("MooTextReplaceFunc" "func")
'("gpointer" "data")
2005-06-22 11:20:32 -07:00
)
)
;; From ../mooedit/mooeditwindow.h
2005-06-22 11:20:32 -07:00
(define-function moo_edit_window_get_type
(c-name "moo_edit_window_get_type")
2005-06-22 11:20:32 -07:00
(return-type "GType")
)
(define-method get_active_doc
(of-object "MooEditWindow")
(c-name "moo_edit_window_get_active_doc")
(return-type "MooEdit*")
2005-06-22 11:20:32 -07:00
)
(define-method set_active_doc
(of-object "MooEditWindow")
(c-name "moo_edit_window_set_active_doc")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("MooEdit*" "edit")
)
2005-06-22 11:20:32 -07:00
)
(define-method list_docs
(of-object "MooEditWindow")
(c-name "moo_edit_window_list_docs")
(return-type "GSList*")
)
2005-06-22 11:20:32 -07:00
(define-method num_docs
(of-object "MooEditWindow")
(c-name "moo_edit_window_num_docs")
(return-type "guint")
)
2005-06-22 11:20:32 -07:00
(define-method set_title_prefix
(of-object "MooEditWindow")
(c-name "moo_edit_window_set_title_prefix")
(return-type "none")
(parameters
'("const-char*" "prefix")
)
2005-06-22 11:20:32 -07:00
)
(define-method add_pane
(of-object "MooEditWindow")
(c-name "moo_edit_window_add_pane")
(return-type "gboolean")
(parameters
'("const-char*" "user_id")
'("GtkWidget*" "widget")
'("MooPaneLabel*" "label")
'("MooPanePosition" "position")
)
2005-06-22 11:20:32 -07:00
)
(define-method remove_pane
(of-object "MooEditWindow")
(c-name "moo_edit_window_remove_pane")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "user_id")
2005-06-22 11:20:32 -07:00
)
)
(define-method get_pane
(of-object "MooEditWindow")
(c-name "moo_edit_window_get_pane")
(return-type "GtkWidget*")
(parameters
'("const-char*" "user_id")
)
2005-06-22 11:20:32 -07:00
)
;; From ../mooedit/mooindenter.h
2005-06-22 11:20:32 -07:00
(define-function moo_indenter_get_type
(c-name "moo_indenter_get_type")
2005-06-22 11:20:32 -07:00
(return-type "GType")
)
(define-function moo_indenter_default_new
(c-name "moo_indenter_default_new")
(is-constructor-of "MooIndenterDefault")
(return-type "MooIndenter*")
)
(define-function moo_indenter_get_for_lang
(c-name "moo_indenter_get_for_lang")
(return-type "MooIndenter*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "lang")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_indenter_get_for_mode
(c-name "moo_indenter_get_for_mode")
(return-type "MooIndenter*")
(parameters
'("const-char*" "mode")
)
2005-06-22 11:20:32 -07:00
)
(define-method set_value
(of-object "MooIndenter")
(c-name "moo_indenter_set_value")
(return-type "none")
(parameters
'("const-char*" "var")
'("const-char*" "value")
)
2005-06-22 11:20:32 -07:00
)
(define-method make_space
(of-object "MooIndenter")
(c-name "moo_indenter_make_space")
(return-type "char*")
(parameters
'("guint" "len")
'("guint" "start")
)
2005-06-22 11:20:32 -07:00
)
(define-method character
(of-object "MooIndenter")
(c-name "moo_indenter_character")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("GtkTextBuffer*" "buffer")
'("gunichar" "inserted_char")
'("GtkTextIter*" "where")
)
2005-06-22 11:20:32 -07:00
)
(define-method tab
(of-object "MooIndenter")
(c-name "moo_indenter_tab")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("GtkTextBuffer*" "buffer")
)
2005-06-22 11:20:32 -07:00
)
(define-method shift_lines
(of-object "MooIndenter")
(c-name "moo_indenter_shift_lines")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("GtkTextBuffer*" "buffer")
'("guint" "first_line")
'("guint" "last_line")
'("int" "direction")
)
2005-06-22 11:20:32 -07:00
)
(define-function moo_iter_get_blank_offset
(c-name "moo_iter_get_blank_offset")
(return-type "int")
(parameters
'("const-GtkTextIter*" "iter")
'("guint" "tab_width")
)
2005-06-22 11:20:32 -07:00
)
(define-function moo_text_iter_get_prev_stop
(c-name "moo_text_iter_get_prev_stop")
(return-type "guint")
2005-06-22 11:20:32 -07:00
(parameters
'("const-GtkTextIter*" "start")
'("guint" "tab_width")
'("guint" "offset")
'("gboolean" "same_line")
2005-06-22 11:20:32 -07:00
)
)
;; From ../mooedit/moolang-rules.h
2005-06-22 11:20:32 -07:00
(define-function moo_rule_string_new
(c-name "moo_rule_string_new")
(is-constructor-of "MooRuleString")
(return-type "MooRule*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "string")
'("MooRuleFlags" "flags")
'("const-char*" "style")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_rule_regex_new
(c-name "moo_rule_regex_new")
(is-constructor-of "MooRuleRegex")
(return-type "MooRule*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "pattern")
'("gboolean" "non_empty")
'("EggRegexCompileFlags" "regex_compile_options")
'("EggRegexMatchFlags" "regex_match_options")
'("MooRuleFlags" "flags")
'("const-char*" "style")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_rule_char_new
(c-name "moo_rule_char_new")
(is-constructor-of "MooRuleChar")
(return-type "MooRule*")
2005-06-22 11:20:32 -07:00
(parameters
'("char" "ch")
'("MooRuleFlags" "flags")
'("const-char*" "style")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_rule_2char_new
(c-name "moo_rule_2char_new")
(is-constructor-of "MooRule2Char")
(return-type "MooRule*")
(parameters
'("char" "ch1")
'("char" "ch2")
'("MooRuleFlags" "flags")
'("const-char*" "style")
)
2005-06-22 11:20:32 -07:00
)
(define-function moo_rule_range_new
(c-name "moo_rule_range_new")
(is-constructor-of "MooRuleRange")
(return-type "MooRule*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "string")
'("MooRuleFlags" "flags")
'("const-char*" "style")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_rule_keywords_new
(c-name "moo_rule_keywords_new")
(is-constructor-of "MooRuleKeywords")
(return-type "MooRule*")
(parameters
'("GSList*" "words")
'("MooRuleFlags" "flags")
'("const-char*" "style")
)
2005-06-22 11:20:32 -07:00
)
(define-function moo_rule_zero_new
(c-name "moo_rule_zero_new")
(is-constructor-of "MooRuleZero")
(return-type "MooRule*")
2005-06-22 11:20:32 -07:00
(parameters
'("MooRuleFlags" "flags")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_rule_include_new
(c-name "moo_rule_include_new")
(is-constructor-of "MooRuleInclude")
(return-type "MooRule*")
(parameters
'("MooContext*" "context")
)
2005-06-22 11:20:32 -07:00
)
(define-method add_child_rule
(of-object "MooRule")
(c-name "moo_rule_add_child_rule")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("MooRule*" "child_rule")
2005-06-22 11:20:32 -07:00
)
)
(define-method set_end_stay
(of-object "MooRule")
(c-name "moo_rule_set_end_stay")
(return-type "none")
2005-06-22 11:20:32 -07:00
)
(define-method set_end_pop
(of-object "MooRule")
(c-name "moo_rule_set_end_pop")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("guint" "num")
2005-06-22 11:20:32 -07:00
)
)
(define-method set_end_switch
(of-object "MooRule")
(c-name "moo_rule_set_end_switch")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("MooContext*" "target")
2005-06-22 11:20:32 -07:00
)
)
(define-method free
(of-object "MooRule")
(c-name "moo_rule_free")
(return-type "none")
2005-06-22 11:20:32 -07:00
)
(define-method match
(of-object "MooRuleArray")
(c-name "moo_rule_array_match")
(return-type "MooRule*")
2005-06-22 11:20:32 -07:00
(parameters
'("MatchData*" "data")
'("MatchResult*" "result")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_match_data_init
(c-name "moo_match_data_init")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("MatchData*" "data")
'("int" "line_number")
'("const-GtkTextIter*" "line_start")
'("const-GtkTextIter*" "line_end")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_match_data_set_start
(c-name "moo_match_data_set_start")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("MatchData*" "data")
'("const-GtkTextIter*" "start_iter")
'("char*" "start")
'("int" "start_offset")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_match_data_line_start
(c-name "moo_match_data_line_start")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
(parameters
'("MatchData*" "data")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_match_data_destroy
(c-name "moo_match_data_destroy")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("MatchData*" "data")
2005-06-22 11:20:32 -07:00
)
)
;; From ../mooedit/moolang.h
2005-06-22 11:20:32 -07:00
(define-function moo_lang_get_type
(c-name "moo_lang_get_type")
(return-type "GType")
)
2005-06-22 11:20:32 -07:00
2005-10-30 08:39:35 -08:00
(define-function moo_lang_mgr_get_type
(c-name "moo_lang_mgr_get_type")
(return-type "GType")
2005-06-22 11:20:32 -07:00
)
(define-method add_rule
(of-object "MooContext")
(c-name "moo_context_add_rule")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("MooRule*" "rule")
2005-06-22 11:20:32 -07:00
)
)
(define-method set_line_end_stay
(of-object "MooContext")
(c-name "moo_context_set_line_end_stay")
(return-type "none")
2005-06-22 11:20:32 -07:00
)
(define-method set_line_end_pop
(of-object "MooContext")
(c-name "moo_context_set_line_end_pop")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("guint" "num")
2005-06-22 11:20:32 -07:00
)
)
(define-method set_line_end_switch
(of-object "MooContext")
(c-name "moo_context_set_line_end_switch")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("MooContext*" "target")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_lang_new
(c-name "moo_lang_new")
(is-constructor-of "MooLang")
(return-type "MooLang*")
2005-06-22 11:20:32 -07:00
(parameters
2005-10-30 08:39:35 -08:00
'("MooLangMgr*" "mgr")
'("const-char*" "name")
'("const-char*" "section")
'("const-char*" "version")
'("const-char*" "author")
2005-06-22 11:20:32 -07:00
)
)
(define-method get_name
(of-object "MooLang")
(c-name "moo_lang_get_name")
(return-type "char*")
2005-06-22 11:20:32 -07:00
)
(define-method get_display_name
(of-object "MooLang")
(c-name "moo_lang_get_display_name")
(return-type "char*")
2005-06-22 11:20:32 -07:00
)
(define-method ref
(of-object "MooLang")
(c-name "moo_lang_ref")
(return-type "MooLang*")
2005-06-22 11:20:32 -07:00
)
(define-method unref
(of-object "MooLang")
(c-name "moo_lang_unref")
2005-06-22 11:20:32 -07:00
(return-type "none")
)
(define-method add_context
(of-object "MooLang")
(c-name "moo_lang_add_context")
(return-type "MooContext*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "name")
'("const-char*" "style")
2005-06-22 11:20:32 -07:00
)
)
(define-method get_context
(of-object "MooLang")
(c-name "moo_lang_get_context")
(return-type "MooContext*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "ctx_name")
2005-06-22 11:20:32 -07:00
)
)
(define-method get_default_context
(of-object "MooLang")
(c-name "moo_lang_get_default_context")
(return-type "MooContext*")
2005-06-22 11:20:32 -07:00
)
(define-method add_style
(of-object "MooLang")
(c-name "moo_lang_add_style")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("const-char*" "name")
'("const-MooTextStyle*" "style")
2005-06-22 11:20:32 -07:00
)
)
2005-10-30 08:39:35 -08:00
(define-function moo_lang_mgr_new
(c-name "moo_lang_mgr_new")
(is-constructor-of "MooLangMgr")
(return-type "MooLangMgr*")
2005-06-22 11:20:32 -07:00
)
(define-method get_available_langs
2005-10-30 08:39:35 -08:00
(of-object "MooLangMgr")
(c-name "moo_lang_mgr_get_available_langs")
(return-type "GSList*")
2005-06-22 11:20:32 -07:00
)
(define-method get_sections
2005-10-30 08:39:35 -08:00
(of-object "MooLangMgr")
(c-name "moo_lang_mgr_get_sections")
(return-type "GSList*")
2005-06-22 11:20:32 -07:00
)
(define-method get_lang_for_file
2005-10-30 08:39:35 -08:00
(of-object "MooLangMgr")
(c-name "moo_lang_mgr_get_lang_for_file")
(return-type "MooLang*")
(parameters
'("const-char*" "filename")
)
2005-06-22 11:20:32 -07:00
)
(define-method get_lang_for_filename
2005-10-30 08:39:35 -08:00
(of-object "MooLangMgr")
(c-name "moo_lang_mgr_get_lang_for_filename")
(return-type "MooLang*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "filename")
2005-06-22 11:20:32 -07:00
)
)
(define-method get_lang_for_mime_type
2005-10-30 08:39:35 -08:00
(of-object "MooLangMgr")
(c-name "moo_lang_mgr_get_lang_for_mime_type")
(return-type "MooLang*")
(parameters
'("const-char*" "mime_type")
)
2005-06-22 11:20:32 -07:00
)
(define-method get_lang
2005-10-30 08:39:35 -08:00
(of-object "MooLangMgr")
(c-name "moo_lang_mgr_get_lang")
(return-type "MooLang*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "name")
2005-06-22 11:20:32 -07:00
)
)
(define-method get_context
2005-10-30 08:39:35 -08:00
(of-object "MooLangMgr")
(c-name "moo_lang_mgr_get_context")
(return-type "MooContext*")
(parameters
'("const-char*" "lang_name")
'("const-char*" "ctx_name")
)
2005-06-22 11:20:32 -07:00
)
(define-method add_dir
2005-10-30 08:39:35 -08:00
(of-object "MooLangMgr")
(c-name "moo_lang_mgr_add_dir")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "dir")
2005-06-22 11:20:32 -07:00
)
)
(define-method read_dirs
2005-10-30 08:39:35 -08:00
(of-object "MooLangMgr")
(c-name "moo_lang_mgr_read_dirs")
(return-type "none")
)
(define-method get_style
2005-10-30 08:39:35 -08:00
(of-object "MooLangMgr")
(c-name "moo_lang_mgr_get_style")
(return-type "MooTextStyle*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "lang_name")
'("const-char*" "style_name")
2005-06-22 11:20:32 -07:00
)
)
(define-method set_style
2005-10-30 08:39:35 -08:00
(of-object "MooLangMgr")
(c-name "moo_lang_mgr_set_style")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "lang_name")
'("const-char*" "style_name")
'("const-MooTextStyle*" "style")
2005-06-22 11:20:32 -07:00
)
)
(define-method get_active_scheme
2005-10-30 08:39:35 -08:00
(of-object "MooLangMgr")
(c-name "moo_lang_mgr_get_active_scheme")
(return-type "MooTextStyleScheme*")
2005-06-22 11:20:32 -07:00
)
;; From ../mooedit/moolineview.h
2005-06-22 11:20:32 -07:00
(define-function moo_line_view_get_type
(c-name "moo_line_view_get_type")
(return-type "GType")
)
2005-06-22 11:20:32 -07:00
(define-function moo_line_view_new
(c-name "moo_line_view_new")
(is-constructor-of "MooLineView")
(return-type "GtkWidget*")
2005-06-22 11:20:32 -07:00
)
(define-method grab
(of-object "MooLineView")
(c-name "moo_line_view_grab")
2005-06-22 11:20:32 -07:00
(return-type "gboolean")
(parameters
'("gpointer" "user_id")
)
2005-06-22 11:20:32 -07:00
)
(define-method ungrab
(of-object "MooLineView")
(c-name "moo_line_view_ungrab")
(return-type "none")
(parameters
'("gpointer" "user_id")
)
2005-06-22 11:20:32 -07:00
)
(define-method set_line_data
(of-object "MooLineView")
(c-name "moo_line_view_set_line_data")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("int" "line")
'("gpointer" "data")
'("GDestroyNotify" "free_func")
2005-06-22 11:20:32 -07:00
)
)
(define-method get_line_data
(of-object "MooLineView")
(c-name "moo_line_view_get_line_data")
(return-type "gpointer")
(parameters
'("int" "line")
)
2005-06-22 11:20:32 -07:00
)
(define-method create_tag
(of-object "MooLineView")
(c-name "moo_line_view_create_tag")
(return-type "GtkTextTag*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "tag_name")
'("const-char*" "first_property_name")
2005-06-22 11:20:32 -07:00
)
(varargs #t)
2005-06-22 11:20:32 -07:00
)
(define-method lookup_tag
(of-object "MooLineView")
(c-name "moo_line_view_lookup_tag")
(return-type "GtkTextTag*")
(parameters
'("const-char*" "tag_name")
)
2005-06-22 11:20:32 -07:00
)
(define-method clear
(of-object "MooLineView")
(c-name "moo_line_view_clear")
2005-06-22 11:20:32 -07:00
(return-type "none")
)
(define-method start_line
(of-object "MooLineView")
(c-name "moo_line_view_start_line")
(return-type "int")
2005-06-22 11:20:32 -07:00
)
(define-method write
(of-object "MooLineView")
(c-name "moo_line_view_write")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("const-char*" "text")
'("gssize" "len")
'("GtkTextTag*" "tag")
2005-06-22 11:20:32 -07:00
)
)
(define-method end_line
(of-object "MooLineView")
(c-name "moo_line_view_end_line")
2005-06-22 11:20:32 -07:00
(return-type "none")
)
(define-method write_line
(of-object "MooLineView")
(c-name "moo_line_view_write_line")
(return-type "int")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "text")
'("gssize" "len")
'("GtkTextTag*" "tag")
2005-06-22 11:20:32 -07:00
)
)
;; From ../mooedit/mooplugin.h
2005-06-22 11:20:32 -07:00
(define-function moo_plugin_get_type
(c-name "moo_plugin_get_type")
(return-type "GType")
2005-06-22 11:20:32 -07:00
)
(define-function moo_window_plugin_get_type
(c-name "moo_window_plugin_get_type")
(return-type "GType")
2005-06-22 11:20:32 -07:00
)
(define-function moo_plugin_register
(c-name "moo_plugin_register")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
(parameters
'("GType" "type")
2005-06-22 11:20:32 -07:00
)
)
(define-method initialized
(of-object "MooPlugin")
(c-name "moo_plugin_initialized")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
)
(define-method enabled
(of-object "MooPlugin")
(c-name "moo_plugin_enabled")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
)
(define-method set_enabled
(of-object "MooPlugin")
(c-name "moo_plugin_set_enabled")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
(parameters
'("gboolean" "enabled")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_plugin_get
(c-name "moo_plugin_get")
(return-type "MooPlugin*")
2005-06-22 11:20:32 -07:00
(parameters
'("GType" "type")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_plugin_registered
(c-name "moo_plugin_registered")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
(parameters
'("GType" "type")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_plugin_lookup
(c-name "moo_plugin_lookup")
(return-type "gpointer")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "plugin_id")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_list_plugins
(c-name "moo_list_plugins")
(return-type "GSList*")
)
(define-method id
(of-object "MooPlugin")
(c-name "moo_plugin_id")
2005-06-22 11:20:32 -07:00
(return-type "const-char*")
)
(define-method name
(of-object "MooPlugin")
(c-name "moo_plugin_name")
2005-06-22 11:20:32 -07:00
(return-type "const-char*")
)
(define-method description
(of-object "MooPlugin")
(c-name "moo_plugin_description")
2005-06-22 11:20:32 -07:00
(return-type "const-char*")
)
(define-method author
(of-object "MooPlugin")
(c-name "moo_plugin_author")
(return-type "const-char*")
2005-06-22 11:20:32 -07:00
)
(define-method version
(of-object "MooPlugin")
(c-name "moo_plugin_version")
(return-type "const-char*")
2005-06-22 11:20:32 -07:00
)
(define-function moo_window_plugin_lookup
(c-name "moo_window_plugin_lookup")
(return-type "gpointer")
(parameters
'("const-char*" "plugin_id")
'("MooEditWindow*" "window")
)
2005-06-22 11:20:32 -07:00
)
(define-function moo_plugin_read_dir
(c-name "moo_plugin_read_dir")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("const-char*" "dir")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_plugin_init_builtin
(c-name "moo_plugin_init_builtin")
(return-type "none")
2005-06-22 11:20:32 -07:00
)
;; From ../mooedit/mootextbuffer.h
(define-function moo_text_buffer_get_type
(c-name "moo_text_buffer_get_type")
(return-type "GType")
)
(define-function moo_text_buffer_new
(c-name "moo_text_buffer_new")
(is-constructor-of "MooTextBuffer")
(return-type "GtkTextBuffer*")
(parameters
'("GtkTextTagTable*" "table")
)
2005-06-22 11:20:32 -07:00
)
(define-method set_lang
(of-object "MooTextBuffer")
(c-name "moo_text_buffer_set_lang")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("MooLang*" "lang")
2005-06-22 11:20:32 -07:00
)
)
(define-method get_lang
(of-object "MooTextBuffer")
(c-name "moo_text_buffer_get_lang")
(return-type "MooLang*")
2005-06-22 11:20:32 -07:00
)
(define-method set_bracket_match_style
(of-object "MooTextBuffer")
(c-name "moo_text_buffer_set_bracket_match_style")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("const-MooTextStyle*" "style")
2005-06-22 11:20:32 -07:00
)
)
(define-method set_bracket_mismatch_style
(of-object "MooTextBuffer")
(c-name "moo_text_buffer_set_bracket_mismatch_style")
(return-type "none")
(parameters
'("const-MooTextStyle*" "style")
)
2005-06-22 11:20:32 -07:00
)
(define-method set_brackets
(of-object "MooTextBuffer")
(c-name "moo_text_buffer_set_brackets")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "brackets")
2005-06-22 11:20:32 -07:00
)
)
(define-method set_check_brackets
(of-object "MooTextBuffer")
(c-name "moo_text_buffer_set_check_brackets")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("gboolean" "check")
2005-06-22 11:20:32 -07:00
)
)
(define-method has_text
(of-object "MooTextBuffer")
(c-name "moo_text_buffer_has_text")
(return-type "gboolean")
)
(define-method has_selection
(of-object "MooTextBuffer")
(c-name "moo_text_buffer_has_selection")
(return-type "gboolean")
)
;; From ../mooedit/mootextiter.h
(define-function moo_text_iter_find_matching_bracket
(c-name "moo_text_iter_find_matching_bracket")
(return-type "MooBracketMatchType")
(parameters
'("GtkTextIter*" "iter")
'("int" "limit")
)
2005-06-22 11:20:32 -07:00
)
(define-function moo_text_iter_at_bracket
(c-name "moo_text_iter_at_bracket")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
(parameters
'("GtkTextIter*" "iter")
2005-06-22 11:20:32 -07:00
)
)
;; From ../mooedit/mootextstyle.h
2005-06-22 11:20:32 -07:00
(define-function moo_text_style_get_type
(c-name "moo_text_style_get_type")
2005-06-22 11:20:32 -07:00
(return-type "GType")
)
(define-function moo_text_style_mask_get_type
(c-name "moo_text_style_mask_get_type")
(return-type "GType")
2005-06-22 11:20:32 -07:00
)
(define-function moo_text_style_scheme_get_type
(c-name "moo_text_style_scheme_get_type")
(return-type "GType")
2005-06-22 11:20:32 -07:00
)
(define-function moo_text_style_new
(c-name "moo_text_style_new")
(is-constructor-of "MooTextStyle")
(return-type "MooTextStyle*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "default_style")
'("const-GdkColor*" "foreground")
'("const-GdkColor*" "background")
'("gboolean" "bold")
'("gboolean" "italic")
'("gboolean" "underline")
'("gboolean" "strikethrough")
'("MooTextStyleMask" "mask")
'("gboolean" "modified")
2005-06-22 11:20:32 -07:00
)
)
(define-method copy
(of-object "MooTextStyle")
(c-name "moo_text_style_copy")
(return-type "MooTextStyle*")
2005-06-22 11:20:32 -07:00
)
(define-method copy_content
(of-object "MooTextStyle")
(c-name "moo_text_style_copy_content")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("const-MooTextStyle*" "src")
2005-06-22 11:20:32 -07:00
)
)
(define-method compose
(of-object "MooTextStyle")
(c-name "moo_text_style_compose")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("const-MooTextStyle*" "src")
2005-06-22 11:20:32 -07:00
)
)
(define-method free
(of-object "MooTextStyle")
(c-name "moo_text_style_free")
(return-type "none")
2005-06-22 11:20:32 -07:00
)
(define-function moo_text_style_scheme_new_empty
(c-name "moo_text_style_scheme_new_empty")
(return-type "MooTextStyleScheme*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "name")
2005-06-22 11:20:32 -07:00
)
)
(define-function moo_text_style_scheme_new_default
(c-name "moo_text_style_scheme_new_default")
(return-type "MooTextStyleScheme*")
)
(define-method copy
(of-object "MooTextStyleScheme")
(c-name "moo_text_style_scheme_copy")
(return-type "MooTextStyleScheme*")
)
(define-method ref
(of-object "MooTextStyleScheme")
(c-name "moo_text_style_scheme_ref")
(return-type "MooTextStyleScheme*")
)
(define-method unref
(of-object "MooTextStyleScheme")
(c-name "moo_text_style_scheme_unref")
(return-type "none")
)
(define-method compose
(of-object "MooTextStyleScheme")
(c-name "moo_text_style_scheme_compose")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "language_name")
'("const-char*" "style_name")
'("const-MooTextStyle*" "style")
2005-06-22 11:20:32 -07:00
)
)
(define-method set
(of-object "MooTextStyleScheme")
(c-name "moo_text_style_scheme_set")
(return-type "none")
(parameters
'("const-char*" "language_name")
'("const-char*" "style_name")
'("const-MooTextStyle*" "style")
)
2005-06-22 11:20:32 -07:00
)
(define-method get
(of-object "MooTextStyleScheme")
(c-name "moo_text_style_scheme_get")
(return-type "const-MooTextStyle*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "language_name")
'("const-char*" "style_name")
2005-06-22 11:20:32 -07:00
)
)
;; From ../mooedit/mootextview.h
2005-06-22 11:20:32 -07:00
(define-function moo_text_view_get_type
(c-name "moo_text_view_get_type")
2005-06-22 11:20:32 -07:00
(return-type "GType")
)
(define-function moo_text_selection_type_get_type
(c-name "moo_text_selection_type_get_type")
2005-06-22 11:20:32 -07:00
(return-type "GType")
)
(define-function moo_text_view_new
(c-name "moo_text_view_new")
(is-constructor-of "MooTextView")
(return-type "MooTextView*")
2005-06-22 11:20:32 -07:00
)
(define-method select_all
(of-object "MooTextView")
(c-name "moo_text_view_select_all")
(return-type "none")
2005-06-22 11:20:32 -07:00
)
(define-method get_selection
(of-object "MooTextView")
(c-name "moo_text_view_get_selection")
(return-type "char*")
2005-06-22 11:20:32 -07:00
)
(define-method get_text
(of-object "MooTextView")
(c-name "moo_text_view_get_text")
(return-type "char*")
2005-06-22 11:20:32 -07:00
)
(define-method has_selection
(of-object "MooTextView")
(c-name "moo_text_view_has_selection")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
)
(define-method has_text
(of-object "MooTextView")
(c-name "moo_text_view_has_text")
2005-06-22 11:20:32 -07:00
(return-type "gboolean")
)
(define-method delete_selection
(of-object "MooTextView")
(c-name "moo_text_view_delete_selection")
2005-06-22 11:20:32 -07:00
(return-type "none")
)
(define-method can_redo
(of-object "MooTextView")
(c-name "moo_text_view_can_redo")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
)
(define-method can_undo
(of-object "MooTextView")
(c-name "moo_text_view_can_undo")
(return-type "gboolean")
2005-06-22 11:20:32 -07:00
)
(define-method redo
(of-object "MooTextView")
(c-name "moo_text_view_redo")
2005-06-22 11:20:32 -07:00
(return-type "none")
)
(define-method undo
(of-object "MooTextView")
(c-name "moo_text_view_undo")
(return-type "none")
2005-06-22 11:20:32 -07:00
)
(define-method start_not_undoable_action
(of-object "MooTextView")
(c-name "moo_text_view_start_not_undoable_action")
(return-type "none")
)
2005-06-22 11:20:32 -07:00
(define-method end_not_undoable_action
(of-object "MooTextView")
(c-name "moo_text_view_end_not_undoable_action")
(return-type "none")
)
2005-06-22 11:20:32 -07:00
(define-method find_interactive
(of-object "MooTextView")
(c-name "moo_text_view_find_interactive")
(return-type "none")
)
2005-06-22 11:20:32 -07:00
(define-method replace_interactive
(of-object "MooTextView")
(c-name "moo_text_view_replace_interactive")
(return-type "none")
)
2005-06-22 11:20:32 -07:00
(define-method find_next_interactive
(of-object "MooTextView")
(c-name "moo_text_view_find_next_interactive")
(return-type "none")
2005-06-22 11:20:32 -07:00
)
(define-method find_prev_interactive
(of-object "MooTextView")
(c-name "moo_text_view_find_prev_interactive")
(return-type "none")
2005-06-22 11:20:32 -07:00
)
(define-method goto_line
(of-object "MooTextView")
(c-name "moo_text_view_goto_line")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("int" "line")
2005-06-22 11:20:32 -07:00
)
)
(define-method set_font_from_string
(of-object "MooTextView")
(c-name "moo_text_view_set_font_from_string")
2005-06-22 11:20:32 -07:00
(return-type "none")
(parameters
'("const-char*" "font")
2005-06-22 11:20:32 -07:00
)
)
(define-method get_indenter
(of-object "MooTextView")
(c-name "moo_text_view_get_indenter")
(return-type "MooIndenter*")
)
2005-06-22 11:20:32 -07:00
(define-method set_indenter
(of-object "MooTextView")
(c-name "moo_text_view_set_indenter")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("MooIndenter*" "indenter")
2005-06-22 11:20:32 -07:00
)
)
(define-method move_cursor
(of-object "MooTextView")
(c-name "moo_text_view_move_cursor")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("int" "line")
'("int" "character")
'("gboolean" "in_idle")
2005-06-22 11:20:32 -07:00
)
)
(define-method set_highlight_current_line
(of-object "MooTextView")
(c-name "moo_text_view_set_highlight_current_line")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("gboolean" "highlight")
2005-06-22 11:20:32 -07:00
)
)
(define-method set_current_line_color
(of-object "MooTextView")
(c-name "moo_text_view_set_current_line_color")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("const-GdkColor*" "color")
2005-06-22 11:20:32 -07:00
)
)
(define-method set_cursor_color
(of-object "MooTextView")
(c-name "moo_text_view_set_cursor_color")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("const-GdkColor*" "color")
2005-06-22 11:20:32 -07:00
)
)
(define-method set_show_tabs
(of-object "MooTextView")
(c-name "moo_text_view_set_show_tabs")
(return-type "none")
2005-06-22 11:20:32 -07:00
(parameters
'("gboolean" "show")
2005-06-22 11:20:32 -07:00
)
)
(define-method lookup_tag
(of-object "MooTextView")
(c-name "moo_text_view_lookup_tag")
(return-type "GtkTextTag*")
2005-06-22 11:20:32 -07:00
(parameters
'("const-char*" "name")
2005-06-22 11:20:32 -07:00
)
)