medit/moo/moopython/gtksourceview-pygtk.defs

417 lines
8.9 KiB
Scheme

;; -*- scheme -*-
; object definitions ...
(define-object SourceBuffer
(in-module "Gtk")
(parent "GtkTextBuffer")
(c-name "GtkSourceBuffer")
(gtype-id "GTK_TYPE_SOURCE_BUFFER")
)
(define-object SourceView
(in-module "Gtk")
(parent "GtkTextView")
(c-name "GtkSourceView")
(gtype-id "GTK_TYPE_SOURCE_VIEW")
)
;; Enumerations and flags ...
;; From gtksourceview.h
(define-function gtk_source_view_get_type
(c-name "gtk_source_view_get_type")
(return-type "GType")
)
(define-function gtk_source_view_new
(c-name "gtk_source_view_new")
(is-constructor-of "GtkSourceView")
(return-type "GtkWidget*")
)
(define-function gtk_source_view_new_with_buffer
(c-name "gtk_source_view_new_with_buffer")
(return-type "GtkWidget*")
(parameters
'("GtkSourceBuffer*" "buffer")
)
)
(define-method set_show_line_numbers
(of-object "GtkSourceView")
(c-name "gtk_source_view_set_show_line_numbers")
(return-type "none")
(parameters
'("gboolean" "show")
)
)
(define-method get_show_line_numbers
(of-object "GtkSourceView")
(c-name "gtk_source_view_get_show_line_numbers")
(return-type "gboolean")
)
(define-method set_show_line_markers
(of-object "GtkSourceView")
(c-name "gtk_source_view_set_show_line_markers")
(return-type "none")
(parameters
'("gboolean" "show")
)
)
(define-method get_show_line_markers
(of-object "GtkSourceView")
(c-name "gtk_source_view_get_show_line_markers")
(return-type "gboolean")
)
(define-method set_tabs_width
(of-object "GtkSourceView")
(c-name "gtk_source_view_set_tabs_width")
(return-type "none")
(parameters
'("guint" "width")
)
)
(define-method get_tabs_width
(of-object "GtkSourceView")
(c-name "gtk_source_view_get_tabs_width")
(return-type "guint")
)
(define-method set_auto_indent
(of-object "GtkSourceView")
(c-name "gtk_source_view_set_auto_indent")
(return-type "none")
(parameters
'("gboolean" "enable")
)
)
(define-method get_auto_indent
(of-object "GtkSourceView")
(c-name "gtk_source_view_get_auto_indent")
(return-type "gboolean")
)
(define-method set_insert_spaces_instead_of_tabs
(of-object "GtkSourceView")
(c-name "gtk_source_view_set_insert_spaces_instead_of_tabs")
(return-type "none")
(parameters
'("gboolean" "enable")
)
)
(define-method get_insert_spaces_instead_of_tabs
(of-object "GtkSourceView")
(c-name "gtk_source_view_get_insert_spaces_instead_of_tabs")
(return-type "gboolean")
)
(define-method set_show_margin
(of-object "GtkSourceView")
(c-name "gtk_source_view_set_show_margin")
(return-type "none")
(parameters
'("gboolean" "show")
)
)
(define-method get_show_margin
(of-object "GtkSourceView")
(c-name "gtk_source_view_get_show_margin")
(return-type "gboolean")
)
(define-method set_highlight_current_line
(of-object "GtkSourceView")
(c-name "gtk_source_view_set_highlight_current_line")
(return-type "none")
(parameters
'("gboolean" "show")
)
)
(define-method get_highlight_current_line
(of-object "GtkSourceView")
(c-name "gtk_source_view_get_highlight_current_line")
(return-type "gboolean")
)
(define-method set_margin
(of-object "GtkSourceView")
(c-name "gtk_source_view_set_margin")
(return-type "none")
(parameters
'("guint" "margin")
)
)
(define-method get_margin
(of-object "GtkSourceView")
(c-name "gtk_source_view_get_margin")
(return-type "guint")
)
(define-method set_marker_pixbuf
(of-object "GtkSourceView")
(c-name "gtk_source_view_set_marker_pixbuf")
(return-type "none")
(parameters
'("const-gchar*" "marker_type")
'("GdkPixbuf*" "pixbuf")
)
)
(define-method get_marker_pixbuf
(of-object "GtkSourceView")
(c-name "gtk_source_view_get_marker_pixbuf")
(return-type "GdkPixbuf*")
(parameters
'("const-gchar*" "marker_type")
)
)
(define-method set_smart_home_end
(of-object "GtkSourceView")
(c-name "gtk_source_view_set_smart_home_end")
(return-type "none")
(parameters
'("gboolean" "enable")
)
)
(define-method get_smart_home_end
(of-object "GtkSourceView")
(c-name "gtk_source_view_get_smart_home_end")
(return-type "gboolean")
)
;; From gtksourcebuffer.h
(define-function gtk_source_buffer_get_type
(c-name "gtk_source_buffer_get_type")
(return-type "GType")
)
(define-function gtk_source_buffer_new
(c-name "gtk_source_buffer_new")
(is-constructor-of "GtkSourceBuffer")
(return-type "GtkSourceBuffer*")
(parameters
'("GtkSourceTagTable*" "table")
)
)
(define-method get_check_brackets
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_get_check_brackets")
(return-type "gboolean")
)
(define-method set_check_brackets
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_set_check_brackets")
(return-type "none")
(parameters
'("gboolean" "check_brackets")
)
)
(define-method set_bracket_correct_match_style
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_set_bracket_correct_match_style")
(return-type "none")
(parameters
'("const-GtkSourceTagStyle*" "style")
)
)
(define-method set_bracket_incorrect_match_style
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_set_bracket_incorrect_match_style")
(return-type "none")
(parameters
'("const-GtkSourceTagStyle*" "style")
)
)
(define-method get_highlight
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_get_highlight")
(return-type "gboolean")
)
(define-method set_highlight
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_set_highlight")
(return-type "none")
(parameters
'("gboolean" "highlight")
)
)
(define-method get_max_undo_levels
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_get_max_undo_levels")
(return-type "gint")
)
(define-method set_max_undo_levels
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_set_max_undo_levels")
(return-type "none")
(parameters
'("gint" "max_undo_levels")
)
)
(define-method get_escape_char
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_get_escape_char")
(return-type "gunichar")
)
(define-method set_escape_char
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_set_escape_char")
(return-type "none")
(parameters
'("gunichar" "escape_char")
)
)
(define-method can_undo
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_can_undo")
(return-type "gboolean")
)
(define-method can_redo
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_can_redo")
(return-type "gboolean")
)
(define-method undo
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_undo")
(return-type "none")
)
(define-method redo
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_redo")
(return-type "none")
)
(define-method begin_not_undoable_action
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_begin_not_undoable_action")
(return-type "none")
)
(define-method end_not_undoable_action
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_end_not_undoable_action")
(return-type "none")
)
(define-method create_marker
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_create_marker")
(return-type "GtkSourceMarker*")
(parameters
'("const-gchar*" "name")
'("const-gchar*" "type")
'("const-GtkTextIter*" "where")
)
)
(define-method move_marker
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_move_marker")
(return-type "none")
(parameters
'("GtkSourceMarker*" "marker")
'("const-GtkTextIter*" "where")
)
)
(define-method delete_marker
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_delete_marker")
(return-type "none")
(parameters
'("GtkSourceMarker*" "marker")
)
)
(define-method get_marker
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_get_marker")
(return-type "GtkSourceMarker*")
(parameters
'("const-gchar*" "name")
)
)
(define-method get_markers_in_region
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_get_markers_in_region")
(return-type "GSList*")
(parameters
'("const-GtkTextIter*" "begin")
'("const-GtkTextIter*" "end")
)
)
(define-method get_first_marker
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_get_first_marker")
(return-type "GtkSourceMarker*")
)
(define-method get_last_marker
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_get_last_marker")
(return-type "GtkSourceMarker*")
)
(define-method get_iter_at_marker
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_get_iter_at_marker")
(return-type "none")
(parameters
'("GtkTextIter*" "iter")
'("GtkSourceMarker*" "marker")
)
)
(define-method get_next_marker
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_get_next_marker")
(return-type "GtkSourceMarker*")
(parameters
'("GtkTextIter*" "iter")
)
)
(define-method get_prev_marker
(of-object "GtkSourceBuffer")
(c-name "gtk_source_buffer_get_prev_marker")
(return-type "GtkSourceMarker*")
(parameters
'("GtkTextIter*" "iter")
)
)