cvs: php-gtk /ext/scintilla Makefile.frag config.m4 php_scintilla.c php_scintilla.h scintilla.defs scintilla.overrides v1.scintilla.defs
v1.scintilla.overrides /ext/sourceview Makefile.frag config.m4 php_sourceview.c php_sourceview.h ref.sourceview.defs ref.sourceview.overrides
sourceview.defs sourceview.overrides
| From: | Anant Narayanan | Date: | Fri, 03 Mar 2006 14:49:07 +0000 |
| Subject: | cvs: php-gtk /ext/scintilla Makefile.frag config.m4 php_scintilla.c php_scintilla.h scintilla.defs scintilla.overrides v1.scintilla.defs v1.scintilla.overrides /ext/sourceview Makefile.frag config.m4 php_sourceview.c php_sourceview.h ref.sourceview.defs ref.sourceview.overrides sourceview.defs sourceview.overrides |
||
| Groups: | php.gtk.cvs | ||
| Request: | Send a blank email to php-gtk-cvs+get-2155@lists.php.net to get a copy of this message | ||
anant Fri Mar 3 14:49:07 2006 UTC
Added files:
/php-gtk/ext/scintilla v1.scintilla.defs v1.scintilla.overrides
/php-gtk/ext/sourceview Makefile.frag config.m4 php_sourceview.c
php_sourceview.h ref.sourceview.defs
ref.sourceview.overrides sourceview.defs
sourceview.overrides
Modified files:
/php-gtk/ext/scintilla Makefile.frag config.m4 php_scintilla.c
php_scintilla.h scintilla.defs
scintilla.overrides
Log:
GtkScintilla and GtkSourceView base extension files.
http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/Makefile.frag?r1=1.2&r2=1.3&diff_format=u Index: php-gtk/ext/scintilla/Makefile.frag diff -u /dev/null php-gtk/ext/scintilla/Makefile.frag:1.3 --- /dev/null Fri Mar 3 14:49:07 2006 +++ php-gtk/ext/scintilla/Makefile.frag Fri Mar 3 14:49:06 2006 @@ -0,0 +1,14 @@ + +$(builddir)/gen_scintilla.c: $(srcdir)/scintilla.defs $(srcdir)/scintilla.overrides + ( \ + $(PHP) $(top_srcdir)/generator/generator.php \ + -l $(@D)/$(*F).log \ + -r ext/gtk+/atk-types.defs \ + -r ext/gtk+/pango-types.defs \ + -r ext/gtk+/gdk-types.defs \ + -r ext/gtk+/gtk-types.defs \ + -o ext/scintilla/scintilla.overrides \ + -p GtkScintilla \ + -f $@ ext/scintilla/scintilla.defs \ + && grep -h "^PHP_GTK_EXPORT_CE" $@ | sed -e "s!^!extern !" > $(@D)/$(*F).h \ + ) http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/config.m4?r1=1.5&r2=1.6&diff_format=u Index: php-gtk/ext/scintilla/config.m4 diff -u /dev/null php-gtk/ext/scintilla/config.m4:1.6 --- /dev/null Fri Mar 3 14:49:07 2006 +++ php-gtk/ext/scintilla/config.m4 Fri Mar 3 14:49:06 2006 @@ -0,0 +1,25 @@ +dnl $Id: config.m4,v 1.6 2006/03/03 14:49:06 anant Exp $ +dnl config.m4 for scintilla module + +define(scintilla_required_version, 0.1.0) + +PHP_GTK_ARG_ENABLE(scintilla,for scintilla support, +[ --enable-scintilla Enable scintilla support],no) + +if test "$PHP_GTK_SCINTILLA" != "no"; then + PKG_CHECK_MODULES(SCINTILLA, [GtkScintilla-2.0 >= scintilla_required_version], + have_scintilla=yes, have_scintilla=no) + if test "$have_scintilla" != "yes"; then + AC_MSG_RESULT([Unable to locate scintilla version scintilla_required_version or higher: not building]) + else + AC_DEFINE(HAVE_SCINTILLA, 1, [scintilla support]) + PHP_EVAL_INCLINE($SCINTILLA_CFLAGS) + if test "$php_gtk_ext_shared" = "yes"; then + PHP_EVAL_LIBLINE($SCINTILLA_LIBS, SCINTILLA_SHARED_LIBADD) + PHP_SUBST(SCINTILLA_SHARED_LIBADD) + else + PHP_EVAL_LIBLINE($SCINTILLA_LIBS, PHP_GTK2_SHARED_LIBADD) + fi + PHP_GTK_EXTENSION(scintilla, $php_gtk_ext_shared, php_scintilla.c, gen_scintilla.c) + fi +fi http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/php_scintilla.c?r1=1.6&r2=1.7&diff_format=u Index: php-gtk/ext/scintilla/php_scintilla.c diff -u /dev/null php-gtk/ext/scintilla/php_scintilla.c:1.7 --- /dev/null Fri Mar 3 14:49:07 2006 +++ php-gtk/ext/scintilla/php_scintilla.c Fri Mar 3 14:49:06 2006 @@ -0,0 +1,45 @@ +/* + * PHP-GTK - The PHP language bindings for GTK+ + * + * Copyright (C) 2001,2002 Andrei Zmievski <andrei@php.net> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* $Id: php_scintilla.c,v 1.7 2006/03/03 14:49:06 anant Exp $ */ + +#include "php_scintilla.h" + +#if HAVE_SCINTILLA + +#ifdef COMPILE_DL_SCINTILLA +PHP_GTK_GET_EXTENSION(scintilla) +#endif + +PHP_GTK_XINIT_FUNCTION(scintilla) +{ + php_scintilla_register_classes(); + php_scintilla_register_constants("SCINTILLA_"); + + return SUCCESS; +} + +php_gtk_ext_entry scintilla_ext_entry = { + "scintilla", + PHP_GTK_XINIT(scintilla), + NULL, +}; + +#endif /* HAVE_SCINTILLA */ http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/php_scintilla.h?r1=1.5&r2=1.6&diff_format=u Index: php-gtk/ext/scintilla/php_scintilla.h diff -u /dev/null php-gtk/ext/scintilla/php_scintilla.h:1.6 --- /dev/null Fri Mar 3 14:49:07 2006 +++ php-gtk/ext/scintilla/php_scintilla.h Fri Mar 3 14:49:06 2006 @@ -0,0 +1,44 @@ +/* + * PHP-GTK - The PHP language bindings for GTK+ + * + * Copyright (C) 2001,2002 Andrei Zmievski <andrei@php.net> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* $Id: php_scintilla.h,v 1.6 2006/03/03 14:49:06 anant Exp $ */ + +#ifndef PHP_SCINTILLA_H +#define PHP_SCINTILLA_H + +#include "php_gtk.h" + +#if HAVE_SCINTILLA + +#include <gtkscintilla2/gtkscintilla.h> + +extern php_gtk_ext_entry scintilla_ext_entry; +#define php_gtk_ext_scintilla_ptr &scintilla_ext_entry + +void phpg_scintilla_register_classes(void); +void phpg_scintilla_register_constants(const char *strip_prefix); + +#else + +#define php_gtk_ext_scintilla_ptr NULL + +#endif /* HAVE_SCINTILLA */ + +#endif /* PHP_SCINTILLA_H */ http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/scintilla.defs?r1=1.4&r2=1.5&diff_format=u Index: php-gtk/ext/scintilla/scintilla.defs diff -u /dev/null php-gtk/ext/scintilla/scintilla.defs:1.5 --- /dev/null Fri Mar 3 14:49:07 2006 +++ php-gtk/ext/scintilla/scintilla.defs Fri Mar 3 14:49:06 2006 @@ -0,0 +1,78 @@ +;; -*- scheme -*- +; object definitions ... +(define-object Scintilla + (in-module "Gtk") + (parent "GtkFrame") + (c-name "GtkScintilla") + (gtype-id "GTK_TYPE_SCINTILLA") +) + +;; Enumerations and flags ... + +;; From /usr/include/gtkscintilla.h + +(define-function gtk_scintilla_get_type + (c-name "gtk_scintilla_get_type") + (return-type "guint") +) + +(define-function gtk_scintilla_new + (c-name "gtk_scintilla_new") + (is-constructor-of "GtkScintilla") + (return-type "GtkWidget*") +) + +(define-object Frame + (in-module "Gtk") + (parent "GtkBin") + (c-name "GtkFrame") + (gtype-id "GTK_TYPE_FRAME") +) + +(define-object Bin + (in-module "Gtk") + (parent "GtkContainer") + (c-name "GtkBin") + (gtype-id "GTK_TYPE_BIN") + (fields + '("GtkWidget*" "child") + ) +) + +(define-object Container + (in-module "Gtk") + (parent "GtkWidget") + (c-name "GtkContainer") + (gtype-id "GTK_TYPE_CONTAINER") + (fields + '("GtkWidget*" "focus_child") + '("guint" "border_width") + '("guint" "need_resize") + '("guint" "resize_mode") + '("guint" "reallocate_redraws") + '("guint" "has_focus_chain") + ) +) + +(define-object Widget + (in-module "Gtk") + (parent "GtkObject") + (c-name "GtkWidget") + (gtype-id "GTK_TYPE_WIDGET") + (fields + '("guint8" "state") + '("guint8" "saved_state") + '("gchar*" "name") + '("GtkStyle*" "style") + '("GdkRectangle" "allocation") + '("GdkWindow*" "window") + '("GtkWidget*" "parent") + ) +) + +(define-object Object + (in-module "Gtk") + (parent "GObject") + (c-name "GtkObject") + (gtype-id "GTK_TYPE_OBJECT") +) http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/scintilla.overrides?r1=1.8&r2=1.9&diff_format=u Index: php-gtk/ext/scintilla/scintilla.overrides diff -u /dev/null php-gtk/ext/scintilla/scintilla.overrides:1.9 --- /dev/null Fri Mar 3 14:49:07 2006 +++ php-gtk/ext/scintilla/scintilla.overrides Fri Mar 3 14:49:06 2006 @@ -0,0 +1,9 @@ +/* vim: set ft=cpp: */ +%% +headers +#include <gtkscintilla2/gtkscintilla.h> +#include "ext/gtk+/php_gtk+.h" + +%% +ignore-glob + *_get_type http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/v1.scintilla.defs?view=markup&rev=1.1 Index: php-gtk/ext/scintilla/v1.scintilla.defs +++ php-gtk/ext/scintilla/v1.scintilla.defs ;; -*- scheme -*- ; object definitions ... (object Scintilla (in-module Gtk) (parent Frame (Gtk)) (c-name GtkScintilla) ) ;; Enumerations and flags ... ;; From /usr/include/gtkscintilla.h (function gtk_scintilla_get_type (c-name gtk_scintilla_get_type) (return-type guint) ) (function gtk_scintilla_new (c-name gtk_scintilla_new) (is-constructor-of GtkScintilla) (return-type GtkWidget*) ) (method find_text (of-object Scintilla (Gtk)) (c-name gtk_scintilla_find_text) (return-type long) (parameter (type-and-name int flags)) (parameter (type-and-name char* text)) (parameter (type-and-name long chrg_min)) (parameter (type-and-name long chrg_max)) (parameter (type-and-name long* text_min)) (parameter (type-and-name long* text_max)) ) (method add_text (of-object Scintilla (Gtk)) (c-name gtk_scintilla_add_text) (return-type none) (parameter (type-and-name int length)) (parameter (type-and-name const-char* text)) ) (method insert_text (of-object Scintilla (Gtk)) (c-name gtk_scintilla_insert_text) (return-type none) (parameter (type-and-name long pos)) (parameter (type-and-name const-char* text)) ) (method clear_all (of-object Scintilla (Gtk)) (c-name gtk_scintilla_clear_all) (return-type none) ) (method clear_document_style (of-object Scintilla (Gtk)) (c-name gtk_scintilla_clear_document_style) (return-type none) ) (method get_length (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_length) (return-type int) ) (method get_char_at (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_char_at) (return-type int) (parameter (type-and-name long pos)) ) (method get_current_pos (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_current_pos) (return-type long) ) (method get_anchor (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_anchor) (return-type long) ) (method get_style_at (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_style_at) (return-type int) (parameter (type-and-name long pos)) ) (method redo (of-object Scintilla (Gtk)) (c-name gtk_scintilla_redo) (return-type none) ) (method set_undo_collection (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_undo_collection) (return-type none) (parameter (type-and-name int collect_undo)) ) (method select_all (of-object Scintilla (Gtk)) (c-name gtk_scintilla_select_all) (return-type none) ) (method set_save_point (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_save_point) (return-type none) ) (method can_redo (of-object Scintilla (Gtk)) (c-name gtk_scintilla_can_redo) (return-type int) ) (method marker_line_from_handle (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_line_from_handle) (return-type int) (parameter (type-and-name int handle)) ) (method marker_delete_handle (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_delete_handle) (return-type none) (parameter (type-and-name int handle)) ) (method get_undo_collection (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_undo_collection) (return-type int) ) (method get_view_ws (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_view_ws) (return-type int) ) (method set_view_ws (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_view_ws) (return-type none) (parameter (type-and-name int view_ws)) ) (method position_from_point (of-object Scintilla (Gtk)) (c-name gtk_scintilla_position_from_point) (return-type int) (parameter (type-and-name int x)) (parameter (type-and-name int y)) ) (method goto_line (of-object Scintilla (Gtk)) (c-name gtk_scintilla_goto_line) (return-type none) (parameter (type-and-name int line)) ) (method goto_pos (of-object Scintilla (Gtk)) (c-name gtk_scintilla_goto_pos) (return-type none) (parameter (type-and-name long pos)) ) (method set_anchor (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_anchor) (return-type none) (parameter (type-and-name long pos_anchor)) ) (method get_cur_line (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_cur_line) (return-type int) (parameter (type-and-name int length)) (parameter (type-and-name char* text)) ) (method get_end_styled (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_end_styled) (return-type long) ) (method convert_eols (of-object Scintilla (Gtk)) (c-name gtk_scintilla_convert_eols) (return-type none) (parameter (type-and-name int eol_mode)) ) (method get_eol_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_eol_mode) (return-type int) ) (method set_eol_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_eol_mode) (return-type none) (parameter (type-and-name int eol_mode)) ) (method start_styling (of-object Scintilla (Gtk)) (c-name gtk_scintilla_start_styling) (return-type none) (parameter (type-and-name long pos)) (parameter (type-and-name int mask)) ) (method set_styling (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_styling) (return-type none) (parameter (type-and-name int length)) (parameter (type-and-name int style)) ) (method get_buffered_draw (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_buffered_draw) (return-type int) ) (method set_buffered_draw (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_buffered_draw) (return-type none) (parameter (type-and-name int buffered)) ) (method set_tab_width (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_tab_width) (return-type none) (parameter (type-and-name int tab_width)) ) (method get_tab_width (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_tab_width) (return-type int) ) (method set_code_page (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_code_page) (return-type none) (parameter (type-and-name int code_page)) ) (method set_use_palette (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_use_palette) (return-type none) (parameter (type-and-name int use_palette)) ) (method marker_define (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_define) (return-type none) (parameter (type-and-name int marker_number)) (parameter (type-and-name int marker_symbol)) ) (method marker_set_fore (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_set_fore) (return-type none) (parameter (type-and-name int marker_number)) (parameter (type-and-name long fore)) ) (method marker_set_back (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_set_back) (return-type none) (parameter (type-and-name int marker_number)) (parameter (type-and-name long back)) ) (method marker_add (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_add) (return-type int) (parameter (type-and-name int line)) (parameter (type-and-name int marker_number)) ) (method marker_delete (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_delete) (return-type none) (parameter (type-and-name int line)) (parameter (type-and-name int marker_number)) ) (method marker_delete_all (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_delete_all) (return-type none) (parameter (type-and-name int marker_number)) ) (method marker_get (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_get) (return-type int) (parameter (type-and-name int line)) ) (method marker_next (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_next) (return-type int) (parameter (type-and-name int line_start)) (parameter (type-and-name int marker_mask)) ) (method marker_previous (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_previous) (return-type int) (parameter (type-and-name int line_start)) (parameter (type-and-name int marker_mask)) ) (method set_margin_type_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_margin_type_n) (return-type none) (parameter (type-and-name int margin)) (parameter (type-and-name int margin_type)) ) (method get_margin_type_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_margin_type_n) (return-type int) (parameter (type-and-name int margin)) ) (method set_margin_width_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_margin_width_n) (return-type none) (parameter (type-and-name int margin)) (parameter (type-and-name int pixel_width)) ) (method get_margin_width_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_margin_width_n) (return-type int) (parameter (type-and-name int margin)) ) (method set_margin_mask_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_margin_mask_n) (return-type none) (parameter (type-and-name int margin)) (parameter (type-and-name int mask)) ) (method get_margin_mask_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_margin_mask_n) (return-type int) (parameter (type-and-name int margin)) ) (method set_margin_sensitive_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_margin_sensitive_n) (return-type none) (parameter (type-and-name int margin)) (parameter (type-and-name int sensitive)) ) (method get_margin_sensitive_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_margin_sensitive_n) (return-type int) (parameter (type-and-name int margin)) ) (method style_clear_all (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_clear_all) (return-type none) ) (method style_set_fore (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_fore) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name long fore)) ) (method style_set_back (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_back) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name long back)) ) (method style_set_bold (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_bold) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int bold)) ) (method style_set_italic (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_italic) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int italic)) ) (method style_set_size (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_size) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int size_points)) ) (method style_set_font (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_font) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name const-char* font_name)) ) (method style_set_eol_filled (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_eol_filled) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int filled)) ) (method style_reset_default (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_reset_default) (return-type none) ) (method style_set_underline (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_underline) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int underline)) ) (method style_set_case (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_case) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int case_force)) ) (method style_set_character_set (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_character_set) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int character_set)) ) (method set_sel_fore (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_sel_fore) (return-type none) (parameter (type-and-name int use_setting)) (parameter (type-and-name long fore)) ) (method set_sel_back (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_sel_back) (return-type none) (parameter (type-and-name int use_setting)) (parameter (type-and-name long back)) ) (method set_caret_fore (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_caret_fore) (return-type none) (parameter (type-and-name long fore)) ) (method clear_all_cmd_keys (of-object Scintilla (Gtk)) (c-name gtk_scintilla_clear_all_cmd_keys) (return-type none) ) (method set_styling_ex (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_styling_ex) (return-type none) (parameter (type-and-name int length)) (parameter (type-and-name const-char* styles)) ) (method style_set_visible (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_visible) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int visible)) ) (method get_caret_period (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_caret_period) (return-type int) ) (method set_caret_period (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_caret_period) (return-type none) (parameter (type-and-name int period_milliseconds)) ) (method set_word_chars (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_word_chars) (return-type none) (parameter (type-and-name const-char* characters)) ) (method begin_undo_action (of-object Scintilla (Gtk)) (c-name gtk_scintilla_begin_undo_action) (return-type none) ) (method end_undo_action (of-object Scintilla (Gtk)) (c-name gtk_scintilla_end_undo_action) (return-type none) ) (method indic_set_style (of-object Scintilla (Gtk)) (c-name gtk_scintilla_indic_set_style) (return-type none) (parameter (type-and-name int indic)) (parameter (type-and-name int style)) ) (method indic_get_style (of-object Scintilla (Gtk)) (c-name gtk_scintilla_indic_get_style) (return-type int) (parameter (type-and-name int indic)) ) (method indic_set_fore (of-object Scintilla (Gtk)) (c-name gtk_scintilla_indic_set_fore) (return-type none) (parameter (type-and-name int indic)) (parameter (type-and-name long fore)) ) (method indic_get_fore (of-object Scintilla (Gtk)) (c-name gtk_scintilla_indic_get_fore) (return-type long) (parameter (type-and-name int indic)) ) (method set_style_bits (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_style_bits) (return-type none) (parameter (type-and-name int bits)) ) (method get_style_bits (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_style_bits) (return-type int) ) (method set_line_state (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_line_state) (return-type none) (parameter (type-and-name int line)) (parameter (type-and-name int state)) ) (method get_line_state (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_line_state) (return-type int) (parameter (type-and-name int line)) ) (method get_max_line_state (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_max_line_state) (return-type int) ) (method get_caret_line_visible (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_caret_line_visible) (return-type int) ) (method set_caret_line_visible (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_caret_line_visible) (return-type none) (parameter (type-and-name int show)) ) (method get_caret_line_back (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_caret_line_back) (return-type long) ) (method set_caret_line_back (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_caret_line_back) (return-type none) (parameter (type-and-name long back)) ) (method autoc_show (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_show) (return-type none) (parameter (type-and-name int len_entered)) (parameter (type-and-name const-char* item_list)) ) (method autoc_cancel (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_cancel) (return-type none) ) (method autoc_active (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_active) (return-type int) ) (method autoc_pos_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_pos_start) (return-type long) ) (method autoc_complete (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_complete) (return-type none) ) (method autoc_stops (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_stops) (return-type none) (parameter (type-and-name const-char* character_set)) ) (method autoc_set_separator (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_set_separator) (return-type none) (parameter (type-and-name int separator_character)) ) (method autoc_get_separator (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_get_separator) (return-type int) ) (method autoc_select (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_select) (return-type none) (parameter (type-and-name const-char* text)) ) (method autoc_set_cancel_at_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_set_cancel_at_start) (return-type none) (parameter (type-and-name int cancel)) ) (method autoc_get_cancel_at_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_get_cancel_at_start) (return-type int) ) (method autoc_set_fill_ups (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_set_fill_ups) (return-type none) (parameter (type-and-name const-char* character_set)) ) (method autoc_set_choose_single (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_set_choose_single) (return-type none) (parameter (type-and-name int choose_single)) ) (method autoc_get_choose_single (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_get_choose_single) (return-type int) ) (method autoc_set_ignore_case (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_set_ignore_case) (return-type none) (parameter (type-and-name int ignore_case)) ) (method autoc_get_ignore_case (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_get_ignore_case) (return-type int) ) (method user_list_show (of-object Scintilla (Gtk)) (c-name gtk_scintilla_user_list_show) (return-type none) (parameter (type-and-name int list_type)) (parameter (type-and-name const-char* item_list)) ) (method autoc_set_auto_hide (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_set_auto_hide) (return-type none) (parameter (type-and-name int auto_hide)) ) (method autoc_get_auto_hide (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_get_auto_hide) (return-type int) ) (method set_indent (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_indent) (return-type none) (parameter (type-and-name int indent_size)) ) (method get_indent (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_indent) (return-type int) ) (method set_use_tabs (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_use_tabs) (return-type none) (parameter (type-and-name int use_tabs)) ) (method get_use_tabs (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_use_tabs) (return-type int) ) (method set_line_indentation (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_line_indentation) (return-type none) (parameter (type-and-name int line)) (parameter (type-and-name int indent_size)) ) (method get_line_indentation (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_line_indentation) (return-type int) (parameter (type-and-name int line)) ) (method get_line_indent_position (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_line_indent_position) (return-type long) (parameter (type-and-name int line)) ) (method get_column (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_column) (return-type int) (parameter (type-and-name long pos)) ) (method set_h_scroll_bar (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_h_scroll_bar) (return-type none) (parameter (type-and-name int show)) ) (method get_h_scroll_bar (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_h_scroll_bar) (return-type int) ) (method set_indentation_guides (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_indentation_guides) (return-type none) (parameter (type-and-name int show)) ) (method get_indentation_guides (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_indentation_guides) (return-type int) ) (method set_highlight_guide (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_highlight_guide) (return-type none) (parameter (type-and-name int column)) ) (method get_highlight_guide (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_highlight_guide) (return-type int) ) (method get_line_end_position (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_line_end_position) (return-type int) (parameter (type-and-name int line)) ) (method get_code_page (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_code_page) (return-type int) ) (method get_caret_fore (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_caret_fore) (return-type long) ) (method get_use_palette (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_use_palette) (return-type int) ) (method get_read_only (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_read_only) (return-type int) ) (method set_current_pos (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_current_pos) (return-type none) (parameter (type-and-name long pos)) ) (method set_selection_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_selection_start) (return-type none) (parameter (type-and-name long pos)) ) (method get_selection_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_selection_start) (return-type long) ) (method set_selection_end (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_selection_end) (return-type none) (parameter (type-and-name long pos)) ) (method get_selection_end (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_selection_end) (return-type long) ) (method set_print_magnification (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_print_magnification) (return-type none) (parameter (type-and-name int magnification)) ) (method get_print_magnification (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_print_magnification) (return-type int) ) (method set_print_colour_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_print_colour_mode) (return-type none) (parameter (type-and-name int mode)) ) (method get_print_colour_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_print_colour_mode) (return-type int) ) (method get_first_visible_line (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_first_visible_line) (return-type int) ) (method get_line (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_line) (return-type int) (parameter (type-and-name int line)) (parameter (type-and-name char* text)) ) (method get_line_count (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_line_count) (return-type int) ) (method set_margin_left (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_margin_left) (return-type none) (parameter (type-and-name int pixel_width)) ) (method get_margin_left (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_margin_left) (return-type int) ) (method set_margin_right (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_margin_right) (return-type none) (parameter (type-and-name int pixel_width)) ) (method get_margin_right (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_margin_right) (return-type int) ) (method get_modify (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_modify) (return-type int) ) (method set_sel (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_sel) (return-type none) (parameter (type-and-name long start)) (parameter (type-and-name long end)) ) (method get_sel_text (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_sel_text) (return-type int) (parameter (type-and-name char* text)) ) (method hide_selection (of-object Scintilla (Gtk)) (c-name gtk_scintilla_hide_selection) (return-type none) (parameter (type-and-name int normal)) ) (method point_x_from_position (of-object Scintilla (Gtk)) (c-name gtk_scintilla_point_x_from_position) (return-type int) (parameter (type-and-name long pos)) ) (method point_y_from_position (of-object Scintilla (Gtk)) (c-name gtk_scintilla_point_y_from_position) (return-type int) (parameter (type-and-name long pos)) ) (method line_from_position (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_from_position) (return-type int) (parameter (type-and-name long pos)) ) (method position_from_line (of-object Scintilla (Gtk)) (c-name gtk_scintilla_position_from_line) (return-type int) (parameter (type-and-name int line)) ) (method line_scroll (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_scroll) (return-type none) (parameter (type-and-name int columns)) (parameter (type-and-name int lines)) ) (method scroll_caret (of-object Scintilla (Gtk)) (c-name gtk_scintilla_scroll_caret) (return-type none) ) (method replace_sel (of-object Scintilla (Gtk)) (c-name gtk_scintilla_replace_sel) (return-type none) (parameter (type-and-name const-char* text)) ) (method set_read_only (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_read_only) (return-type none) (parameter (type-and-name int read_only)) ) (method null (of-object Scintilla (Gtk)) (c-name gtk_scintilla_null) (return-type none) ) (method can_paste (of-object Scintilla (Gtk)) (c-name gtk_scintilla_can_paste) (return-type int) ) (method can_undo (of-object Scintilla (Gtk)) (c-name gtk_scintilla_can_undo) (return-type int) ) (method empty_undo_buffer (of-object Scintilla (Gtk)) (c-name gtk_scintilla_empty_undo_buffer) (return-type none) ) (method undo (of-object Scintilla (Gtk)) (c-name gtk_scintilla_undo) (return-type none) ) (method cut (of-object Scintilla (Gtk)) (c-name gtk_scintilla_cut) (return-type none) ) (method copy (of-object Scintilla (Gtk)) (c-name gtk_scintilla_copy) (return-type none) ) (method paste (of-object Scintilla (Gtk)) (c-name gtk_scintilla_paste) (return-type none) ) (method clear (of-object Scintilla (Gtk)) (c-name gtk_scintilla_clear) (return-type none) ) (method set_text (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_text) (return-type none) (parameter (type-and-name const-char* text)) ) (method get_text (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_text) (return-type int) (parameter (type-and-name int length)) (parameter (type-and-name char* text)) ) (method get_text_length (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_text_length) (return-type int) ) (method get_direct_function (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_direct_function) (return-type int) ) (method get_direct_pointer (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_direct_pointer) (return-type int) ) (method set_overtype (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_overtype) (return-type none) (parameter (type-and-name int overtype)) ) (method get_overtype (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_overtype) (return-type int) ) (method set_caret_width (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_caret_width) (return-type none) (parameter (type-and-name int pixel_width)) ) (method get_caret_width (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_caret_width) (return-type int) ) (method set_target_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_target_start) (return-type none) (parameter (type-and-name long pos)) ) (method get_target_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_target_start) (return-type long) ) (method set_target_end (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_target_end) (return-type none) (parameter (type-and-name long pos)) ) (method get_target_end (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_target_end) (return-type long) ) (method replace_target (of-object Scintilla (Gtk)) (c-name gtk_scintilla_replace_target) (return-type int) (parameter (type-and-name int length)) (parameter (type-and-name const-char* text)) ) (method replace_target_re (of-object Scintilla (Gtk)) (c-name gtk_scintilla_replace_target_re) (return-type int) (parameter (type-and-name int length)) (parameter (type-and-name const-char* text)) ) (method search_in_target (of-object Scintilla (Gtk)) (c-name gtk_scintilla_search_in_target) (return-type int) (parameter (type-and-name int length)) (parameter (type-and-name const-char* text)) ) (method set_search_flags (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_search_flags) (return-type none) (parameter (type-and-name int flags)) ) (method get_search_flags (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_search_flags) (return-type int) ) (method call_tip_show (of-object Scintilla (Gtk)) (c-name gtk_scintilla_call_tip_show) (return-type none) (parameter (type-and-name long pos)) (parameter (type-and-name const-char* definition)) ) (method call_tip_cancel (of-object Scintilla (Gtk)) (c-name gtk_scintilla_call_tip_cancel) (return-type none) ) (method call_tip_active (of-object Scintilla (Gtk)) (c-name gtk_scintilla_call_tip_active) (return-type int) ) (method call_tip_pos_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_call_tip_pos_start) (return-type long) ) (method call_tip_set_hlt (of-object Scintilla (Gtk)) (c-name gtk_scintilla_call_tip_set_hlt) (return-type none) (parameter (type-and-name int start)) (parameter (type-and-name int end)) ) (method call_tip_set_back (of-object Scintilla (Gtk)) (c-name gtk_scintilla_call_tip_set_back) (return-type none) (parameter (type-and-name long back)) ) (method visible_from_doc_line (of-object Scintilla (Gtk)) (c-name gtk_scintilla_visible_from_doc_line) (return-type int) (parameter (type-and-name int line)) ) (method doc_line_from_visible (of-object Scintilla (Gtk)) (c-name gtk_scintilla_doc_line_from_visible) (return-type int) (parameter (type-and-name int line_display)) ) (method set_fold_level (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_fold_level) (return-type none) (parameter (type-and-name int line)) (parameter (type-and-name int level)) ) (method get_fold_level (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_fold_level) (return-type int) (parameter (type-and-name int line)) ) (method get_last_child (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_last_child) (return-type int) (parameter (type-and-name int line)) (parameter (type-and-name int level)) ) (method get_fold_parent (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_fold_parent) (return-type int) (parameter (type-and-name int line)) ) (method show_lines (of-object Scintilla (Gtk)) (c-name gtk_scintilla_show_lines) (return-type none) (parameter (type-and-name int line_start)) (parameter (type-and-name int line_end)) ) (method hide_lines (of-object Scintilla (Gtk)) (c-name gtk_scintilla_hide_lines) (return-type none) (parameter (type-and-name int line_start)) (parameter (type-and-name int line_end)) ) (method get_line_visible (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_line_visible) (return-type int) (parameter (type-and-name int line)) ) (method set_fold_expanded (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_fold_expanded) (return-type none) (parameter (type-and-name int line)) (parameter (type-and-name int expanded)) ) (method get_fold_expanded (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_fold_expanded) (return-type int) (parameter (type-and-name int line)) ) (method toggle_fold (of-object Scintilla (Gtk)) (c-name gtk_scintilla_toggle_fold) (return-type none) (parameter (type-and-name int line)) ) (method ensure_visible (of-object Scintilla (Gtk)) (c-name gtk_scintilla_ensure_visible) (return-type none) (parameter (type-and-name int line)) ) (method set_fold_flags (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_fold_flags) (return-type none) (parameter (type-and-name int flags)) ) (method set_tab_indents (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_tab_indents) (return-type none) (parameter (type-and-name int tab_indents)) ) (method get_tab_indents (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_tab_indents) (return-type int) ) (method set_backspace_unindents (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_backspace_unindents) (return-type none) (parameter (type-and-name int bs_unindents)) ) (method get_backspace_unindents (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_backspace_unindents) (return-type int) ) (method line_down (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_down) (return-type none) ) (method line_down_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_down_extend) (return-type none) ) (method line_up (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_up) (return-type none) ) (method line_up_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_up_extend) (return-type none) ) (method char_left (of-object Scintilla (Gtk)) (c-name gtk_scintilla_char_left) (return-type none) ) (method char_left_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_char_left_extend) (return-type none) ) (method char_right (of-object Scintilla (Gtk)) (c-name gtk_scintilla_char_right) (return-type none) ) (method char_right_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_char_right_extend) (return-type none) ) (method word_left (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_left) (return-type none) ) (method word_left_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_left_extend) (return-type none) ) (method word_right (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_right) (return-type none) ) (method word_right_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_right_extend) (return-type none) ) (method home (of-object Scintilla (Gtk)) (c-name gtk_scintilla_home) (return-type none) ) (method home_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_home_extend) (return-type none) ) (method line_end (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_end) (return-type none) ) (method line_end_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_end_extend) (return-type none) ) (method document_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_document_start) (return-type none) ) (method document_start_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_document_start_extend) (return-type none) ) (method document_end (of-object Scintilla (Gtk)) (c-name gtk_scintilla_document_end) (return-type none) ) (method document_end_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_document_end_extend) (return-type none) ) (method page_up (of-object Scintilla (Gtk)) (c-name gtk_scintilla_page_up) (return-type none) ) (method page_up_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_page_up_extend) (return-type none) ) (method page_down (of-object Scintilla (Gtk)) (c-name gtk_scintilla_page_down) (return-type none) ) (method page_down_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_page_down_extend) (return-type none) ) (method edit_toggle_overtype (of-object Scintilla (Gtk)) (c-name gtk_scintilla_edit_toggle_overtype) (return-type none) ) (method cancel (of-object Scintilla (Gtk)) (c-name gtk_scintilla_cancel) (return-type none) ) (method delete_back (of-object Scintilla (Gtk)) (c-name gtk_scintilla_delete_back) (return-type none) ) (method tab (of-object Scintilla (Gtk)) (c-name gtk_scintilla_tab) (return-type none) ) (method back_tab (of-object Scintilla (Gtk)) (c-name gtk_scintilla_back_tab) (return-type none) ) (method new_line (of-object Scintilla (Gtk)) (c-name gtk_scintilla_new_line) (return-type none) ) (method form_feed (of-object Scintilla (Gtk)) (c-name gtk_scintilla_form_feed) (return-type none) ) (method v_c_home (of-object Scintilla (Gtk)) (c-name gtk_scintilla_v_c_home) (return-type none) ) (method v_c_home_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_v_c_home_extend) (return-type none) ) (method zoom_in (of-object Scintilla (Gtk)) (c-name gtk_scintilla_zoom_in) (return-type none) ) (method zoom_out (of-object Scintilla (Gtk)) (c-name gtk_scintilla_zoom_out) (return-type none) ) (method del_word_left (of-object Scintilla (Gtk)) (c-name gtk_scintilla_del_word_left) (return-type none) ) (method del_word_right (of-object Scintilla (Gtk)) (c-name gtk_scintilla_del_word_right) (return-type none) ) (method line_cut (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_cut) (return-type none) ) (method line_delete (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_delete) (return-type none) ) (method line_transpose (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_transpose) (return-type none) ) (method lower_case (of-object Scintilla (Gtk)) (c-name gtk_scintilla_lower_case) (return-type none) ) (method upper_case (of-object Scintilla (Gtk)) (c-name gtk_scintilla_upper_case) (return-type none) ) (method line_scroll_down (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_scroll_down) (return-type none) ) (method line_scroll_up (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_scroll_up) (return-type none) ) (method move_caret_inside_view (of-object Scintilla (Gtk)) (c-name gtk_scintilla_move_caret_inside_view) (return-type none) ) (method line_length (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_length) (return-type int) (parameter (type-and-name int line)) ) (method brace_highlight (of-object Scintilla (Gtk)) (c-name gtk_scintilla_brace_highlight) (return-type none) (parameter (type-and-name long pos1)) (parameter (type-and-name long pos2)) ) (method brace_bad_light (of-object Scintilla (Gtk)) (c-name gtk_scintilla_brace_bad_light) (return-type none) (parameter (type-and-name long pos)) ) (method brace_match (of-object Scintilla (Gtk)) (c-name gtk_scintilla_brace_match) (return-type long) (parameter (type-and-name long pos)) ) (method get_view_eol (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_view_eol) (return-type int) ) (method set_view_eol (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_view_eol) (return-type none) (parameter (type-and-name int visible)) ) (method get_doc_pointer (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_doc_pointer) (return-type int) ) (method set_doc_pointer (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_doc_pointer) (return-type none) (parameter (type-and-name int pointer)) ) (method set_mod_event_mask (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_mod_event_mask) (return-type none) (parameter (type-and-name int mask)) ) (method get_edge_column (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_edge_column) (return-type int) ) (method set_edge_column (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_edge_column) (return-type none) (parameter (type-and-name int column)) ) (method get_edge_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_edge_mode) (return-type int) ) (method set_edge_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_edge_mode) (return-type none) (parameter (type-and-name int mode)) ) (method get_edge_colour (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_edge_colour) (return-type long) ) (method set_edge_colour (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_edge_colour) (return-type none) (parameter (type-and-name long edge_colour)) ) (method search_anchor (of-object Scintilla (Gtk)) (c-name gtk_scintilla_search_anchor) (return-type none) ) (method search_next (of-object Scintilla (Gtk)) (c-name gtk_scintilla_search_next) (return-type int) (parameter (type-and-name int flags)) (parameter (type-and-name const-char* text)) ) (method search_prev (of-object Scintilla (Gtk)) (c-name gtk_scintilla_search_prev) (return-type int) (parameter (type-and-name int flags)) (parameter (type-and-name const-char* text)) ) (method set_caret_policy (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_caret_policy) (return-type none) (parameter (type-and-name int caret_policy)) (parameter (type-and-name int caret_slop)) ) (method lines_on_screen (of-object Scintilla (Gtk)) (c-name gtk_scintilla_lines_on_screen) (return-type int) ) (method use_pop_up (of-object Scintilla (Gtk)) (c-name gtk_scintilla_use_pop_up) (return-type none) (parameter (type-and-name int allow_pop_up)) ) (method selection_is_rectangle (of-object Scintilla (Gtk)) (c-name gtk_scintilla_selection_is_rectangle) (return-type int) ) (method set_zoom (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_zoom) (return-type none) (parameter (type-and-name int zoom)) ) (method get_zoom (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_zoom) (return-type int) ) (method create_document (of-object Scintilla (Gtk)) (c-name gtk_scintilla_create_document) (return-type int) ) (method add_ref_document (of-object Scintilla (Gtk)) (c-name gtk_scintilla_add_ref_document) (return-type none) (parameter (type-and-name int doc)) ) (method release_document (of-object Scintilla (Gtk)) (c-name gtk_scintilla_release_document) (return-type none) (parameter (type-and-name int doc)) ) (method get_mod_event_mask (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_mod_event_mask) (return-type int) ) (method set_focus (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_focus) (return-type none) (parameter (type-and-name int focus)) ) (method get_focus (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_focus) (return-type int) ) (method set_status (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_status) (return-type none) (parameter (type-and-name int status_code)) ) (method get_status (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_status) (return-type int) ) (method set_mouse_down_captures (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_mouse_down_captures) (return-type none) (parameter (type-and-name int captures)) ) (method get_mouse_down_captures (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_mouse_down_captures) (return-type int) ) (method set_cursor (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_cursor) (return-type none) (parameter (type-and-name int cursor_type)) ) (method get_cursor (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_cursor) (return-type int) ) (method word_part_left (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_part_left) (return-type none) ) (method word_part_left_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_part_left_extend) (return-type none) ) (method word_part_right (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_part_right) (return-type none) ) (method word_part_right_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_part_right_extend) (return-type none) ) (method set_visible_policy (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_visible_policy) (return-type none) (parameter (type-and-name int visible_policy)) (parameter (type-and-name int visible_slop)) ) (method del_line_left (of-object Scintilla (Gtk)) (c-name gtk_scintilla_del_line_left) (return-type none) ) (method del_line_right (of-object Scintilla (Gtk)) (c-name gtk_scintilla_del_line_right) (return-type none) ) (method grab_focus (of-object Scintilla (Gtk)) (c-name gtk_scintilla_grab_focus) (return-type none) ) (method start_record (of-object Scintilla (Gtk)) (c-name gtk_scintilla_start_record) (return-type none) ) (method stop_record (of-object Scintilla (Gtk)) (c-name gtk_scintilla_stop_record) (return-type none) ) (method set_lexer (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_lexer) (return-type none) (parameter (type-and-name int lexer)) ) (method get_lexer (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_lexer) (return-type int) ) (method colourise (of-object Scintilla (Gtk)) (c-name gtk_scintilla_colourise) (return-type none) (parameter (type-and-name long start)) (parameter (type-and-name long end)) ) (method set_property (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_property) (return-type none) (parameter (type-and-name const-char* key)) (parameter (type-and-name const-char* value)) ) (method set_keywords (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_keywords) (return-type none) (parameter (type-and-name int keyword_set)) (parameter (type-and-name const-char* key_words)) ) (method set_lexer_language (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_lexer_language) (return-type none) (parameter (type-and-name const-char* language)) ) (method set_wrap_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_wrap_mode) (return-type none) (parameter (type-and-name int wrap_mode)) ) (method get_wrap_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_wrap_mode) (return-type int) ) http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/v1.scintilla.overrides?view=markup&rev=1.1 Index: php-gtk/ext/scintilla/v1.scintilla.overrides +++ php-gtk/ext/scintilla/v1.scintilla.overrides /* vim: set ft=cpp: */ %% headers #include <gtkscintilla.h> #include "ext/gtk+/php_gtk+.h" %% constants REGISTER_LONG_CONSTANT("SCINTILLA_INVALID_POSITION", INVALID_POSITION, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_WS_INVISIBLE", SCWS_INVISIBLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_WS_VISIBLEALWAYS", SCWS_VISIBLEALWAYS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_WS_VISIBLEAFTERINDENT", SCWS_VISIBLEAFTERINDENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EOL_CRLF", SC_EOL_CRLF, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EOL_CR", SC_EOL_CR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EOL_LF", SC_EOL_LF, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CP_UTF8", SC_CP_UTF8, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARKER_MAX", MARKER_MAX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_CIRCLE", SC_MARK_CIRCLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_ROUNDRECT", SC_MARK_ROUNDRECT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_ARROW", SC_MARK_ARROW, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_SMALLRECT", SC_MARK_SMALLRECT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_SHORTARROW", SC_MARK_SHORTARROW, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_EMPTY", SC_MARK_EMPTY, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_ARROWDOWN", SC_MARK_ARROWDOWN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_MINUS", SC_MARK_MINUS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_PLUS", SC_MARK_PLUS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARKNUM_FOLDER", SC_MARKNUM_FOLDER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARKNUM_FOLDEROPEN", SC_MARKNUM_FOLDEROPEN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARGIN_SYMBOL", SC_MARGIN_SYMBOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARGIN_NUMBER", SC_MARGIN_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_STYLE_DEFAULT", STYLE_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_STYLE_LINENUMBER", STYLE_LINENUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_STYLE_BRACELIGHT", STYLE_BRACELIGHT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_STYLE_BRACEBAD", STYLE_BRACEBAD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_STYLE_CONTROLCHAR", STYLE_CONTROLCHAR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_STYLE_INDENTGUIDE", STYLE_INDENTGUIDE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_STYLE_MAX", STYLE_MAX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_ANSI", SC_CHARSET_ANSI, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_DEFAULT", SC_CHARSET_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_BALTIC", SC_CHARSET_BALTIC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_CHINESEBIG5", SC_CHARSET_CHINESEBIG5, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_EASTEUROPE", SC_CHARSET_EASTEUROPE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_GB2312", SC_CHARSET_GB2312, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_GREEK", SC_CHARSET_GREEK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_HANGUL", SC_CHARSET_HANGUL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_MAC", SC_CHARSET_MAC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_OEM", SC_CHARSET_OEM, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_RUSSIAN", SC_CHARSET_RUSSIAN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_SHIFTJIS", SC_CHARSET_SHIFTJIS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_SYMBOL", SC_CHARSET_SYMBOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_TURKISH", SC_CHARSET_TURKISH, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_JOHAB", SC_CHARSET_JOHAB, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_HEBREW", SC_CHARSET_HEBREW, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_ARABIC", SC_CHARSET_ARABIC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_VIETNAMESE", SC_CHARSET_VIETNAMESE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_THAI", SC_CHARSET_THAI, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CASE_MIXED", SC_CASE_MIXED, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CASE_UPPER", SC_CASE_UPPER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CASE_LOWER", SC_CASE_LOWER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC_MAX", INDIC_MAX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC_PLAIN", INDIC_PLAIN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC_SQUIGGLE", INDIC_SQUIGGLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC_TT", INDIC_TT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC_DIAGONAL", INDIC_DIAGONAL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC_STRIKE", INDIC_STRIKE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC0_MASK", INDIC0_MASK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC1_MASK", INDIC1_MASK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC2_MASK", INDIC2_MASK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDICS_MASK", INDICS_MASK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FIND_WHOLEWORD", SCFIND_WHOLEWORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FIND_MATCHCASE", SCFIND_MATCHCASE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FIND_WORDSTART", SCFIND_WORDSTART, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FIND_REGEXP", SCFIND_REGEXP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FOLDLEVELBASE", SC_FOLDLEVELBASE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FOLDLEVELWHITEFLAG", SC_FOLDLEVELWHITEFLAG, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FOLDLEVELHEADERFLAG", SC_FOLDLEVELHEADERFLAG, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FOLDLEVELNUMBERMASK", SC_FOLDLEVELNUMBERMASK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EDGE_NONE", EDGE_NONE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EDGE_LINE", EDGE_LINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EDGE_BACKGROUND", EDGE_BACKGROUND, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CARET_SLOP", CARET_SLOP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CARET_CENTER", CARET_CENTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CARET_STRICT", CARET_STRICT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CARET_XEVEN", CARET_XEVEN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CURSORNORMAL", SC_CURSORNORMAL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CURSORWAIT", SC_CURSORWAIT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_VISIBLE_SLOP", VISIBLE_SLOP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_VISIBLE_STRICT", VISIBLE_STRICT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_INSERTTEXT", SC_MOD_INSERTTEXT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_DELETETEXT", SC_MOD_DELETETEXT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_CHANGESTYLE", SC_MOD_CHANGESTYLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_CHANGEFOLD", SC_MOD_CHANGEFOLD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERFORMED_USER", SC_PERFORMED_USER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERFORMED_UNDO", SC_PERFORMED_UNDO, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERFORMED_REDO", SC_PERFORMED_REDO, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LASTSTEPINUNDOREDO", SC_LASTSTEPINUNDOREDO, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_CHANGEMARKER", SC_MOD_CHANGEMARKER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_BEFOREINSERT", SC_MOD_BEFOREINSERT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_BEFOREDELETE", SC_MOD_BEFOREDELETE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MODEVENTMASKALL", SC_MODEVENTMASKALL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EN_CHANGE", SCEN_CHANGE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EN_SETFOCUS", SCEN_SETFOCUS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EN_KILLFOCUS", SCEN_KILLFOCUS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_DOWN", SCK_DOWN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_UP", SCK_UP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_LEFT", SCK_LEFT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_RIGHT", SCK_RIGHT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_HOME", SCK_HOME, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_END", SCK_END, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_PRIOR", SCK_PRIOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_NEXT", SCK_NEXT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_DELETE", SCK_DELETE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_INSERT", SCK_INSERT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_ESCAPE", SCK_ESCAPE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_BACK", SCK_BACK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_TAB", SCK_TAB, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_RETURN", SCK_RETURN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_ADD", SCK_ADD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_SUBTRACT", SCK_SUBTRACT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_DIVIDE", SCK_DIVIDE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_SHIFT", SCMOD_SHIFT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_CTRL", SCMOD_CTRL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_ALT", SCMOD_ALT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_CONTAINER", SCLEX_CONTAINER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_NULL", SCLEX_NULL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_PYTHON", SCLEX_PYTHON, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_CPP", SCLEX_CPP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_HTML", SCLEX_HTML, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_XML", SCLEX_XML, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_PERL", SCLEX_PERL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_SQL", SCLEX_SQL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_VB", SCLEX_VB, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_PROPERTIES", SCLEX_PROPERTIES, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_ERRORLIST", SCLEX_ERRORLIST, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_MAKEFILE", SCLEX_MAKEFILE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_BATCH", SCLEX_BATCH, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_XCODE", SCLEX_XCODE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_LATEX", SCLEX_LATEX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_LUA", SCLEX_LUA, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_DIFF", SCLEX_DIFF, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_CONF", SCLEX_CONF, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_PASCAL", SCLEX_PASCAL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_AVE", SCLEX_AVE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_ADA", SCLEX_ADA, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_LISP", SCLEX_LISP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_RUBY", SCLEX_RUBY, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_EIFFEL", SCLEX_EIFFEL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_EIFFELKW", SCLEX_EIFFELKW, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_AUTOMATIC", SCLEX_AUTOMATIC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_DEFAULT", SCE_P_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_COMMENTLINE", SCE_P_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_NUMBER", SCE_P_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_STRING", SCE_P_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_CHARACTER", SCE_P_CHARACTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_WORD", SCE_P_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_TRIPLE", SCE_P_TRIPLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_TRIPLEDOUBLE", SCE_P_TRIPLEDOUBLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_CLASSNAME", SCE_P_CLASSNAME, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_DEFNAME", SCE_P_DEFNAME, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_OPERATOR", SCE_P_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_IDENTIFIER", SCE_P_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_COMMENTBLOCK", SCE_P_COMMENTBLOCK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_STRINGEOL", SCE_P_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_DEFAULT", SCE_C_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_COMMENT", SCE_C_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_COMMENTLINE", SCE_C_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_COMMENTDOC", SCE_C_COMMENTDOC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_NUMBER", SCE_C_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_WORD", SCE_C_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_STRING", SCE_C_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_CHARACTER", SCE_C_CHARACTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_UUID", SCE_C_UUID, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_PREPROCESSOR", SCE_C_PREPROCESSOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_OPERATOR", SCE_C_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_IDENTIFIER", SCE_C_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_STRINGEOL", SCE_C_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_VERBATIM", SCE_C_VERBATIM, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_REGEX", SCE_C_REGEX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_COMMENTLINEDOC", SCE_C_COMMENTLINEDOC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_DEFAULT", SCE_H_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_TAG", SCE_H_TAG, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_TAGUNKNOWN", SCE_H_TAGUNKNOWN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_ATTRIBUTE", SCE_H_ATTRIBUTE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_ATTRIBUTEUNKNOWN", SCE_H_ATTRIBUTEUNKNOWN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_NUMBER", SCE_H_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_DOUBLESTRING", SCE_H_DOUBLESTRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_SINGLESTRING", SCE_H_SINGLESTRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_OTHER", SCE_H_OTHER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_COMMENT", SCE_H_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_ENTITY", SCE_H_ENTITY, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_TAGEND", SCE_H_TAGEND, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_XMLSTART", SCE_H_XMLSTART, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_XMLEND", SCE_H_XMLEND, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_SCRIPT", SCE_H_SCRIPT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_ASP", SCE_H_ASP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_ASPAT", SCE_H_ASPAT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_CDATA", SCE_H_CDATA, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_QUESTION", SCE_H_QUESTION, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VALUE", SCE_H_VALUE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_START", SCE_HJ_START, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_DEFAULT", SCE_HJ_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_COMMENT", SCE_HJ_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_COMMENTLINE", SCE_HJ_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_COMMENTDOC", SCE_HJ_COMMENTDOC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_NUMBER", SCE_HJ_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_WORD", SCE_HJ_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_KEYWORD", SCE_HJ_KEYWORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_DOUBLESTRING", SCE_HJ_DOUBLESTRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_SINGLESTRING", SCE_HJ_SINGLESTRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_SYMBOLS", SCE_HJ_SYMBOLS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_STRINGEOL", SCE_HJ_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_REGEX", SCE_HJ_REGEX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_START", SCE_HB_START, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_DEFAULT", SCE_HB_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_COMMENTLINE", SCE_HB_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_NUMBER", SCE_HB_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_WORD", SCE_HB_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_STRING", SCE_HB_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_IDENTIFIER", SCE_HB_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_STRINGEOL", SCE_HB_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_START", SCE_HP_START, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_DEFAULT", SCE_HP_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_COMMENTLINE", SCE_HP_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_NUMBER", SCE_HP_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_STRING", SCE_HP_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_CHARACTER", SCE_HP_CHARACTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_WORD", SCE_HP_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_TRIPLE", SCE_HP_TRIPLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_TRIPLEDOUBLE", SCE_HP_TRIPLEDOUBLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_CLASSNAME", SCE_HP_CLASSNAME, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_DEFNAME", SCE_HP_DEFNAME, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_OPERATOR", SCE_HP_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_IDENTIFIER", SCE_HP_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_DEFAULT", SCE_HPHP_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_HSTRING", SCE_HPHP_HSTRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_SIMPLESTRING", SCE_HPHP_SIMPLESTRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_WORD", SCE_HPHP_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_NUMBER", SCE_HPHP_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_VARIABLE", SCE_HPHP_VARIABLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_COMMENT", SCE_HPHP_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_COMMENTLINE", SCE_HPHP_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_HSTRING_VARIABLE", SCE_HPHP_HSTRING_VARIABLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_DEFAULT", SCE_PL_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_ERROR", SCE_PL_ERROR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_COMMENTLINE", SCE_PL_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_POD", SCE_PL_POD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_NUMBER", SCE_PL_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_WORD", SCE_PL_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_STRING", SCE_PL_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_CHARACTER", SCE_PL_CHARACTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_PUNCTUATION", SCE_PL_PUNCTUATION, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_PREPROCESSOR", SCE_PL_PREPROCESSOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_OPERATOR", SCE_PL_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_IDENTIFIER", SCE_PL_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_SCALAR", SCE_PL_SCALAR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_ARRAY", SCE_PL_ARRAY, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_HASH", SCE_PL_HASH, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_SYMBOLTABLE", SCE_PL_SYMBOLTABLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_REGEX", SCE_PL_REGEX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_REGSUBST", SCE_PL_REGSUBST, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_LONGQUOTE", SCE_PL_LONGQUOTE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_BACKTICKS", SCE_PL_BACKTICKS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_DATASECTION", SCE_PL_DATASECTION, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_HERE_DELIM", SCE_PL_HERE_DELIM, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_HERE_Q", SCE_PL_HERE_Q, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_HERE_QQ", SCE_PL_HERE_QQ, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_HERE_QX", SCE_PL_HERE_QX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_STRING_Q", SCE_PL_STRING_Q, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_STRING_QQ", SCE_PL_STRING_QQ, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_STRING_QX", SCE_PL_STRING_QX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_STRING_QR", SCE_PL_STRING_QR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_STRING_QW", SCE_PL_STRING_QW, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LATEX_DEFAULT", SCE_L_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LATEX_COMMAND", SCE_L_COMMAND, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LATEX_TAG", SCE_L_TAG, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LATEX_MATH", SCE_L_MATH, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LATEX_COMMENT", SCE_L_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_DEFAULT", SCE_LUA_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_COMMENT", SCE_LUA_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_COMMENTLINE", SCE_LUA_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_COMMENTDOC", SCE_LUA_COMMENTDOC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_NUMBER", SCE_LUA_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_WORD", SCE_LUA_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_STRING", SCE_LUA_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_CHARACTER", SCE_LUA_CHARACTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_LITERALSTRING", SCE_LUA_LITERALSTRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_PREPROCESSOR", SCE_LUA_PREPROCESSOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_OPERATOR", SCE_LUA_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_IDENTIFIER", SCE_LUA_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_STRINGEOL", SCE_LUA_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_DEFAULT", SCE_ERR_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_PYTHON", SCE_ERR_PYTHON, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_GCC", SCE_ERR_GCC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_MS", SCE_ERR_MS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_CMD", SCE_ERR_CMD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_BORLAND", SCE_ERR_BORLAND, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_PERL", SCE_ERR_PERL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_DIFF_CHANGED", SCE_ERR_DIFF_CHANGED, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_DIFF_ADDITION", SCE_ERR_DIFF_ADDITION, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_DIFF_DELETION", SCE_ERR_DIFF_DELETION, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_DIFF_MESSAGE", SCE_ERR_DIFF_MESSAGE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_DEFAULT", SCE_BAT_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_COMMENT", SCE_BAT_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_WORD", SCE_BAT_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_LABEL", SCE_BAT_LABEL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_HIDE", SCE_BAT_HIDE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_COMMAND", SCE_BAT_COMMAND, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_IDENTIFIER", SCE_BAT_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_OPERATOR", SCE_BAT_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MAKE_DEFAULT", SCE_MAKE_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MAKE_COMMENT", SCE_MAKE_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MAKE_PREPROCESSOR", SCE_MAKE_PREPROCESSOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MAKE_IDENTIFIER", SCE_MAKE_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MAKE_OPERATOR", SCE_MAKE_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MAKE_IDEOL", SCE_MAKE_IDEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_DEFAULT", SCE_CONF_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_COMMENT", SCE_CONF_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_NUMBER", SCE_CONF_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_IDENTIFIER", SCE_CONF_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_EXTENSION", SCE_CONF_EXTENSION, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_PARAMETER", SCE_CONF_PARAMETER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_STRING", SCE_CONF_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_OPERATOR", SCE_CONF_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_IP", SCE_CONF_IP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_DIRECTIVE", SCE_CONF_DIRECTIVE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_DEFAULT", SCE_AVE_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_COMMENT", SCE_AVE_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_NUMBER", SCE_AVE_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_WORD", SCE_AVE_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_KEYWORD", SCE_AVE_KEYWORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_STATEMENT", SCE_AVE_STATEMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_STRING", SCE_AVE_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_ENUM", SCE_AVE_ENUM, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_STRINGEOL", SCE_AVE_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_IDENTIFIER", SCE_AVE_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_OPERATOR", SCE_AVE_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_DEFAULT", SCE_ADA_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_COMMENT", SCE_ADA_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_NUMBER", SCE_ADA_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_WORD", SCE_ADA_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_STRING", SCE_ADA_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_CHARACTER", SCE_ADA_CHARACTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_OPERATOR", SCE_ADA_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_IDENTIFIER", SCE_ADA_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_STRINGEOL", SCE_ADA_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_DEFAULT", SCE_LISP_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_COMMENT", SCE_LISP_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_NUMBER", SCE_LISP_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_KEYWORD", SCE_LISP_KEYWORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_STRING", SCE_LISP_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_STRINGEOL", SCE_LISP_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_IDENTIFIER", SCE_LISP_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_OPERATOR", SCE_LISP_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_DEFAULT", SCE_EIFFEL_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_COMMENTLINE", SCE_EIFFEL_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_NUMBER", SCE_EIFFEL_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_WORD", SCE_EIFFEL_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_STRING", SCE_EIFFEL_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_CHARACTER", SCE_EIFFEL_CHARACTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_OPERATOR", SCE_EIFFEL_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_IDENTIFIER", SCE_EIFFEL_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_STRINGEOL", SCE_EIFFEL_STRINGEOL, CONST_CS | CONST_PERSISTENT); %% ignore-glob *_get_type %% override gtk_scintilla_add_text PHP_FUNCTION(gtk_scintilla_add_text) { char *text; int len; NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "s#", &text, &len)) return; gtk_scintilla_add_text(GTK_SCINTILLA(PHP_GTK_GET(this_ptr)), len, text); RETURN_NULL(); } %% override gtk_scintilla_get_cur_line PHP_FUNCTION(gtk_scintilla_get_cur_line) { int length, line_pos; char *text; GtkScintilla *scintilla = GTK_SCINTILLA(PHP_GTK_GET(this_ptr)); NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "")) return; length = gtk_scintilla_line_length(scintilla, gtk_scintilla_line_from_position(scintilla, gtk_scintilla_get_current_pos(scintilla))) + 1; text = (char *)emalloc(length); /* This function null-terminates the resulting string. */ line_pos = gtk_scintilla_get_cur_line(scintilla, length, text); *return_value = *php_gtk_build_value("(s#i)", text, length-1, line_pos); } %% override gtk_scintilla_get_text PHP_FUNCTION(gtk_scintilla_get_text) { int length; char *text; GtkScintilla *scintilla = GTK_SCINTILLA(PHP_GTK_GET(this_ptr)); NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "")) return; length = gtk_scintilla_get_text_length(scintilla) + 1; text = emalloc(length); /* This function null-terminates the string. */ gtk_scintilla_get_text(scintilla, length, text); RETURN_STRINGL(text, length-1, 0); } %% override gtk_scintilla_get_line PHP_FUNCTION(gtk_scintilla_get_line) { int line, length; char *text; GtkScintilla *scintilla = GTK_SCINTILLA(PHP_GTK_GET(this_ptr)); NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "i", &line)) return; length = gtk_scintilla_line_length(scintilla, line) + 1; text = emalloc(length); memset(text, 0, length); /* Scintilla has a bug: when you try to get non-existant line, it overwrites the buffer. So, we avoid it by checking length. */ if (length > 1) gtk_scintilla_get_line(scintilla, line, text); RETURN_STRINGL(text, length-1, 0); } %% override gtk_scintilla_get_sel_text /* TODO: fix to properly handle rectangular selections */ PHP_FUNCTION(gtk_scintilla_get_sel_text) { long length; char *text; GtkScintilla *scintilla = GTK_SCINTILLA(PHP_GTK_GET(this_ptr)); NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "")) return; length = gtk_scintilla_get_selection_end(scintilla) - gtk_scintilla_get_selection_start(scintilla) + 1; text = emalloc(length); text[length-1] = 0; gtk_scintilla_get_sel_text(scintilla, text); RETURN_STRINGL(text, length-1, 0); } %% override gtk_scintilla_replace_target PHP_FUNCTION(gtk_scintilla_replace_target) { int length; char *text; NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "s#", &text, &length)) return; length = gtk_scintilla_replace_target(GTK_SCINTILLA(PHP_GTK_GET(this_ptr)), length, text); RETURN_LONG(length); } %% override gtk_scintilla_replace_target_re PHP_FUNCTION(gtk_scintilla_replace_target_re) { int length; char *text; NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "s#", &text, &length)) return; length = gtk_scintilla_replace_target_re(GTK_SCINTILLA(PHP_GTK_GET(this_ptr)), length, text); RETURN_LONG(length); } %% override gtk_scintilla_search_in_target PHP_FUNCTION(gtk_scintilla_search_in_target) { #ifdef PHP_WIN32 RETURN_LONG(0); #else int length, pos; char *text; NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "s#", &text, &length)) return; RETURN_LONG(gtk_search_in_target(GTK_SCINTILLA(PHP_GTK_GET(this_ptr)), length, text)); #endif } %% override gtk_scintilla_find_text PHP_FUNCTION(gtk_scintilla_find_text) { int flags; char *text; long chrg_min = 0, chrg_max, text_min, text_max; GtkScintilla *scintilla = GTK_SCINTILLA(PHP_GTK_GET(this_ptr)); NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "is|ll", &flags, &text, &chrg_min, &chrg_max)) return; if (ZEND_NUM_ARGS() < 4) { chrg_max = gtk_scintilla_get_line_end_position(scintilla, gtk_scintilla_get_line_count(scintilla)); } RETURN_LONG(gtk_scintilla_find_text(scintilla, flags, text, chrg_min, chrg_max, &text_min, &text_max)); } http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/Makefile.frag?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/Makefile.frag +++ php-gtk/ext/sourceview/Makefile.frag $(builddir)/gen_sourceview.c: $(srcdir)/sourceview.defs $(srcdir)/sourceview.overrides ( \ $(PHP) $(top_srcdir)/generator/generator.php \ -l $(@D)/$(*F).log \ -r ext/gtk+/atk-types.defs \ -r ext/gtk+/pango-types.defs \ -r ext/gtk+/gdk-types.defs \ -r ext/gtk+/gtk-types.defs \ -o ext/sourceview/sourceview.overrides \ -p GtkSourceView \ -f $@ ext/sourceview/sourceview.defs \ && grep -h "^PHP_GTK_EXPORT_CE" $@ | sed -e "s!^!extern !" > $(@D)/$(*F).h \ ) http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/config.m4?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/config.m4 +++ php-gtk/ext/sourceview/config.m4 dnl $Id: config.m4,v 1.1 2006/03/03 14:49:06 anant Exp $ dnl config.m4 for sourceview module define(sourceview_required_version, 1.2.0) PHP_GTK_ARG_ENABLE(sourceview,for sourceview support, [ --enable-sourceview Enable sourceview support],no) if test "$PHP_GTK_SOURCEVIEW" != "no"; then PKG_CHECK_MODULES(SOURCEVIEW, [gtksourceview-1.0 >= sourceview_required_version], have_sourceview=yes, have_sourceview=no) if test "$have_sourceview" != "yes"; then AC_MSG_RESULT([Unable to locate sourceview version sourceview_required_version or higher: not building]) else AC_DEFINE(HAVE_SOURCEVIEW, 1, [sourceview support]) PHP_EVAL_INCLINE($SOURCEVIEW_CFLAGS) if test "$php_gtk_ext_shared" = "yes"; then PHP_EVAL_LIBLINE($SOURCEVIEW_LIBS, SOURCEVIEW_SHARED_LIBADD) PHP_SUBST(SOURCEVIEW_SHARED_LIBADD) else PHP_EVAL_LIBLINE($SOURCEVIEW_LIBS, PHP_GTK2_SHARED_LIBADD) fi PHP_GTK_EXTENSION(sourceview, $php_gtk_ext_shared, php_sourceview.c, gen_sourceview.c) fi fi http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/php_sourceview.c?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/php_sourceview.c +++ php-gtk/ext/sourceview/php_sourceview.c /* * PHP-GTK - The PHP language bindings for GTK+ * * Copyright (C) 2001,2002 Andrei Zmievski <andrei@php.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: php_sourceview.c,v 1.1 2006/03/03 14:49:06 anant Exp $ */ #include "php_sourceview.h" #if HAVE_SOURCEVIEW #ifdef COMPILE_DL_SOURCEVIEW PHP_GTK_GET_EXTENSION(sourceview) #endif PHP_GTK_XINIT_FUNCTION(sourceview) { phpg_sourceview_register_classes(); phpg_sourceview_register_constants("SOURCEVIEW_"); return SUCCESS; } php_gtk_ext_entry sourceview_ext_entry = { "sourceview", PHP_GTK_XINIT(sourceview), NULL, }; #endif /* HAVE_SOURCEVIEW */ http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/php_sourceview.h?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/php_sourceview.h +++ php-gtk/ext/sourceview/php_sourceview.h /* * PHP-GTK - The PHP language bindings for GTK+ * * Copyright (C) 2001,2002 Andrei Zmievski <andrei@php.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: php_sourceview.h,v 1.1 2006/03/03 14:49:06 anant Exp $ */ #ifndef PHP_SOURCEVIEW_H #define PHP_SOURCEVIEW_H #include "php_gtk.h" #if HAVE_SOURCEVIEW #include <gtksourceview/gtksourceview.h> extern php_gtk_ext_entry sourceview_ext_entry; #define php_gtk_ext_sourceview_ptr &sourceview_ext_entry void phpg_sourceview_register_classes(void); void phpg_sourceview_register_constants(const char *strip_prefix); #else #define php_gtk_ext_sourceview_ptr NULL #endif /* HAVE_SOURCEVIEW */ #endif /* PHP_SOURCEVIEW_H */ http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/ref.sourceview.defs?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/ref.sourceview.defs +++ php-gtk/ext/sourceview/ref.sourceview.defs ;; -*- scheme -*- ; object definitions ... (define-object SourceBuffer (in-module "Gtk") (parent "GtkTextBuffer") (c-name "GtkSourceBuffer") (gtype-id "GTK_TYPE_SOURCE_BUFFER") ) (define-object SourceLanguage (in-module "Gtk") (parent "GObject") (c-name "GtkSourceLanguage") (gtype-id "GTK_TYPE_SOURCE_LANGUAGE") ) (define-object SourceLanguagesManager (in-module "Gtk") (parent "GObject") (c-name "GtkSourceLanguagesManager") (gtype-id "GTK_TYPE_SOURCE_LANGUAGES_MANAGER") ) (define-object SourcePrintJob (in-module "Gtk") (parent "GObject") (c-name "GtkSourcePrintJob") (gtype-id "GTK_TYPE_SOURCE_PRINT_JOB") ) (define-object SourceTagTable (in-module "Gtk") (parent "GtkTextTagTable") (c-name "GtkSourceTagTable") (gtype-id "GTK_TYPE_SOURCE_TAG_TABLE") ) (define-object SourceView (in-module "Gtk") (parent "GtkTextView") (c-name "GtkSourceView") (gtype-id "GTK_TYPE_SOURCE_VIEW") ) ;; Interfaces (define-interface SourceStyleScheme (in-module "Gtk") (c-name "GtkSourceStyleScheme") (gtype-id "GTK_TYPE_SOURCE_STYLE_SCHEME") ) ;; Boxed types (define-boxed SourceTagStyle (in-module "Gtk") (c-name "GtkSourceTagStyle") (gtype-id "GTK_TYPE_SOURCE_TAG_STYLE") (copy-func "gtk_source_tag_style_copy") (release-func "gtk_source_tag_style_free") (fields '("gboolean" "is_default") '("guint" "mask") '("GdkColor" "foreground") '("GdkColor" "background") '("gboolean" "italic") '("gboolean" "bold") '("gboolean" "underline") '("gboolean" "strikethrough") ) ) ;; Typedefs (define-object SourceMarker (in-module "Gtk") (parent "GtkTextMark") (c-name "GtkSourceMarker") (gtype-id "GTK_TYPE_SOURCE_MARKER") ) ;; Enumerations and flags ... (define-flags SourceSearchFlags (in-module "Gtk") (c-name "GtkSourceSearchFlags") (gtype-id "GTK_TYPE_SOURCE_SEARCH_FLAGS") (values '("visible-only" "GTK_SOURCE_SEARCH_VISIBLE_ONLY") '("text-only" "GTK_SOURCE_SEARCH_TEXT_ONLY") '("case-insensitive" "GTK_SOURCE_SEARCH_CASE_INSENSITIVE") ) ) (define-flags SourceTagStyleMask (in-module "Gtk") (c-name "GtkSourceTagStyleMask") (gtype-id "GTK_TYPE_SOURCE_TAG_STYLE_MASK") (values '("background" "GTK_SOURCE_TAG_STYLE_USE_BACKGROUND") '("foreground" "GTK_SOURCE_TAG_STYLE_USE_FOREGROUND") ) ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/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" (null-ok) (default "NULL")) ) ) (define-function gtk_source_buffer_new_with_language (c-name "gtk_source_buffer_new_with_language") (is-constructor-of "GtkSourceBuffer") (return-type "GtkSourceBuffer*") (parameters '("GtkSourceLanguage*" "language") ) ) (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_match_style (of-object "GtkSourceBuffer") (c-name "gtk_source_buffer_set_bracket_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_language (of-object "GtkSourceBuffer") (c-name "gtk_source_buffer_get_language") (return-type "GtkSourceLanguage*") ) (define-method set_language (of-object "GtkSourceBuffer") (c-name "gtk_source_buffer_set_language") (return-type "none") (parameters '("GtkSourceLanguage*" "language" (null-ok)) ) ) (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" (null-ok)) '("const-gchar*" "type" (null-ok)) '("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") ) ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourceiter.h (define-function gtk_source_iter_forward_search (c-name "gtk_source_iter_forward_search") (return-type "gboolean") (parameters '("const-GtkTextIter*" "iter") '("const-gchar*" "str") '("GtkSourceSearchFlags" "flags") '("GtkTextIter*" "match_start") '("GtkTextIter*" "match_end") '("const-GtkTextIter*" "limit") ) ) (define-function gtk_source_iter_backward_search (c-name "gtk_source_iter_backward_search") (return-type "gboolean") (parameters '("const-GtkTextIter*" "iter") '("const-gchar*" "str") '("GtkSourceSearchFlags" "flags") '("GtkTextIter*" "match_start") '("GtkTextIter*" "match_end") '("const-GtkTextIter*" "limit") ) ) (define-function gtk_source_iter_find_matching_bracket (c-name "gtk_source_iter_find_matching_bracket") (return-type "gboolean") (parameters '("GtkTextIter*" "iter") ) ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourcelanguage.h (define-function gtk_source_language_get_type (c-name "gtk_source_language_get_type") (return-type "GType") ) (define-method get_id (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_id") (return-type "gchar*") ) (define-method get_name (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_name") (return-type "gchar*") ) (define-method get_section (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_section") (return-type "gchar*") ) (define-method get_tags (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_tags") (return-type "GSList*") ) (define-method get_escape_char (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_escape_char") (return-type "gunichar") ) (define-method get_mime_types (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_mime_types") (return-type "GSList*") ) (define-method set_mime_types (of-object "GtkSourceLanguage") (c-name "gtk_source_language_set_mime_types") (return-type "none") (parameters '("const-GSList*" "mime_types") ) ) (define-method get_style_scheme (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_style_scheme") (return-type "GtkSourceStyleScheme*") ) (define-method set_style_scheme (of-object "GtkSourceLanguage") (c-name "gtk_source_language_set_style_scheme") (return-type "none") (parameters '("GtkSourceStyleScheme*" "scheme") ) ) (define-method get_tag_style (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_tag_style") (return-type "GtkSourceTagStyle*") (parameters '("const-gchar*" "tag_id") ) ) (define-method set_tag_style (of-object "GtkSourceLanguage") (c-name "gtk_source_language_set_tag_style") (return-type "none") (parameters '("const-gchar*" "tag_id") '("const-GtkSourceTagStyle*" "style" (null-ok)) ) ) (define-method get_tag_default_style (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_tag_default_style") (return-type "GtkSourceTagStyle*") (parameters '("const-gchar*" "tag_id") ) ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourcelanguagesmanager.h (define-function gtk_source_languages_manager_get_type (c-name "gtk_source_languages_manager_get_type") (return-type "GType") ) (define-function gtk_source_languages_manager_new (c-name "gtk_source_languages_manager_new") (is-constructor-of "GtkSourceLanguagesManager") (return-type "GtkSourceLanguagesManager*") ) (define-method get_available_languages (of-object "GtkSourceLanguagesManager") (c-name "gtk_source_languages_manager_get_available_languages") (return-type "const-GSList*") ) (define-method get_language_from_mime_type (of-object "GtkSourceLanguagesManager") (c-name "gtk_source_languages_manager_get_language_from_mime_type") (return-type "GtkSourceLanguage*") (parameters '("const-gchar*" "mime_type") ) ) (define-method get_lang_files_dirs (of-object "GtkSourceLanguagesManager") (c-name "gtk_source_languages_manager_get_lang_files_dirs") (return-type "const-GSList*") ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourcemarker.h (define-function gtk_source_marker_get_type (c-name "gtk_source_marker_get_type") (return-type "GType") ) (define-method set_marker_type (of-object "GtkSourceMarker") (c-name "gtk_source_marker_set_marker_type") (return-type "none") (parameters '("const-gchar*" "type") ) ) (define-method get_marker_type (of-object "GtkSourceMarker") (c-name "gtk_source_marker_get_marker_type") (return-type "gchar*") ) (define-method get_line (of-object "GtkSourceMarker") (c-name "gtk_source_marker_get_line") (return-type "gint") ) (define-method get_name (of-object "GtkSourceMarker") (c-name "gtk_source_marker_get_name") (return-type "const-gchar*") ) (define-method get_buffer (of-object "GtkSourceMarker") (c-name "gtk_source_marker_get_buffer") (return-type "GtkSourceBuffer*") ) (define-method next (of-object "GtkSourceMarker") (c-name "gtk_source_marker_next") (return-type "GtkSourceMarker*") ) (define-method prev (of-object "GtkSourceMarker") (c-name "gtk_source_marker_prev") (return-type "GtkSourceMarker*") ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourceprintjob.h (define-function gtk_source_print_job_get_type (c-name "gtk_source_print_job_get_type") (return-type "GType") ) (define-function gtk_source_print_job_new (c-name "gtk_source_print_job_new") (is-constructor-of "GtkSourcePrintJob") (return-type "GtkSourcePrintJob*") (parameters '("GnomePrintConfig*" "config" (null-ok) (default "NULL")) ) ) (define-function gtk_source_print_job_new_with_buffer (c-name "gtk_source_print_job_new_with_buffer") (is-constructor-of "GtkSourcePrintJob") (return-type "GtkSourcePrintJob*") (parameters '("GnomePrintConfig*" "config" (null-ok) (default "NULL")) '("GtkSourceBuffer*" "buffer") ) ) (define-method set_config (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_config") (return-type "none") (parameters '("GnomePrintConfig*" "config") ) ) (define-method get_config (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_config") (return-type "GnomePrintConfig*") ) (define-method set_buffer (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_buffer") (return-type "none") (parameters '("GtkSourceBuffer*" "buffer") ) ) (define-method get_buffer (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_buffer") (return-type "GtkSourceBuffer*") ) (define-method setup_from_view (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_setup_from_view") (return-type "none") (parameters '("GtkSourceView*" "view") ) ) (define-method set_tabs_width (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_tabs_width") (return-type "none") (parameters '("guint" "tabs_width") ) ) (define-method get_tabs_width (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_tabs_width") (return-type "guint") ) (define-method set_wrap_mode (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_wrap_mode") (return-type "none") (parameters '("GtkWrapMode" "wrap") ) ) (define-method get_wrap_mode (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_wrap_mode") (return-type "GtkWrapMode") ) (define-method set_highlight (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_highlight") (return-type "none") (parameters '("gboolean" "highlight") ) ) (define-method get_highlight (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_highlight") (return-type "gboolean") ) (define-method set_font (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_font") (return-type "none") (parameters '("const-gchar*" "font_name") ) ) (define-method get_font (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_font") (return-type "gchar*") ) (define-method set_numbers_font (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_numbers_font") (return-type "none") (parameters '("const-gchar*" "font_name" (null-ok)) ) ) (define-method get_numbers_font (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_numbers_font") (return-type "gchar*") ) (define-method set_print_numbers (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_print_numbers") (return-type "none") (parameters '("guint" "interval") ) ) (define-method get_print_numbers (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_print_numbers") (return-type "guint") ) (define-method set_text_margins (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_text_margins") (return-type "none") (parameters '("gdouble" "top") '("gdouble" "bottom") '("gdouble" "left") '("gdouble" "right") ) ) (define-method get_text_margins (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_text_margins") (return-type "none") (parameters '("gdouble*" "top") '("gdouble*" "bottom") '("gdouble*" "left") '("gdouble*" "right") ) ) (define-method set_font_desc (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_font_desc") (return-type "none") (parameters '("PangoFontDescription*" "desc") ) ) (define-method get_font_desc (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_font_desc") (return-type "PangoFontDescription*") ) (define-method set_numbers_font_desc (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_numbers_font_desc") (return-type "none") (parameters '("PangoFontDescription*" "desc" (null-ok)) ) ) (define-method get_numbers_font_desc (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_numbers_font_desc") (return-type "PangoFontDescription*") ) (define-method set_header_footer_font_desc (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_header_footer_font_desc") (return-type "none") (parameters '("PangoFontDescription*" "desc" (null-ok)) ) ) (define-method get_header_footer_font_desc (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_header_footer_font_desc") (return-type "PangoFontDescription*") ) (define-method print (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_print") (return-type "GnomePrintJob*") ) (define-method print_range (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_print_range") (return-type "GnomePrintJob*") (parameters '("const-GtkTextIter*" "start") '("const-GtkTextIter*" "end") ) ) (define-method print_range_async (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_print_range_async") (return-type "gboolean") (parameters '("const-GtkTextIter*" "start") '("const-GtkTextIter*" "end") ) ) (define-method cancel (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_cancel") (return-type "none") ) (define-method get_print_job (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_print_job") (return-type "GnomePrintJob*") ) (define-method get_page (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_page") (return-type "guint") ) (define-method get_page_count (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_page_count") (return-type "guint") ) (define-method get_print_context (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_print_context") (return-type "GnomePrintContext*") ) (define-method set_print_header (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_print_header") (return-type "none") (parameters '("gboolean" "setting") ) ) (define-method get_print_header (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_print_header") (return-type "gboolean") ) (define-method set_print_footer (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_print_footer") (return-type "none") (parameters '("gboolean" "setting") ) ) (define-method get_print_footer (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_print_footer") (return-type "gboolean") ) (define-method set_header_footer_font (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_header_footer_font") (return-type "none") (parameters '("const-gchar*" "font_name" (null-ok)) ) ) (define-method get_header_footer_font (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_header_footer_font") (return-type "gchar*") ) (define-method set_header_format (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_header_format") (return-type "none") (parameters '("const-gchar*" "left" (null-ok)) '("const-gchar*" "center" (null-ok)) '("const-gchar*" "right" (null-ok)) '("gboolean" "separator") ) ) (define-method set_footer_format (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_footer_format") (return-type "none") (parameters '("const-gchar*" "left" (null-ok)) '("const-gchar*" "center" (null-ok)) '("const-gchar*" "right" (null-ok)) '("gboolean" "separator") ) ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourcestylescheme.h (define-function gtk_source_style_scheme_get_type (c-name "gtk_source_style_scheme_get_type") (return-type "GType") ) (define-method get_tag_style (of-object "GtkSourceStyleScheme") (c-name "gtk_source_style_scheme_get_tag_style") (return-type "GtkSourceTagStyle*") (parameters '("const-gchar*" "style_name") ) ) (define-method get_name (of-object "GtkSourceStyleScheme") (c-name "gtk_source_style_scheme_get_name") (return-type "const-gchar*") ) (define-method get_style_names (of-object "GtkSourceStyleScheme") (c-name "gtk_source_style_scheme_get_style_names") (return-type "GSList*") ) (define-function gtk_source_style_scheme_get_default (c-name "gtk_source_style_scheme_get_default") (return-type "GtkSourceStyleScheme*") ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourcetag.h (define-function gtk_source_tag_get_type (c-name "gtk_source_tag_get_type") (return-type "GType") ) (define-method get_id (of-object "GtkSourceTag") (c-name "gtk_source_tag_get_id") (return-type "gchar*") ) (define-method get_style (of-object "GtkSourceTag") (c-name "gtk_source_tag_get_style") (return-type "GtkSourceTagStyle*") ) (define-method set_style (of-object "GtkSourceTag") (c-name "gtk_source_tag_set_style") (return-type "none") (parameters '("const-GtkSourceTagStyle*" "style") ) ) (define-function gtk_syntax_tag_get_type (c-name "gtk_syntax_tag_get_type") (return-type "GType") ) (define-function gtk_syntax_tag_new (c-name "gtk_syntax_tag_new") (is-constructor-of "GtkSyntaxTag") (return-type "GtkTextTag*") (parameters '("const-gchar*" "id") '("const-gchar*" "name") '("const-gchar*" "pattern_start") '("const-gchar*" "pattern_end") ) ) (define-function gtk_pattern_tag_get_type (c-name "gtk_pattern_tag_get_type") (return-type "GType") ) (define-function gtk_pattern_tag_new (c-name "gtk_pattern_tag_new") (is-constructor-of "GtkPatternTag") (return-type "GtkTextTag*") (parameters '("const-gchar*" "id") '("const-gchar*" "name") '("const-gchar*" "pattern") ) ) (define-function gtk_keyword_list_tag_new (c-name "gtk_keyword_list_tag_new") (is-constructor-of "GtkKeywordListTag") (return-type "GtkTextTag*") (parameters '("const-gchar*" "id") '("const-gchar*" "name") '("const-GSList*" "keywords") '("gboolean" "case_sensitive") '("gboolean" "match_empty_string_at_beginning") '("gboolean" "match_empty_string_at_end") '("const-gchar*" "beginning_regex") '("const-gchar*" "end_regex") ) ) (define-function gtk_line_comment_tag_new (c-name "gtk_line_comment_tag_new") (is-constructor-of "GtkLineCommentTag") (return-type "GtkTextTag*") (parameters '("const-gchar*" "id") '("const-gchar*" "name") '("const-gchar*" "pattern_start") ) ) (define-function gtk_string_tag_new (c-name "gtk_string_tag_new") (is-constructor-of "GtkStringTag") (return-type "GtkTextTag*") (parameters '("const-gchar*" "id") '("const-gchar*" "name") '("const-gchar*" "pattern_start") '("const-gchar*" "pattern_end") '("gboolean" "end_at_line_end") ) ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourcetagstyle.h (define-function gtk_source_tag_style_get_type (c-name "gtk_source_tag_style_get_type") (return-type "GType") ) (define-function gtk_source_tag_style_new (c-name "gtk_source_tag_style_new") (is-constructor-of "GtkSourceTagStyle") (return-type "GtkSourceTagStyle*") ) (define-method copy (of-object "GtkSourceTagStyle") (c-name "gtk_source_tag_style_copy") (return-type "GtkSourceTagStyle*") ) (define-method free (of-object "GtkSourceTagStyle") (c-name "gtk_source_tag_style_free") (return-type "none") ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourcetagtable.h (define-function gtk_source_tag_table_get_type (c-name "gtk_source_tag_table_get_type") (return-type "GType") ) (define-function gtk_source_tag_table_new (c-name "gtk_source_tag_table_new") (is-constructor-of "GtkSourceTagTable") (return-type "GtkSourceTagTable*") ) (define-method add_tags (of-object "GtkSourceTagTable") (c-name "gtk_source_tag_table_add_tags") (return-type "none") (parameters '("const-GSList*" "tags") ) ) (define-method remove_source_tags (of-object "GtkSourceTagTable") (c-name "gtk_source_tag_table_remove_source_tags") (return-type "none") ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/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") (is-constructor-of "GtkSourceView") (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" (null-ok)) ) ) (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 /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourceview-typebuiltins.h (define-function gtk_source_search_flags_get_type (c-name "gtk_source_search_flags_get_type") (return-type "GType") ) (define-function gtk_source_tag_style_mask_get_type (c-name "gtk_source_tag_style_mask_get_type") (return-type "GType") ) http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/ref.sourceview.overrides?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/ref.sourceview.overrides +++ php-gtk/ext/sourceview/ref.sourceview.overrides /* -*- C -*- */ %% headers #define NO_IMPORT_PYGOBJECT #include "pygobject.h" #include <gtksourceview/gtksourcebuffer.h> #include <gtksourceview/gtksourceiter.h> #include <gtksourceview/gtksourcelanguage.h> #include <gtksourceview/gtksourcelanguagesmanager.h> #include <gtksourceview/gtksourcemarker.h> #include <gtksourceview/gtksourceprintjob.h> #include <gtksourceview/gtksourcestylescheme.h> #include <gtksourceview/gtksourcetag.h> #include <gtksourceview/gtksourcetagstyle.h> #include <gtksourceview/gtksourcetagtable.h> #include <gtksourceview/gtksourceview.h> #include <gtksourceview/gtksourceview-typebuiltins.h> static PyObject * _gslist_to_pylist_objs (const GSList *source) { const GSList *iter; PyObject *dest = PyList_New (0); for (iter = source; iter != NULL; iter = iter->next) { PyObject *item = pygobject_new ((GObject *)iter->data); PyList_Append (dest, item); Py_DECREF (item); } return dest; } static PyObject * _gslist_to_pylist_strs (const GSList *source) { const GSList *iter; PyObject *dest = PyList_New (0); for (iter = source; iter != NULL; iter = iter->next) { PyObject *item = PyString_FromString ((char *)iter->data); PyList_Append (dest, item); Py_DECREF (item); } return dest; } %% modulename gtksourceview %% import gobject.GObject as PyGObject_Type import gtk.gdk.Pixbuf as PyGdkPixbuf_Type import gtk.TextView as PyGtkTextView_Type import gtk.TextBuffer as PyGtkTextBuffer_Type import gtk.TextIter as PyGtkTextIter_Type import gtk.TextTag as PyGtkTextTag_Type import gtk.TextMark as PyGtkTextMark_Type import gtk.TextTagTable as PyGtkTextTagTable_Type import gnomeprint.Config as PyGnomePrintConfig_Type import pango.FontDescription as PyPangoFontDescription_Type %% ignore gtk_source_view_new_with_buffer gtk_source_buffer_new_with_language gtk_source_print_job_new_with_buffer %% ignore-glob *_get_type _* %% override gtk_source_view_new static int _wrap_gtk_source_view_new (PyGObject *self, PyObject *args, PyObject *kwargs) { static char *kwlist[] = { "buffer", NULL }; PyGObject *buffer = NULL; if (!PyArg_ParseTupleAndKeywords (args, kwargs, "|O!:GtkSourceView.__init__", kwlist, &PyGtkSourceBuffer_Type, &buffer)) return -1; if (buffer) self->obj = (GObject *)gtk_source_view_new_with_buffer (GTK_SOURCE_BUFFER(buffer->obj)); else self->obj = (GObject *)gtk_source_view_new (); if (!self->obj) { PyErr_SetString (PyExc_RuntimeError, "could not create GtkSourceView object"); return -1; } pygobject_register_wrapper ((PyObject *)self); return 0; } %% override gtk_source_buffer_new static int _wrap_gtk_source_buffer_new (PyGObject *self, PyObject *args, PyObject *kwargs) { static char *kwlist[] = { "table", "lang", NULL }; PyGObject *table = NULL, *lang = NULL; if (!PyArg_ParseTupleAndKeywords (args, kwargs, "|O!O!:GtkSourceBuffer.__init__", kwlist, &PyGtkSourceTagTable_Type, &table, &PyGtkSourceLanguage_Type, &lang)) return -1; if (lang) self->obj = (GObject *)gtk_source_buffer_new_with_language (GTK_SOURCE_LANGUAGE(lang->obj)); else if (table) self->obj = (GObject *)gtk_source_buffer_new (GTK_SOURCE_TAG_TABLE(table->obj)); else self->obj = (GObject *)gtk_source_buffer_new (NULL); if (!self->obj) { PyErr_SetString (PyExc_RuntimeError, "could not create GtkSourceBuffer object"); return -1; } pygobject_register_wrapper ((PyObject *)self); return 0; } %% override gtk_source_print_job_new static int _wrap_gtk_source_print_job_new (PyGObject *self, PyObject *args, PyObject *kwargs) { static char *kwlist[] = { "config", "buffer", NULL }; PyGObject *config = NULL, *buffer = NULL; if (!PyArg_ParseTupleAndKeywords (args, kwargs, "|O!O!:GtkSourcePrintJob.__init__", kwlist, &PyGnomePrintConfig_Type, &config, &PyGtkSourceBuffer_Type, &buffer)) return -1; if (config && buffer) self->obj = (GObject *)gtk_source_print_job_new_with_buffer ( GNOME_PRINT_CONFIG(config->obj), GTK_SOURCE_BUFFER(buffer->obj)); else if (buffer) self->obj = (GObject *)gtk_source_print_job_new_with_buffer (NULL, GTK_SOURCE_BUFFER(buffer->obj)); else if (config) self->obj = (GObject *)gtk_source_print_job_new (GNOME_PRINT_CONFIG(config->obj)); else self->obj = (GObject *)gtk_source_print_job_new (NULL); if (!self->obj) { PyErr_SetString (PyExc_RuntimeError, "could not create GtkSourcePrintJob object"); return -1; } pygobject_register_wrapper ((PyObject *)self); return 0; } %% override gtk_source_buffer_get_markers_in_region static PyObject * _wrap_gtk_source_buffer_get_markers_in_region (PyGObject *self, PyObject *args) { GSList *source; PyObject *dest, *py_start, *py_end; GtkTextIter *start, *end; if (!PyArg_ParseTuple (args, "OO:GtkSourceLanguage.get_tags", &py_start, &py_end)) return NULL; if (pyg_boxed_check (py_start, GTK_TYPE_TEXT_ITER) && pyg_boxed_check (py_end, GTK_TYPE_TEXT_ITER)) { start = pyg_boxed_get (py_start, GtkTextIter); end = pyg_boxed_get (py_end, GtkTextIter); } else { PyErr_SetString (PyExc_TypeError, "start and end must be gtk.TextIters"); return NULL; } source = gtk_source_buffer_get_markers_in_region (GTK_SOURCE_BUFFER(self->obj), start, end); dest = _gslist_to_pylist_objs(source); g_slist_free(source); return dest; } %% override gtk_source_language_get_tags static PyObject * _wrap_gtk_source_language_get_tags (PyGObject *self) { GSList *source; PyObject *dest; source = gtk_source_language_get_tags (GTK_SOURCE_LANGUAGE(self->obj)); dest = _gslist_to_pylist_objs(source); g_slist_free(source); return dest; } %% override gtk_source_language_get_mime_types static PyObject * _wrap_gtk_source_language_get_mime_types (PyGObject *self) { GSList *source; PyObject *dest; source = gtk_source_language_get_tags (GTK_SOURCE_LANGUAGE(self->obj)); dest = _gslist_to_pylist_strs(source); g_slist_free(source); return dest; } %% override gtk_source_language_set_mime_types static PyObject * _wrap_gtk_source_language_set_mime_types (PyGObject *self, PyObject *args) { PyObject *source; GSList *dest = NULL; int len, i; if (!PyArg_ParseTuple (args, "O:GtkSourceTagTable.add_tags", &source)) return NULL; if (!PySequence_Check (source)) { PyErr_SetString (PyExc_TypeError, "argument must be a sequence"); return NULL; } len = PySequence_Length (source); for (i = 0; i < len; i++) { PyObject *item = PySequence_GetItem (source, i); Py_DECREF (item); if (!PyString_Check (item) && !PyUnicode_Check (item)) { PyErr_SetString (PyExc_TypeError, "sequence item not a string or unicode object"); g_slist_free (dest); return NULL; } dest = g_slist_append(dest, PyString_AsString(item)); } gtk_source_tag_table_add_tags(GTK_SOURCE_TAG_TABLE(self->obj), dest); g_slist_free(dest); Py_INCREF(Py_None); return Py_None; } %% override gtk_source_languages_manager_get_available_languages static PyObject * _wrap_gtk_source_languages_manager_get_available_languages (PyGObject *self) { const GSList *source; PyObject *dest; source = gtk_source_languages_manager_get_available_languages ( GTK_SOURCE_LANGUAGES_MANAGER(self->obj)); dest = _gslist_to_pylist_objs(source); return dest; } %% override gtk_source_languages_manager_get_lang_files_dirs static PyObject * _wrap_gtk_source_languages_manager_get_lang_files_dirs (PyGObject *self) { const GSList *source; PyObject *dest; source = gtk_source_languages_manager_get_lang_files_dirs ( GTK_SOURCE_LANGUAGES_MANAGER(self->obj)); dest = _gslist_to_pylist_strs(source); return dest; } %% override gtk_source_style_scheme_get_style_names static PyObject * _wrap_gtk_source_style_scheme_get_style_names (PyGObject *self) { GSList *source; PyObject *dest; source = gtk_source_style_scheme_get_style_names (GTK_SOURCE_STYLE_SCHEME(self->obj)); dest = _gslist_to_pylist_strs(source); g_slist_free(source); return dest; } %% override-attr GtkSourceTagStyle.bold static int _wrap_gtk_source_tag_style__set_bold(PyGObject *self, PyObject *value, void *closure) { pyg_boxed_get (self, GtkSourceTagStyle)->bold = PyObject_IsTrue(value); return 0; } %% override-attr GtkSourceTagStyle.italic static int _wrap_gtk_source_tag_style__set_italic(PyGObject *self, PyObject *value, void *closure) { pyg_boxed_get (self, GtkSourceTagStyle)->italic = PyObject_IsTrue(value); return 0; } %% override-attr GtkSourceTagStyle.underline static int _wrap_gtk_source_tag_style__set_underline(PyGObject *self, PyObject *value, void *closure) { pyg_boxed_get (self, GtkSourceTagStyle)->underline = PyObject_IsTrue(value); return 0; } %% override-attr GtkSourceTagStyle.strikethrough static int _wrap_gtk_source_tag_style__set_strikethrough(PyGObject *self, PyObject *value, void *closure) { pyg_boxed_get (self, GtkSourceTagStyle)->strikethrough = PyObject_IsTrue(value); return 0; } %% override-attr GtkSourceTagStyle.foreground static int _wrap_gtk_source_tag_style__set_foreground(PyGObject *self, PyObject *value, void *closure) { if (value == Py_None) pyg_boxed_get (self, GtkSourceTagStyle)->mask &= ~GTK_SOURCE_TAG_STYLE_USE_FOREGROUND; else { if (!pyg_boxed_check (value, GDK_TYPE_COLOR)) { PyErr_SetString(PyExc_TypeError, "a gtk.gdk.Color object or None is required"); return -1; } pyg_boxed_get (self, GtkSourceTagStyle)->foreground = *(pyg_boxed_get (value, GdkColor)); pyg_boxed_get (self, GtkSourceTagStyle)->mask |= GTK_SOURCE_TAG_STYLE_USE_FOREGROUND; } return 0; } %% override-attr GtkSourceTagStyle.background static int _wrap_gtk_source_tag_style__set_background(PyGObject *self, PyObject *value, void *closure) { if (value == Py_None) pyg_boxed_get (self, GtkSourceTagStyle)->mask &= ~GTK_SOURCE_TAG_STYLE_USE_BACKGROUND; else { if (!pyg_boxed_check (value, GDK_TYPE_COLOR)) { PyErr_SetString(PyExc_TypeError, "a gtk.gdk.Color object or None is required"); return -1; } pyg_boxed_get (self, GtkSourceTagStyle)->background = *(pyg_boxed_get (value, GdkColor)); pyg_boxed_get (self, GtkSourceTagStyle)->mask |= GTK_SOURCE_TAG_STYLE_USE_BACKGROUND; } return 0; } %% override gtk_source_tag_table_add_tags static PyObject * _wrap_gtk_source_tag_table_add_tags (PyGObject *self, PyObject *args) { PyObject *source; GSList *dest = NULL; int len, i; if (!PyArg_ParseTuple (args, "O:GtkSourceTagTable.add_tags", &source)) return NULL; if (!PySequence_Check (source)) { PyErr_SetString (PyExc_TypeError, "argument must be a sequence"); return NULL; } len = PySequence_Length (source); for (i = 0; i < len; i++) { PyObject *item = PySequence_GetItem (source, i); Py_DECREF (item); if (!PyObject_TypeCheck (item, &PyGtkTextTag_Type)) { PyErr_SetString (PyExc_TypeError, "sequence item not a gtk.TextTag"); g_slist_free (dest); return NULL; } dest = g_slist_append(dest, GTK_TEXT_TAG(((PyGObject *)item)->obj)); } gtk_source_tag_table_add_tags(GTK_SOURCE_TAG_TABLE(self->obj), dest); g_slist_free(dest); Py_INCREF (Py_None); return Py_None; } %% override gtk_source_print_job_get_text_margins static PyObject * _wrap_gtk_source_print_job_get_text_margins (PyGObject *self) { gdouble top, bottom, left, right; gtk_source_print_job_get_text_margins (GTK_SOURCE_PRINT_JOB(self->obj), &top, &bottom, &left, &right); return Py_BuildValue("(dddd)", top, bottom, left, right); } %% http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/sourceview.defs?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/sourceview.defs +++ php-gtk/ext/sourceview/sourceview.defs ; object definitions ... (define-object SourceBuffer (in-module "Gtk") (parent "GtkTextBuffer") (c-name "GtkSourceBuffer") (gtype-id "GTK_TYPE_SOURCE_BUFFER") ) (define-object SourceLanguage (in-module "Gtk") (parent "GObject") (c-name "GtkSourceLanguage") (gtype-id "GTK_TYPE_SOURCE_LANGUAGE") ) (define-object SourceTagTable (in-module "Gtk") (parent "GtkTextTagTable") (c-name "GtkSourceTagTable") (gtype-id "GTK_TYPE_SOURCE_TAG_TABLE") ) (define-object SourceView (in-module "Gtk") (parent "GtkTextView") (c-name "GtkSourceView") (gtype-id "GTK_TYPE_SOURCE_VIEW") ) ;; Interfaces (define-interface SourceStyleScheme (in-module "Gtk") (c-name "GtkSourceStyleScheme") (gtype-id "GTK_TYPE_SOURCE_STYLE_SCHEME") ) ;; Boxed types (define-boxed SourceTagStyle (in-module "Gtk") (c-name "GtkSourceTagStyle") (gtype-id "GTK_TYPE_SOURCE_TAG_STYLE") (copy-func "gtk_source_tag_style_copy") (release-func "gtk_source_tag_style_free") (fields '("gboolean" "is_default") '("guint" "mask") '("GdkColor" "foreground") '("GdkColor" "background") '("gboolean" "italic") '("gboolean" "bold") '("gboolean" "underline") '("gboolean" "strikethrough") ) ) ;; Typedefs (define-object SourceMarker (in-module "Gtk") (parent "GtkTextMark") (c-name "GtkSourceMarker") (gtype-id "GTK_TYPE_SOURCE_MARKER") ) ;; From /usr/include/gtksourceview-1.0/gtksourceview/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" (null-ok) (default "NULL")) ) ) (define-function gtk_source_buffer_new_with_language (c-name "gtk_source_buffer_new_with_language") (is-constructor-of "GtkSourceBuffer") (return-type "GtkSourceBuffer*") (parameters '("GtkSourceLanguage*" "language") ) ) (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_match_style (of-object "GtkSourceBuffer") (c-name "gtk_source_buffer_set_bracket_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_language (of-object "GtkSourceBuffer") (c-name "gtk_source_buffer_get_language") (return-type "GtkSourceLanguage*") ) (define-method set_language (of-object "GtkSourceBuffer") (c-name "gtk_source_buffer_set_language") (return-type "none") (parameters '("GtkSourceLanguage*" "language" (null-ok)) ) ) (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" (null-ok)) '("const-gchar*" "type" (null-ok)) '("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") ) ) ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourceiter.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourcelanguage.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourcelanguagesmanager.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourcemarker.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourceprintjob.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourcestylescheme.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourcetag.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourcetagstyle.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/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") (is-constructor-of "GtkSourceView") (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_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 /usr/include/gtksourceview-1.0/gtksourceview/gtksourceview-typebuiltins.h ;; Added from gtk-types.defs to resolve undeclared errors. (define-object TextBuffer (in-module "Gtk") (parent "GObject") (c-name "GtkTextBuffer") (gtype-id "GTK_TYPE_TEXT_BUFFER") (fields '("GtkTextTagTable*" "tag_table") ) ) (define-object TextTagTable (in-module "Gtk") (parent "GObject") (c-name "GtkTextTagTable") (gtype-id "GTK_TYPE_TEXT_TAG_TABLE") ) (define-object TextView (in-module "Gtk") (parent "GtkContainer") (c-name "GtkTextView") (gtype-id "GTK_TYPE_TEXT_VIEW") ) (define-object TextMark (in-module "Gtk") (parent "GObject") (c-name "GtkTextMark") (gtype-id "GTK_TYPE_TEXT_MARK") ) (define-object Container (in-module "Gtk") (parent "GtkWidget") (c-name "GtkContainer") (gtype-id "GTK_TYPE_CONTAINER") (fields '("GtkWidget*" "focus_child") '("guint" "border_width") '("guint" "need_resize") '("guint" "resize_mode") '("guint" "reallocate_redraws") '("guint" "has_focus_chain") ) ) (define-object Widget (in-module "Gtk") (parent "GtkObject") (c-name "GtkWidget") (gtype-id "GTK_TYPE_WIDGET") (fields '("guint8" "state") '("guint8" "saved_state") '("gchar*" "name") '("GtkStyle*" "style") '("GdkRectangle" "allocation") '("GdkWindow*" "window") '("GtkWidget*" "parent") ) ) (define-object Object (in-module "Gtk") (parent "GObject") (c-name "GtkObject") (gtype-id "GTK_TYPE_OBJECT") ) http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/sourceview.overrides?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/sourceview.overrides +++ php-gtk/ext/sourceview/sourceview.overrides /* vim: set ft=cpp: */ %% headers #include <gtksourceview/gtksourceview.h> #include "ext/gtk+/php_gtk+.h" %% constants %% ignore-glob *_get_type
http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/Makefile.frag?r1=1.2&r2=1.3&diff_format=u Index: php-gtk/ext/scintilla/Makefile.frag diff -u /dev/null php-gtk/ext/scintilla/Makefile.frag:1.3 --- /dev/null Fri Mar 3 14:49:07 2006 +++ php-gtk/ext/scintilla/Makefile.frag Fri Mar 3 14:49:06 2006 @@ -0,0 +1,14 @@ + +$(builddir)/gen_scintilla.c: $(srcdir)/scintilla.defs $(srcdir)/scintilla.overrides + ( \ + $(PHP) $(top_srcdir)/generator/generator.php \ + -l $(@D)/$(*F).log \ + -r ext/gtk+/atk-types.defs \ + -r ext/gtk+/pango-types.defs \ + -r ext/gtk+/gdk-types.defs \ + -r ext/gtk+/gtk-types.defs \ + -o ext/scintilla/scintilla.overrides \ + -p GtkScintilla \ + -f $@ ext/scintilla/scintilla.defs \ + && grep -h "^PHP_GTK_EXPORT_CE" $@ | sed -e "s!^!extern !" > $(@D)/$(*F).h \ + ) http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/config.m4?r1=1.5&r2=1.6&diff_format=u Index: php-gtk/ext/scintilla/config.m4 diff -u /dev/null php-gtk/ext/scintilla/config.m4:1.6 --- /dev/null Fri Mar 3 14:49:07 2006 +++ php-gtk/ext/scintilla/config.m4 Fri Mar 3 14:49:06 2006 @@ -0,0 +1,25 @@ +dnl $Id: config.m4,v 1.6 2006/03/03 14:49:06 anant Exp $ +dnl config.m4 for scintilla module + +define(scintilla_required_version, 0.1.0) + +PHP_GTK_ARG_ENABLE(scintilla,for scintilla support, +[ --enable-scintilla Enable scintilla support],no) + +if test "$PHP_GTK_SCINTILLA" != "no"; then + PKG_CHECK_MODULES(SCINTILLA, [GtkScintilla-2.0 >= scintilla_required_version], + have_scintilla=yes, have_scintilla=no) + if test "$have_scintilla" != "yes"; then + AC_MSG_RESULT([Unable to locate scintilla version scintilla_required_version or higher: not building]) + else + AC_DEFINE(HAVE_SCINTILLA, 1, [scintilla support]) + PHP_EVAL_INCLINE($SCINTILLA_CFLAGS) + if test "$php_gtk_ext_shared" = "yes"; then + PHP_EVAL_LIBLINE($SCINTILLA_LIBS, SCINTILLA_SHARED_LIBADD) + PHP_SUBST(SCINTILLA_SHARED_LIBADD) + else + PHP_EVAL_LIBLINE($SCINTILLA_LIBS, PHP_GTK2_SHARED_LIBADD) + fi + PHP_GTK_EXTENSION(scintilla, $php_gtk_ext_shared, php_scintilla.c, gen_scintilla.c) + fi +fi http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/php_scintilla.c?r1=1.6&r2=1.7&diff_format=u Index: php-gtk/ext/scintilla/php_scintilla.c diff -u /dev/null php-gtk/ext/scintilla/php_scintilla.c:1.7 --- /dev/null Fri Mar 3 14:49:07 2006 +++ php-gtk/ext/scintilla/php_scintilla.c Fri Mar 3 14:49:06 2006 @@ -0,0 +1,45 @@ +/* + * PHP-GTK - The PHP language bindings for GTK+ + * + * Copyright (C) 2001,2002 Andrei Zmievski <andrei@php.net> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* $Id: php_scintilla.c,v 1.7 2006/03/03 14:49:06 anant Exp $ */ + +#include "php_scintilla.h" + +#if HAVE_SCINTILLA + +#ifdef COMPILE_DL_SCINTILLA +PHP_GTK_GET_EXTENSION(scintilla) +#endif + +PHP_GTK_XINIT_FUNCTION(scintilla) +{ + php_scintilla_register_classes(); + php_scintilla_register_constants("SCINTILLA_"); + + return SUCCESS; +} + +php_gtk_ext_entry scintilla_ext_entry = { + "scintilla", + PHP_GTK_XINIT(scintilla), + NULL, +}; + +#endif /* HAVE_SCINTILLA */ http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/php_scintilla.h?r1=1.5&r2=1.6&diff_format=u Index: php-gtk/ext/scintilla/php_scintilla.h diff -u /dev/null php-gtk/ext/scintilla/php_scintilla.h:1.6 --- /dev/null Fri Mar 3 14:49:07 2006 +++ php-gtk/ext/scintilla/php_scintilla.h Fri Mar 3 14:49:06 2006 @@ -0,0 +1,44 @@ +/* + * PHP-GTK - The PHP language bindings for GTK+ + * + * Copyright (C) 2001,2002 Andrei Zmievski <andrei@php.net> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* $Id: php_scintilla.h,v 1.6 2006/03/03 14:49:06 anant Exp $ */ + +#ifndef PHP_SCINTILLA_H +#define PHP_SCINTILLA_H + +#include "php_gtk.h" + +#if HAVE_SCINTILLA + +#include <gtkscintilla2/gtkscintilla.h> + +extern php_gtk_ext_entry scintilla_ext_entry; +#define php_gtk_ext_scintilla_ptr &scintilla_ext_entry + +void phpg_scintilla_register_classes(void); +void phpg_scintilla_register_constants(const char *strip_prefix); + +#else + +#define php_gtk_ext_scintilla_ptr NULL + +#endif /* HAVE_SCINTILLA */ + +#endif /* PHP_SCINTILLA_H */ http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/scintilla.defs?r1=1.4&r2=1.5&diff_format=u Index: php-gtk/ext/scintilla/scintilla.defs diff -u /dev/null php-gtk/ext/scintilla/scintilla.defs:1.5 --- /dev/null Fri Mar 3 14:49:07 2006 +++ php-gtk/ext/scintilla/scintilla.defs Fri Mar 3 14:49:06 2006 @@ -0,0 +1,78 @@ +;; -*- scheme -*- +; object definitions ... +(define-object Scintilla + (in-module "Gtk") + (parent "GtkFrame") + (c-name "GtkScintilla") + (gtype-id "GTK_TYPE_SCINTILLA") +) + +;; Enumerations and flags ... + +;; From /usr/include/gtkscintilla.h + +(define-function gtk_scintilla_get_type + (c-name "gtk_scintilla_get_type") + (return-type "guint") +) + +(define-function gtk_scintilla_new + (c-name "gtk_scintilla_new") + (is-constructor-of "GtkScintilla") + (return-type "GtkWidget*") +) + +(define-object Frame + (in-module "Gtk") + (parent "GtkBin") + (c-name "GtkFrame") + (gtype-id "GTK_TYPE_FRAME") +) + +(define-object Bin + (in-module "Gtk") + (parent "GtkContainer") + (c-name "GtkBin") + (gtype-id "GTK_TYPE_BIN") + (fields + '("GtkWidget*" "child") + ) +) + +(define-object Container + (in-module "Gtk") + (parent "GtkWidget") + (c-name "GtkContainer") + (gtype-id "GTK_TYPE_CONTAINER") + (fields + '("GtkWidget*" "focus_child") + '("guint" "border_width") + '("guint" "need_resize") + '("guint" "resize_mode") + '("guint" "reallocate_redraws") + '("guint" "has_focus_chain") + ) +) + +(define-object Widget + (in-module "Gtk") + (parent "GtkObject") + (c-name "GtkWidget") + (gtype-id "GTK_TYPE_WIDGET") + (fields + '("guint8" "state") + '("guint8" "saved_state") + '("gchar*" "name") + '("GtkStyle*" "style") + '("GdkRectangle" "allocation") + '("GdkWindow*" "window") + '("GtkWidget*" "parent") + ) +) + +(define-object Object + (in-module "Gtk") + (parent "GObject") + (c-name "GtkObject") + (gtype-id "GTK_TYPE_OBJECT") +) http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/scintilla.overrides?r1=1.8&r2=1.9&diff_format=u Index: php-gtk/ext/scintilla/scintilla.overrides diff -u /dev/null php-gtk/ext/scintilla/scintilla.overrides:1.9 --- /dev/null Fri Mar 3 14:49:07 2006 +++ php-gtk/ext/scintilla/scintilla.overrides Fri Mar 3 14:49:06 2006 @@ -0,0 +1,9 @@ +/* vim: set ft=cpp: */ +%% +headers +#include <gtkscintilla2/gtkscintilla.h> +#include "ext/gtk+/php_gtk+.h" + +%% +ignore-glob + *_get_type http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/v1.scintilla.defs?view=markup&rev=1.1 Index: php-gtk/ext/scintilla/v1.scintilla.defs +++ php-gtk/ext/scintilla/v1.scintilla.defs ;; -*- scheme -*- ; object definitions ... (object Scintilla (in-module Gtk) (parent Frame (Gtk)) (c-name GtkScintilla) ) ;; Enumerations and flags ... ;; From /usr/include/gtkscintilla.h (function gtk_scintilla_get_type (c-name gtk_scintilla_get_type) (return-type guint) ) (function gtk_scintilla_new (c-name gtk_scintilla_new) (is-constructor-of GtkScintilla) (return-type GtkWidget*) ) (method find_text (of-object Scintilla (Gtk)) (c-name gtk_scintilla_find_text) (return-type long) (parameter (type-and-name int flags)) (parameter (type-and-name char* text)) (parameter (type-and-name long chrg_min)) (parameter (type-and-name long chrg_max)) (parameter (type-and-name long* text_min)) (parameter (type-and-name long* text_max)) ) (method add_text (of-object Scintilla (Gtk)) (c-name gtk_scintilla_add_text) (return-type none) (parameter (type-and-name int length)) (parameter (type-and-name const-char* text)) ) (method insert_text (of-object Scintilla (Gtk)) (c-name gtk_scintilla_insert_text) (return-type none) (parameter (type-and-name long pos)) (parameter (type-and-name const-char* text)) ) (method clear_all (of-object Scintilla (Gtk)) (c-name gtk_scintilla_clear_all) (return-type none) ) (method clear_document_style (of-object Scintilla (Gtk)) (c-name gtk_scintilla_clear_document_style) (return-type none) ) (method get_length (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_length) (return-type int) ) (method get_char_at (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_char_at) (return-type int) (parameter (type-and-name long pos)) ) (method get_current_pos (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_current_pos) (return-type long) ) (method get_anchor (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_anchor) (return-type long) ) (method get_style_at (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_style_at) (return-type int) (parameter (type-and-name long pos)) ) (method redo (of-object Scintilla (Gtk)) (c-name gtk_scintilla_redo) (return-type none) ) (method set_undo_collection (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_undo_collection) (return-type none) (parameter (type-and-name int collect_undo)) ) (method select_all (of-object Scintilla (Gtk)) (c-name gtk_scintilla_select_all) (return-type none) ) (method set_save_point (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_save_point) (return-type none) ) (method can_redo (of-object Scintilla (Gtk)) (c-name gtk_scintilla_can_redo) (return-type int) ) (method marker_line_from_handle (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_line_from_handle) (return-type int) (parameter (type-and-name int handle)) ) (method marker_delete_handle (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_delete_handle) (return-type none) (parameter (type-and-name int handle)) ) (method get_undo_collection (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_undo_collection) (return-type int) ) (method get_view_ws (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_view_ws) (return-type int) ) (method set_view_ws (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_view_ws) (return-type none) (parameter (type-and-name int view_ws)) ) (method position_from_point (of-object Scintilla (Gtk)) (c-name gtk_scintilla_position_from_point) (return-type int) (parameter (type-and-name int x)) (parameter (type-and-name int y)) ) (method goto_line (of-object Scintilla (Gtk)) (c-name gtk_scintilla_goto_line) (return-type none) (parameter (type-and-name int line)) ) (method goto_pos (of-object Scintilla (Gtk)) (c-name gtk_scintilla_goto_pos) (return-type none) (parameter (type-and-name long pos)) ) (method set_anchor (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_anchor) (return-type none) (parameter (type-and-name long pos_anchor)) ) (method get_cur_line (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_cur_line) (return-type int) (parameter (type-and-name int length)) (parameter (type-and-name char* text)) ) (method get_end_styled (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_end_styled) (return-type long) ) (method convert_eols (of-object Scintilla (Gtk)) (c-name gtk_scintilla_convert_eols) (return-type none) (parameter (type-and-name int eol_mode)) ) (method get_eol_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_eol_mode) (return-type int) ) (method set_eol_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_eol_mode) (return-type none) (parameter (type-and-name int eol_mode)) ) (method start_styling (of-object Scintilla (Gtk)) (c-name gtk_scintilla_start_styling) (return-type none) (parameter (type-and-name long pos)) (parameter (type-and-name int mask)) ) (method set_styling (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_styling) (return-type none) (parameter (type-and-name int length)) (parameter (type-and-name int style)) ) (method get_buffered_draw (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_buffered_draw) (return-type int) ) (method set_buffered_draw (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_buffered_draw) (return-type none) (parameter (type-and-name int buffered)) ) (method set_tab_width (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_tab_width) (return-type none) (parameter (type-and-name int tab_width)) ) (method get_tab_width (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_tab_width) (return-type int) ) (method set_code_page (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_code_page) (return-type none) (parameter (type-and-name int code_page)) ) (method set_use_palette (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_use_palette) (return-type none) (parameter (type-and-name int use_palette)) ) (method marker_define (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_define) (return-type none) (parameter (type-and-name int marker_number)) (parameter (type-and-name int marker_symbol)) ) (method marker_set_fore (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_set_fore) (return-type none) (parameter (type-and-name int marker_number)) (parameter (type-and-name long fore)) ) (method marker_set_back (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_set_back) (return-type none) (parameter (type-and-name int marker_number)) (parameter (type-and-name long back)) ) (method marker_add (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_add) (return-type int) (parameter (type-and-name int line)) (parameter (type-and-name int marker_number)) ) (method marker_delete (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_delete) (return-type none) (parameter (type-and-name int line)) (parameter (type-and-name int marker_number)) ) (method marker_delete_all (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_delete_all) (return-type none) (parameter (type-and-name int marker_number)) ) (method marker_get (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_get) (return-type int) (parameter (type-and-name int line)) ) (method marker_next (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_next) (return-type int) (parameter (type-and-name int line_start)) (parameter (type-and-name int marker_mask)) ) (method marker_previous (of-object Scintilla (Gtk)) (c-name gtk_scintilla_marker_previous) (return-type int) (parameter (type-and-name int line_start)) (parameter (type-and-name int marker_mask)) ) (method set_margin_type_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_margin_type_n) (return-type none) (parameter (type-and-name int margin)) (parameter (type-and-name int margin_type)) ) (method get_margin_type_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_margin_type_n) (return-type int) (parameter (type-and-name int margin)) ) (method set_margin_width_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_margin_width_n) (return-type none) (parameter (type-and-name int margin)) (parameter (type-and-name int pixel_width)) ) (method get_margin_width_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_margin_width_n) (return-type int) (parameter (type-and-name int margin)) ) (method set_margin_mask_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_margin_mask_n) (return-type none) (parameter (type-and-name int margin)) (parameter (type-and-name int mask)) ) (method get_margin_mask_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_margin_mask_n) (return-type int) (parameter (type-and-name int margin)) ) (method set_margin_sensitive_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_margin_sensitive_n) (return-type none) (parameter (type-and-name int margin)) (parameter (type-and-name int sensitive)) ) (method get_margin_sensitive_n (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_margin_sensitive_n) (return-type int) (parameter (type-and-name int margin)) ) (method style_clear_all (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_clear_all) (return-type none) ) (method style_set_fore (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_fore) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name long fore)) ) (method style_set_back (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_back) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name long back)) ) (method style_set_bold (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_bold) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int bold)) ) (method style_set_italic (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_italic) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int italic)) ) (method style_set_size (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_size) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int size_points)) ) (method style_set_font (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_font) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name const-char* font_name)) ) (method style_set_eol_filled (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_eol_filled) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int filled)) ) (method style_reset_default (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_reset_default) (return-type none) ) (method style_set_underline (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_underline) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int underline)) ) (method style_set_case (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_case) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int case_force)) ) (method style_set_character_set (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_character_set) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int character_set)) ) (method set_sel_fore (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_sel_fore) (return-type none) (parameter (type-and-name int use_setting)) (parameter (type-and-name long fore)) ) (method set_sel_back (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_sel_back) (return-type none) (parameter (type-and-name int use_setting)) (parameter (type-and-name long back)) ) (method set_caret_fore (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_caret_fore) (return-type none) (parameter (type-and-name long fore)) ) (method clear_all_cmd_keys (of-object Scintilla (Gtk)) (c-name gtk_scintilla_clear_all_cmd_keys) (return-type none) ) (method set_styling_ex (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_styling_ex) (return-type none) (parameter (type-and-name int length)) (parameter (type-and-name const-char* styles)) ) (method style_set_visible (of-object Scintilla (Gtk)) (c-name gtk_scintilla_style_set_visible) (return-type none) (parameter (type-and-name int style)) (parameter (type-and-name int visible)) ) (method get_caret_period (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_caret_period) (return-type int) ) (method set_caret_period (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_caret_period) (return-type none) (parameter (type-and-name int period_milliseconds)) ) (method set_word_chars (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_word_chars) (return-type none) (parameter (type-and-name const-char* characters)) ) (method begin_undo_action (of-object Scintilla (Gtk)) (c-name gtk_scintilla_begin_undo_action) (return-type none) ) (method end_undo_action (of-object Scintilla (Gtk)) (c-name gtk_scintilla_end_undo_action) (return-type none) ) (method indic_set_style (of-object Scintilla (Gtk)) (c-name gtk_scintilla_indic_set_style) (return-type none) (parameter (type-and-name int indic)) (parameter (type-and-name int style)) ) (method indic_get_style (of-object Scintilla (Gtk)) (c-name gtk_scintilla_indic_get_style) (return-type int) (parameter (type-and-name int indic)) ) (method indic_set_fore (of-object Scintilla (Gtk)) (c-name gtk_scintilla_indic_set_fore) (return-type none) (parameter (type-and-name int indic)) (parameter (type-and-name long fore)) ) (method indic_get_fore (of-object Scintilla (Gtk)) (c-name gtk_scintilla_indic_get_fore) (return-type long) (parameter (type-and-name int indic)) ) (method set_style_bits (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_style_bits) (return-type none) (parameter (type-and-name int bits)) ) (method get_style_bits (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_style_bits) (return-type int) ) (method set_line_state (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_line_state) (return-type none) (parameter (type-and-name int line)) (parameter (type-and-name int state)) ) (method get_line_state (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_line_state) (return-type int) (parameter (type-and-name int line)) ) (method get_max_line_state (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_max_line_state) (return-type int) ) (method get_caret_line_visible (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_caret_line_visible) (return-type int) ) (method set_caret_line_visible (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_caret_line_visible) (return-type none) (parameter (type-and-name int show)) ) (method get_caret_line_back (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_caret_line_back) (return-type long) ) (method set_caret_line_back (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_caret_line_back) (return-type none) (parameter (type-and-name long back)) ) (method autoc_show (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_show) (return-type none) (parameter (type-and-name int len_entered)) (parameter (type-and-name const-char* item_list)) ) (method autoc_cancel (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_cancel) (return-type none) ) (method autoc_active (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_active) (return-type int) ) (method autoc_pos_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_pos_start) (return-type long) ) (method autoc_complete (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_complete) (return-type none) ) (method autoc_stops (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_stops) (return-type none) (parameter (type-and-name const-char* character_set)) ) (method autoc_set_separator (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_set_separator) (return-type none) (parameter (type-and-name int separator_character)) ) (method autoc_get_separator (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_get_separator) (return-type int) ) (method autoc_select (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_select) (return-type none) (parameter (type-and-name const-char* text)) ) (method autoc_set_cancel_at_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_set_cancel_at_start) (return-type none) (parameter (type-and-name int cancel)) ) (method autoc_get_cancel_at_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_get_cancel_at_start) (return-type int) ) (method autoc_set_fill_ups (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_set_fill_ups) (return-type none) (parameter (type-and-name const-char* character_set)) ) (method autoc_set_choose_single (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_set_choose_single) (return-type none) (parameter (type-and-name int choose_single)) ) (method autoc_get_choose_single (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_get_choose_single) (return-type int) ) (method autoc_set_ignore_case (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_set_ignore_case) (return-type none) (parameter (type-and-name int ignore_case)) ) (method autoc_get_ignore_case (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_get_ignore_case) (return-type int) ) (method user_list_show (of-object Scintilla (Gtk)) (c-name gtk_scintilla_user_list_show) (return-type none) (parameter (type-and-name int list_type)) (parameter (type-and-name const-char* item_list)) ) (method autoc_set_auto_hide (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_set_auto_hide) (return-type none) (parameter (type-and-name int auto_hide)) ) (method autoc_get_auto_hide (of-object Scintilla (Gtk)) (c-name gtk_scintilla_autoc_get_auto_hide) (return-type int) ) (method set_indent (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_indent) (return-type none) (parameter (type-and-name int indent_size)) ) (method get_indent (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_indent) (return-type int) ) (method set_use_tabs (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_use_tabs) (return-type none) (parameter (type-and-name int use_tabs)) ) (method get_use_tabs (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_use_tabs) (return-type int) ) (method set_line_indentation (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_line_indentation) (return-type none) (parameter (type-and-name int line)) (parameter (type-and-name int indent_size)) ) (method get_line_indentation (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_line_indentation) (return-type int) (parameter (type-and-name int line)) ) (method get_line_indent_position (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_line_indent_position) (return-type long) (parameter (type-and-name int line)) ) (method get_column (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_column) (return-type int) (parameter (type-and-name long pos)) ) (method set_h_scroll_bar (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_h_scroll_bar) (return-type none) (parameter (type-and-name int show)) ) (method get_h_scroll_bar (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_h_scroll_bar) (return-type int) ) (method set_indentation_guides (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_indentation_guides) (return-type none) (parameter (type-and-name int show)) ) (method get_indentation_guides (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_indentation_guides) (return-type int) ) (method set_highlight_guide (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_highlight_guide) (return-type none) (parameter (type-and-name int column)) ) (method get_highlight_guide (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_highlight_guide) (return-type int) ) (method get_line_end_position (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_line_end_position) (return-type int) (parameter (type-and-name int line)) ) (method get_code_page (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_code_page) (return-type int) ) (method get_caret_fore (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_caret_fore) (return-type long) ) (method get_use_palette (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_use_palette) (return-type int) ) (method get_read_only (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_read_only) (return-type int) ) (method set_current_pos (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_current_pos) (return-type none) (parameter (type-and-name long pos)) ) (method set_selection_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_selection_start) (return-type none) (parameter (type-and-name long pos)) ) (method get_selection_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_selection_start) (return-type long) ) (method set_selection_end (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_selection_end) (return-type none) (parameter (type-and-name long pos)) ) (method get_selection_end (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_selection_end) (return-type long) ) (method set_print_magnification (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_print_magnification) (return-type none) (parameter (type-and-name int magnification)) ) (method get_print_magnification (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_print_magnification) (return-type int) ) (method set_print_colour_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_print_colour_mode) (return-type none) (parameter (type-and-name int mode)) ) (method get_print_colour_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_print_colour_mode) (return-type int) ) (method get_first_visible_line (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_first_visible_line) (return-type int) ) (method get_line (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_line) (return-type int) (parameter (type-and-name int line)) (parameter (type-and-name char* text)) ) (method get_line_count (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_line_count) (return-type int) ) (method set_margin_left (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_margin_left) (return-type none) (parameter (type-and-name int pixel_width)) ) (method get_margin_left (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_margin_left) (return-type int) ) (method set_margin_right (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_margin_right) (return-type none) (parameter (type-and-name int pixel_width)) ) (method get_margin_right (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_margin_right) (return-type int) ) (method get_modify (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_modify) (return-type int) ) (method set_sel (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_sel) (return-type none) (parameter (type-and-name long start)) (parameter (type-and-name long end)) ) (method get_sel_text (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_sel_text) (return-type int) (parameter (type-and-name char* text)) ) (method hide_selection (of-object Scintilla (Gtk)) (c-name gtk_scintilla_hide_selection) (return-type none) (parameter (type-and-name int normal)) ) (method point_x_from_position (of-object Scintilla (Gtk)) (c-name gtk_scintilla_point_x_from_position) (return-type int) (parameter (type-and-name long pos)) ) (method point_y_from_position (of-object Scintilla (Gtk)) (c-name gtk_scintilla_point_y_from_position) (return-type int) (parameter (type-and-name long pos)) ) (method line_from_position (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_from_position) (return-type int) (parameter (type-and-name long pos)) ) (method position_from_line (of-object Scintilla (Gtk)) (c-name gtk_scintilla_position_from_line) (return-type int) (parameter (type-and-name int line)) ) (method line_scroll (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_scroll) (return-type none) (parameter (type-and-name int columns)) (parameter (type-and-name int lines)) ) (method scroll_caret (of-object Scintilla (Gtk)) (c-name gtk_scintilla_scroll_caret) (return-type none) ) (method replace_sel (of-object Scintilla (Gtk)) (c-name gtk_scintilla_replace_sel) (return-type none) (parameter (type-and-name const-char* text)) ) (method set_read_only (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_read_only) (return-type none) (parameter (type-and-name int read_only)) ) (method null (of-object Scintilla (Gtk)) (c-name gtk_scintilla_null) (return-type none) ) (method can_paste (of-object Scintilla (Gtk)) (c-name gtk_scintilla_can_paste) (return-type int) ) (method can_undo (of-object Scintilla (Gtk)) (c-name gtk_scintilla_can_undo) (return-type int) ) (method empty_undo_buffer (of-object Scintilla (Gtk)) (c-name gtk_scintilla_empty_undo_buffer) (return-type none) ) (method undo (of-object Scintilla (Gtk)) (c-name gtk_scintilla_undo) (return-type none) ) (method cut (of-object Scintilla (Gtk)) (c-name gtk_scintilla_cut) (return-type none) ) (method copy (of-object Scintilla (Gtk)) (c-name gtk_scintilla_copy) (return-type none) ) (method paste (of-object Scintilla (Gtk)) (c-name gtk_scintilla_paste) (return-type none) ) (method clear (of-object Scintilla (Gtk)) (c-name gtk_scintilla_clear) (return-type none) ) (method set_text (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_text) (return-type none) (parameter (type-and-name const-char* text)) ) (method get_text (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_text) (return-type int) (parameter (type-and-name int length)) (parameter (type-and-name char* text)) ) (method get_text_length (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_text_length) (return-type int) ) (method get_direct_function (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_direct_function) (return-type int) ) (method get_direct_pointer (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_direct_pointer) (return-type int) ) (method set_overtype (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_overtype) (return-type none) (parameter (type-and-name int overtype)) ) (method get_overtype (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_overtype) (return-type int) ) (method set_caret_width (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_caret_width) (return-type none) (parameter (type-and-name int pixel_width)) ) (method get_caret_width (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_caret_width) (return-type int) ) (method set_target_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_target_start) (return-type none) (parameter (type-and-name long pos)) ) (method get_target_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_target_start) (return-type long) ) (method set_target_end (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_target_end) (return-type none) (parameter (type-and-name long pos)) ) (method get_target_end (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_target_end) (return-type long) ) (method replace_target (of-object Scintilla (Gtk)) (c-name gtk_scintilla_replace_target) (return-type int) (parameter (type-and-name int length)) (parameter (type-and-name const-char* text)) ) (method replace_target_re (of-object Scintilla (Gtk)) (c-name gtk_scintilla_replace_target_re) (return-type int) (parameter (type-and-name int length)) (parameter (type-and-name const-char* text)) ) (method search_in_target (of-object Scintilla (Gtk)) (c-name gtk_scintilla_search_in_target) (return-type int) (parameter (type-and-name int length)) (parameter (type-and-name const-char* text)) ) (method set_search_flags (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_search_flags) (return-type none) (parameter (type-and-name int flags)) ) (method get_search_flags (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_search_flags) (return-type int) ) (method call_tip_show (of-object Scintilla (Gtk)) (c-name gtk_scintilla_call_tip_show) (return-type none) (parameter (type-and-name long pos)) (parameter (type-and-name const-char* definition)) ) (method call_tip_cancel (of-object Scintilla (Gtk)) (c-name gtk_scintilla_call_tip_cancel) (return-type none) ) (method call_tip_active (of-object Scintilla (Gtk)) (c-name gtk_scintilla_call_tip_active) (return-type int) ) (method call_tip_pos_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_call_tip_pos_start) (return-type long) ) (method call_tip_set_hlt (of-object Scintilla (Gtk)) (c-name gtk_scintilla_call_tip_set_hlt) (return-type none) (parameter (type-and-name int start)) (parameter (type-and-name int end)) ) (method call_tip_set_back (of-object Scintilla (Gtk)) (c-name gtk_scintilla_call_tip_set_back) (return-type none) (parameter (type-and-name long back)) ) (method visible_from_doc_line (of-object Scintilla (Gtk)) (c-name gtk_scintilla_visible_from_doc_line) (return-type int) (parameter (type-and-name int line)) ) (method doc_line_from_visible (of-object Scintilla (Gtk)) (c-name gtk_scintilla_doc_line_from_visible) (return-type int) (parameter (type-and-name int line_display)) ) (method set_fold_level (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_fold_level) (return-type none) (parameter (type-and-name int line)) (parameter (type-and-name int level)) ) (method get_fold_level (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_fold_level) (return-type int) (parameter (type-and-name int line)) ) (method get_last_child (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_last_child) (return-type int) (parameter (type-and-name int line)) (parameter (type-and-name int level)) ) (method get_fold_parent (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_fold_parent) (return-type int) (parameter (type-and-name int line)) ) (method show_lines (of-object Scintilla (Gtk)) (c-name gtk_scintilla_show_lines) (return-type none) (parameter (type-and-name int line_start)) (parameter (type-and-name int line_end)) ) (method hide_lines (of-object Scintilla (Gtk)) (c-name gtk_scintilla_hide_lines) (return-type none) (parameter (type-and-name int line_start)) (parameter (type-and-name int line_end)) ) (method get_line_visible (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_line_visible) (return-type int) (parameter (type-and-name int line)) ) (method set_fold_expanded (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_fold_expanded) (return-type none) (parameter (type-and-name int line)) (parameter (type-and-name int expanded)) ) (method get_fold_expanded (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_fold_expanded) (return-type int) (parameter (type-and-name int line)) ) (method toggle_fold (of-object Scintilla (Gtk)) (c-name gtk_scintilla_toggle_fold) (return-type none) (parameter (type-and-name int line)) ) (method ensure_visible (of-object Scintilla (Gtk)) (c-name gtk_scintilla_ensure_visible) (return-type none) (parameter (type-and-name int line)) ) (method set_fold_flags (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_fold_flags) (return-type none) (parameter (type-and-name int flags)) ) (method set_tab_indents (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_tab_indents) (return-type none) (parameter (type-and-name int tab_indents)) ) (method get_tab_indents (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_tab_indents) (return-type int) ) (method set_backspace_unindents (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_backspace_unindents) (return-type none) (parameter (type-and-name int bs_unindents)) ) (method get_backspace_unindents (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_backspace_unindents) (return-type int) ) (method line_down (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_down) (return-type none) ) (method line_down_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_down_extend) (return-type none) ) (method line_up (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_up) (return-type none) ) (method line_up_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_up_extend) (return-type none) ) (method char_left (of-object Scintilla (Gtk)) (c-name gtk_scintilla_char_left) (return-type none) ) (method char_left_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_char_left_extend) (return-type none) ) (method char_right (of-object Scintilla (Gtk)) (c-name gtk_scintilla_char_right) (return-type none) ) (method char_right_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_char_right_extend) (return-type none) ) (method word_left (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_left) (return-type none) ) (method word_left_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_left_extend) (return-type none) ) (method word_right (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_right) (return-type none) ) (method word_right_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_right_extend) (return-type none) ) (method home (of-object Scintilla (Gtk)) (c-name gtk_scintilla_home) (return-type none) ) (method home_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_home_extend) (return-type none) ) (method line_end (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_end) (return-type none) ) (method line_end_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_end_extend) (return-type none) ) (method document_start (of-object Scintilla (Gtk)) (c-name gtk_scintilla_document_start) (return-type none) ) (method document_start_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_document_start_extend) (return-type none) ) (method document_end (of-object Scintilla (Gtk)) (c-name gtk_scintilla_document_end) (return-type none) ) (method document_end_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_document_end_extend) (return-type none) ) (method page_up (of-object Scintilla (Gtk)) (c-name gtk_scintilla_page_up) (return-type none) ) (method page_up_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_page_up_extend) (return-type none) ) (method page_down (of-object Scintilla (Gtk)) (c-name gtk_scintilla_page_down) (return-type none) ) (method page_down_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_page_down_extend) (return-type none) ) (method edit_toggle_overtype (of-object Scintilla (Gtk)) (c-name gtk_scintilla_edit_toggle_overtype) (return-type none) ) (method cancel (of-object Scintilla (Gtk)) (c-name gtk_scintilla_cancel) (return-type none) ) (method delete_back (of-object Scintilla (Gtk)) (c-name gtk_scintilla_delete_back) (return-type none) ) (method tab (of-object Scintilla (Gtk)) (c-name gtk_scintilla_tab) (return-type none) ) (method back_tab (of-object Scintilla (Gtk)) (c-name gtk_scintilla_back_tab) (return-type none) ) (method new_line (of-object Scintilla (Gtk)) (c-name gtk_scintilla_new_line) (return-type none) ) (method form_feed (of-object Scintilla (Gtk)) (c-name gtk_scintilla_form_feed) (return-type none) ) (method v_c_home (of-object Scintilla (Gtk)) (c-name gtk_scintilla_v_c_home) (return-type none) ) (method v_c_home_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_v_c_home_extend) (return-type none) ) (method zoom_in (of-object Scintilla (Gtk)) (c-name gtk_scintilla_zoom_in) (return-type none) ) (method zoom_out (of-object Scintilla (Gtk)) (c-name gtk_scintilla_zoom_out) (return-type none) ) (method del_word_left (of-object Scintilla (Gtk)) (c-name gtk_scintilla_del_word_left) (return-type none) ) (method del_word_right (of-object Scintilla (Gtk)) (c-name gtk_scintilla_del_word_right) (return-type none) ) (method line_cut (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_cut) (return-type none) ) (method line_delete (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_delete) (return-type none) ) (method line_transpose (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_transpose) (return-type none) ) (method lower_case (of-object Scintilla (Gtk)) (c-name gtk_scintilla_lower_case) (return-type none) ) (method upper_case (of-object Scintilla (Gtk)) (c-name gtk_scintilla_upper_case) (return-type none) ) (method line_scroll_down (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_scroll_down) (return-type none) ) (method line_scroll_up (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_scroll_up) (return-type none) ) (method move_caret_inside_view (of-object Scintilla (Gtk)) (c-name gtk_scintilla_move_caret_inside_view) (return-type none) ) (method line_length (of-object Scintilla (Gtk)) (c-name gtk_scintilla_line_length) (return-type int) (parameter (type-and-name int line)) ) (method brace_highlight (of-object Scintilla (Gtk)) (c-name gtk_scintilla_brace_highlight) (return-type none) (parameter (type-and-name long pos1)) (parameter (type-and-name long pos2)) ) (method brace_bad_light (of-object Scintilla (Gtk)) (c-name gtk_scintilla_brace_bad_light) (return-type none) (parameter (type-and-name long pos)) ) (method brace_match (of-object Scintilla (Gtk)) (c-name gtk_scintilla_brace_match) (return-type long) (parameter (type-and-name long pos)) ) (method get_view_eol (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_view_eol) (return-type int) ) (method set_view_eol (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_view_eol) (return-type none) (parameter (type-and-name int visible)) ) (method get_doc_pointer (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_doc_pointer) (return-type int) ) (method set_doc_pointer (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_doc_pointer) (return-type none) (parameter (type-and-name int pointer)) ) (method set_mod_event_mask (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_mod_event_mask) (return-type none) (parameter (type-and-name int mask)) ) (method get_edge_column (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_edge_column) (return-type int) ) (method set_edge_column (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_edge_column) (return-type none) (parameter (type-and-name int column)) ) (method get_edge_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_edge_mode) (return-type int) ) (method set_edge_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_edge_mode) (return-type none) (parameter (type-and-name int mode)) ) (method get_edge_colour (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_edge_colour) (return-type long) ) (method set_edge_colour (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_edge_colour) (return-type none) (parameter (type-and-name long edge_colour)) ) (method search_anchor (of-object Scintilla (Gtk)) (c-name gtk_scintilla_search_anchor) (return-type none) ) (method search_next (of-object Scintilla (Gtk)) (c-name gtk_scintilla_search_next) (return-type int) (parameter (type-and-name int flags)) (parameter (type-and-name const-char* text)) ) (method search_prev (of-object Scintilla (Gtk)) (c-name gtk_scintilla_search_prev) (return-type int) (parameter (type-and-name int flags)) (parameter (type-and-name const-char* text)) ) (method set_caret_policy (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_caret_policy) (return-type none) (parameter (type-and-name int caret_policy)) (parameter (type-and-name int caret_slop)) ) (method lines_on_screen (of-object Scintilla (Gtk)) (c-name gtk_scintilla_lines_on_screen) (return-type int) ) (method use_pop_up (of-object Scintilla (Gtk)) (c-name gtk_scintilla_use_pop_up) (return-type none) (parameter (type-and-name int allow_pop_up)) ) (method selection_is_rectangle (of-object Scintilla (Gtk)) (c-name gtk_scintilla_selection_is_rectangle) (return-type int) ) (method set_zoom (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_zoom) (return-type none) (parameter (type-and-name int zoom)) ) (method get_zoom (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_zoom) (return-type int) ) (method create_document (of-object Scintilla (Gtk)) (c-name gtk_scintilla_create_document) (return-type int) ) (method add_ref_document (of-object Scintilla (Gtk)) (c-name gtk_scintilla_add_ref_document) (return-type none) (parameter (type-and-name int doc)) ) (method release_document (of-object Scintilla (Gtk)) (c-name gtk_scintilla_release_document) (return-type none) (parameter (type-and-name int doc)) ) (method get_mod_event_mask (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_mod_event_mask) (return-type int) ) (method set_focus (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_focus) (return-type none) (parameter (type-and-name int focus)) ) (method get_focus (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_focus) (return-type int) ) (method set_status (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_status) (return-type none) (parameter (type-and-name int status_code)) ) (method get_status (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_status) (return-type int) ) (method set_mouse_down_captures (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_mouse_down_captures) (return-type none) (parameter (type-and-name int captures)) ) (method get_mouse_down_captures (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_mouse_down_captures) (return-type int) ) (method set_cursor (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_cursor) (return-type none) (parameter (type-and-name int cursor_type)) ) (method get_cursor (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_cursor) (return-type int) ) (method word_part_left (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_part_left) (return-type none) ) (method word_part_left_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_part_left_extend) (return-type none) ) (method word_part_right (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_part_right) (return-type none) ) (method word_part_right_extend (of-object Scintilla (Gtk)) (c-name gtk_scintilla_word_part_right_extend) (return-type none) ) (method set_visible_policy (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_visible_policy) (return-type none) (parameter (type-and-name int visible_policy)) (parameter (type-and-name int visible_slop)) ) (method del_line_left (of-object Scintilla (Gtk)) (c-name gtk_scintilla_del_line_left) (return-type none) ) (method del_line_right (of-object Scintilla (Gtk)) (c-name gtk_scintilla_del_line_right) (return-type none) ) (method grab_focus (of-object Scintilla (Gtk)) (c-name gtk_scintilla_grab_focus) (return-type none) ) (method start_record (of-object Scintilla (Gtk)) (c-name gtk_scintilla_start_record) (return-type none) ) (method stop_record (of-object Scintilla (Gtk)) (c-name gtk_scintilla_stop_record) (return-type none) ) (method set_lexer (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_lexer) (return-type none) (parameter (type-and-name int lexer)) ) (method get_lexer (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_lexer) (return-type int) ) (method colourise (of-object Scintilla (Gtk)) (c-name gtk_scintilla_colourise) (return-type none) (parameter (type-and-name long start)) (parameter (type-and-name long end)) ) (method set_property (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_property) (return-type none) (parameter (type-and-name const-char* key)) (parameter (type-and-name const-char* value)) ) (method set_keywords (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_keywords) (return-type none) (parameter (type-and-name int keyword_set)) (parameter (type-and-name const-char* key_words)) ) (method set_lexer_language (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_lexer_language) (return-type none) (parameter (type-and-name const-char* language)) ) (method set_wrap_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_wrap_mode) (return-type none) (parameter (type-and-name int wrap_mode)) ) (method get_wrap_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_wrap_mode) (return-type int) ) http://cvs.php.net/viewcvs.cgi/php-gtk/ext/scintilla/v1.scintilla.overrides?view=markup&rev=1.1 Index: php-gtk/ext/scintilla/v1.scintilla.overrides +++ php-gtk/ext/scintilla/v1.scintilla.overrides /* vim: set ft=cpp: */ %% headers #include <gtkscintilla.h> #include "ext/gtk+/php_gtk+.h" %% constants REGISTER_LONG_CONSTANT("SCINTILLA_INVALID_POSITION", INVALID_POSITION, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_WS_INVISIBLE", SCWS_INVISIBLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_WS_VISIBLEALWAYS", SCWS_VISIBLEALWAYS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_WS_VISIBLEAFTERINDENT", SCWS_VISIBLEAFTERINDENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EOL_CRLF", SC_EOL_CRLF, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EOL_CR", SC_EOL_CR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EOL_LF", SC_EOL_LF, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CP_UTF8", SC_CP_UTF8, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARKER_MAX", MARKER_MAX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_CIRCLE", SC_MARK_CIRCLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_ROUNDRECT", SC_MARK_ROUNDRECT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_ARROW", SC_MARK_ARROW, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_SMALLRECT", SC_MARK_SMALLRECT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_SHORTARROW", SC_MARK_SHORTARROW, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_EMPTY", SC_MARK_EMPTY, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_ARROWDOWN", SC_MARK_ARROWDOWN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_MINUS", SC_MARK_MINUS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARK_PLUS", SC_MARK_PLUS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARKNUM_FOLDER", SC_MARKNUM_FOLDER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARKNUM_FOLDEROPEN", SC_MARKNUM_FOLDEROPEN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARGIN_SYMBOL", SC_MARGIN_SYMBOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MARGIN_NUMBER", SC_MARGIN_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_STYLE_DEFAULT", STYLE_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_STYLE_LINENUMBER", STYLE_LINENUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_STYLE_BRACELIGHT", STYLE_BRACELIGHT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_STYLE_BRACEBAD", STYLE_BRACEBAD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_STYLE_CONTROLCHAR", STYLE_CONTROLCHAR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_STYLE_INDENTGUIDE", STYLE_INDENTGUIDE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_STYLE_MAX", STYLE_MAX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_ANSI", SC_CHARSET_ANSI, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_DEFAULT", SC_CHARSET_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_BALTIC", SC_CHARSET_BALTIC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_CHINESEBIG5", SC_CHARSET_CHINESEBIG5, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_EASTEUROPE", SC_CHARSET_EASTEUROPE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_GB2312", SC_CHARSET_GB2312, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_GREEK", SC_CHARSET_GREEK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_HANGUL", SC_CHARSET_HANGUL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_MAC", SC_CHARSET_MAC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_OEM", SC_CHARSET_OEM, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_RUSSIAN", SC_CHARSET_RUSSIAN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_SHIFTJIS", SC_CHARSET_SHIFTJIS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_SYMBOL", SC_CHARSET_SYMBOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_TURKISH", SC_CHARSET_TURKISH, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_JOHAB", SC_CHARSET_JOHAB, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_HEBREW", SC_CHARSET_HEBREW, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_ARABIC", SC_CHARSET_ARABIC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_VIETNAMESE", SC_CHARSET_VIETNAMESE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CHARSET_THAI", SC_CHARSET_THAI, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CASE_MIXED", SC_CASE_MIXED, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CASE_UPPER", SC_CASE_UPPER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CASE_LOWER", SC_CASE_LOWER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC_MAX", INDIC_MAX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC_PLAIN", INDIC_PLAIN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC_SQUIGGLE", INDIC_SQUIGGLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC_TT", INDIC_TT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC_DIAGONAL", INDIC_DIAGONAL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC_STRIKE", INDIC_STRIKE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC0_MASK", INDIC0_MASK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC1_MASK", INDIC1_MASK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDIC2_MASK", INDIC2_MASK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_INDICS_MASK", INDICS_MASK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FIND_WHOLEWORD", SCFIND_WHOLEWORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FIND_MATCHCASE", SCFIND_MATCHCASE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FIND_WORDSTART", SCFIND_WORDSTART, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FIND_REGEXP", SCFIND_REGEXP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FOLDLEVELBASE", SC_FOLDLEVELBASE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FOLDLEVELWHITEFLAG", SC_FOLDLEVELWHITEFLAG, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FOLDLEVELHEADERFLAG", SC_FOLDLEVELHEADERFLAG, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_FOLDLEVELNUMBERMASK", SC_FOLDLEVELNUMBERMASK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EDGE_NONE", EDGE_NONE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EDGE_LINE", EDGE_LINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EDGE_BACKGROUND", EDGE_BACKGROUND, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CARET_SLOP", CARET_SLOP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CARET_CENTER", CARET_CENTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CARET_STRICT", CARET_STRICT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CARET_XEVEN", CARET_XEVEN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CURSORNORMAL", SC_CURSORNORMAL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CURSORWAIT", SC_CURSORWAIT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_VISIBLE_SLOP", VISIBLE_SLOP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_VISIBLE_STRICT", VISIBLE_STRICT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_INSERTTEXT", SC_MOD_INSERTTEXT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_DELETETEXT", SC_MOD_DELETETEXT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_CHANGESTYLE", SC_MOD_CHANGESTYLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_CHANGEFOLD", SC_MOD_CHANGEFOLD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERFORMED_USER", SC_PERFORMED_USER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERFORMED_UNDO", SC_PERFORMED_UNDO, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERFORMED_REDO", SC_PERFORMED_REDO, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LASTSTEPINUNDOREDO", SC_LASTSTEPINUNDOREDO, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_CHANGEMARKER", SC_MOD_CHANGEMARKER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_BEFOREINSERT", SC_MOD_BEFOREINSERT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_BEFOREDELETE", SC_MOD_BEFOREDELETE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MODEVENTMASKALL", SC_MODEVENTMASKALL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EN_CHANGE", SCEN_CHANGE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EN_SETFOCUS", SCEN_SETFOCUS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EN_KILLFOCUS", SCEN_KILLFOCUS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_DOWN", SCK_DOWN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_UP", SCK_UP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_LEFT", SCK_LEFT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_RIGHT", SCK_RIGHT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_HOME", SCK_HOME, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_END", SCK_END, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_PRIOR", SCK_PRIOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_NEXT", SCK_NEXT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_DELETE", SCK_DELETE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_INSERT", SCK_INSERT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_ESCAPE", SCK_ESCAPE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_BACK", SCK_BACK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_TAB", SCK_TAB, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_RETURN", SCK_RETURN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_ADD", SCK_ADD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_SUBTRACT", SCK_SUBTRACT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_KEY_DIVIDE", SCK_DIVIDE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_SHIFT", SCMOD_SHIFT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_CTRL", SCMOD_CTRL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MOD_ALT", SCMOD_ALT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_CONTAINER", SCLEX_CONTAINER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_NULL", SCLEX_NULL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_PYTHON", SCLEX_PYTHON, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_CPP", SCLEX_CPP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_HTML", SCLEX_HTML, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_XML", SCLEX_XML, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_PERL", SCLEX_PERL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_SQL", SCLEX_SQL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_VB", SCLEX_VB, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_PROPERTIES", SCLEX_PROPERTIES, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_ERRORLIST", SCLEX_ERRORLIST, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_MAKEFILE", SCLEX_MAKEFILE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_BATCH", SCLEX_BATCH, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_XCODE", SCLEX_XCODE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_LATEX", SCLEX_LATEX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_LUA", SCLEX_LUA, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_DIFF", SCLEX_DIFF, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_CONF", SCLEX_CONF, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_PASCAL", SCLEX_PASCAL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_AVE", SCLEX_AVE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_ADA", SCLEX_ADA, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_LISP", SCLEX_LISP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_RUBY", SCLEX_RUBY, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_EIFFEL", SCLEX_EIFFEL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_EIFFELKW", SCLEX_EIFFELKW, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LEX_AUTOMATIC", SCLEX_AUTOMATIC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_DEFAULT", SCE_P_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_COMMENTLINE", SCE_P_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_NUMBER", SCE_P_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_STRING", SCE_P_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_CHARACTER", SCE_P_CHARACTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_WORD", SCE_P_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_TRIPLE", SCE_P_TRIPLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_TRIPLEDOUBLE", SCE_P_TRIPLEDOUBLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_CLASSNAME", SCE_P_CLASSNAME, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_DEFNAME", SCE_P_DEFNAME, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_OPERATOR", SCE_P_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_IDENTIFIER", SCE_P_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_COMMENTBLOCK", SCE_P_COMMENTBLOCK, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PY_STRINGEOL", SCE_P_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_DEFAULT", SCE_C_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_COMMENT", SCE_C_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_COMMENTLINE", SCE_C_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_COMMENTDOC", SCE_C_COMMENTDOC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_NUMBER", SCE_C_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_WORD", SCE_C_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_STRING", SCE_C_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_CHARACTER", SCE_C_CHARACTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_UUID", SCE_C_UUID, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_PREPROCESSOR", SCE_C_PREPROCESSOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_OPERATOR", SCE_C_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_IDENTIFIER", SCE_C_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_STRINGEOL", SCE_C_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_VERBATIM", SCE_C_VERBATIM, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_REGEX", SCE_C_REGEX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_C_COMMENTLINEDOC", SCE_C_COMMENTLINEDOC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_DEFAULT", SCE_H_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_TAG", SCE_H_TAG, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_TAGUNKNOWN", SCE_H_TAGUNKNOWN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_ATTRIBUTE", SCE_H_ATTRIBUTE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_ATTRIBUTEUNKNOWN", SCE_H_ATTRIBUTEUNKNOWN, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_NUMBER", SCE_H_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_DOUBLESTRING", SCE_H_DOUBLESTRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_SINGLESTRING", SCE_H_SINGLESTRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_OTHER", SCE_H_OTHER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_COMMENT", SCE_H_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_ENTITY", SCE_H_ENTITY, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_TAGEND", SCE_H_TAGEND, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_XMLSTART", SCE_H_XMLSTART, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_XMLEND", SCE_H_XMLEND, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_SCRIPT", SCE_H_SCRIPT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_ASP", SCE_H_ASP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_ASPAT", SCE_H_ASPAT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_CDATA", SCE_H_CDATA, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_QUESTION", SCE_H_QUESTION, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VALUE", SCE_H_VALUE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_START", SCE_HJ_START, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_DEFAULT", SCE_HJ_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_COMMENT", SCE_HJ_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_COMMENTLINE", SCE_HJ_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_COMMENTDOC", SCE_HJ_COMMENTDOC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_NUMBER", SCE_HJ_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_WORD", SCE_HJ_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_KEYWORD", SCE_HJ_KEYWORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_DOUBLESTRING", SCE_HJ_DOUBLESTRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_SINGLESTRING", SCE_HJ_SINGLESTRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_SYMBOLS", SCE_HJ_SYMBOLS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_STRINGEOL", SCE_HJ_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_JS_REGEX", SCE_HJ_REGEX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_START", SCE_HB_START, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_DEFAULT", SCE_HB_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_COMMENTLINE", SCE_HB_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_NUMBER", SCE_HB_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_WORD", SCE_HB_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_STRING", SCE_HB_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_IDENTIFIER", SCE_HB_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_VB_STRINGEOL", SCE_HB_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_START", SCE_HP_START, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_DEFAULT", SCE_HP_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_COMMENTLINE", SCE_HP_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_NUMBER", SCE_HP_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_STRING", SCE_HP_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_CHARACTER", SCE_HP_CHARACTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_WORD", SCE_HP_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_TRIPLE", SCE_HP_TRIPLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_TRIPLEDOUBLE", SCE_HP_TRIPLEDOUBLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_CLASSNAME", SCE_HP_CLASSNAME, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_DEFNAME", SCE_HP_DEFNAME, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_OPERATOR", SCE_HP_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PY_IDENTIFIER", SCE_HP_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_DEFAULT", SCE_HPHP_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_HSTRING", SCE_HPHP_HSTRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_SIMPLESTRING", SCE_HPHP_SIMPLESTRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_WORD", SCE_HPHP_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_NUMBER", SCE_HPHP_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_VARIABLE", SCE_HPHP_VARIABLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_COMMENT", SCE_HPHP_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_COMMENTLINE", SCE_HPHP_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_HTML_PHP_HSTRING_VARIABLE", SCE_HPHP_HSTRING_VARIABLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_DEFAULT", SCE_PL_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_ERROR", SCE_PL_ERROR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_COMMENTLINE", SCE_PL_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_POD", SCE_PL_POD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_NUMBER", SCE_PL_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_WORD", SCE_PL_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_STRING", SCE_PL_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_CHARACTER", SCE_PL_CHARACTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_PUNCTUATION", SCE_PL_PUNCTUATION, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_PREPROCESSOR", SCE_PL_PREPROCESSOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_OPERATOR", SCE_PL_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_IDENTIFIER", SCE_PL_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_SCALAR", SCE_PL_SCALAR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_ARRAY", SCE_PL_ARRAY, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_HASH", SCE_PL_HASH, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_SYMBOLTABLE", SCE_PL_SYMBOLTABLE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_REGEX", SCE_PL_REGEX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_REGSUBST", SCE_PL_REGSUBST, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_LONGQUOTE", SCE_PL_LONGQUOTE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_BACKTICKS", SCE_PL_BACKTICKS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_DATASECTION", SCE_PL_DATASECTION, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_HERE_DELIM", SCE_PL_HERE_DELIM, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_HERE_Q", SCE_PL_HERE_Q, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_HERE_QQ", SCE_PL_HERE_QQ, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_HERE_QX", SCE_PL_HERE_QX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_STRING_Q", SCE_PL_STRING_Q, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_STRING_QQ", SCE_PL_STRING_QQ, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_STRING_QX", SCE_PL_STRING_QX, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_STRING_QR", SCE_PL_STRING_QR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_PERL_STRING_QW", SCE_PL_STRING_QW, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LATEX_DEFAULT", SCE_L_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LATEX_COMMAND", SCE_L_COMMAND, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LATEX_TAG", SCE_L_TAG, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LATEX_MATH", SCE_L_MATH, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LATEX_COMMENT", SCE_L_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_DEFAULT", SCE_LUA_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_COMMENT", SCE_LUA_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_COMMENTLINE", SCE_LUA_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_COMMENTDOC", SCE_LUA_COMMENTDOC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_NUMBER", SCE_LUA_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_WORD", SCE_LUA_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_STRING", SCE_LUA_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_CHARACTER", SCE_LUA_CHARACTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_LITERALSTRING", SCE_LUA_LITERALSTRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_PREPROCESSOR", SCE_LUA_PREPROCESSOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_OPERATOR", SCE_LUA_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_IDENTIFIER", SCE_LUA_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LUA_STRINGEOL", SCE_LUA_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_DEFAULT", SCE_ERR_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_PYTHON", SCE_ERR_PYTHON, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_GCC", SCE_ERR_GCC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_MS", SCE_ERR_MS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_CMD", SCE_ERR_CMD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_BORLAND", SCE_ERR_BORLAND, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_PERL", SCE_ERR_PERL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_DIFF_CHANGED", SCE_ERR_DIFF_CHANGED, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_DIFF_ADDITION", SCE_ERR_DIFF_ADDITION, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_DIFF_DELETION", SCE_ERR_DIFF_DELETION, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ERR_DIFF_MESSAGE", SCE_ERR_DIFF_MESSAGE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_DEFAULT", SCE_BAT_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_COMMENT", SCE_BAT_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_WORD", SCE_BAT_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_LABEL", SCE_BAT_LABEL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_HIDE", SCE_BAT_HIDE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_COMMAND", SCE_BAT_COMMAND, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_IDENTIFIER", SCE_BAT_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_BAT_OPERATOR", SCE_BAT_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MAKE_DEFAULT", SCE_MAKE_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MAKE_COMMENT", SCE_MAKE_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MAKE_PREPROCESSOR", SCE_MAKE_PREPROCESSOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MAKE_IDENTIFIER", SCE_MAKE_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MAKE_OPERATOR", SCE_MAKE_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_MAKE_IDEOL", SCE_MAKE_IDEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_DEFAULT", SCE_CONF_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_COMMENT", SCE_CONF_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_NUMBER", SCE_CONF_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_IDENTIFIER", SCE_CONF_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_EXTENSION", SCE_CONF_EXTENSION, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_PARAMETER", SCE_CONF_PARAMETER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_STRING", SCE_CONF_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_OPERATOR", SCE_CONF_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_IP", SCE_CONF_IP, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_CONF_DIRECTIVE", SCE_CONF_DIRECTIVE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_DEFAULT", SCE_AVE_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_COMMENT", SCE_AVE_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_NUMBER", SCE_AVE_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_WORD", SCE_AVE_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_KEYWORD", SCE_AVE_KEYWORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_STATEMENT", SCE_AVE_STATEMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_STRING", SCE_AVE_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_ENUM", SCE_AVE_ENUM, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_STRINGEOL", SCE_AVE_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_IDENTIFIER", SCE_AVE_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_AVE_OPERATOR", SCE_AVE_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_DEFAULT", SCE_ADA_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_COMMENT", SCE_ADA_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_NUMBER", SCE_ADA_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_WORD", SCE_ADA_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_STRING", SCE_ADA_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_CHARACTER", SCE_ADA_CHARACTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_OPERATOR", SCE_ADA_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_IDENTIFIER", SCE_ADA_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_ADA_STRINGEOL", SCE_ADA_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_DEFAULT", SCE_LISP_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_COMMENT", SCE_LISP_COMMENT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_NUMBER", SCE_LISP_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_KEYWORD", SCE_LISP_KEYWORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_STRING", SCE_LISP_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_STRINGEOL", SCE_LISP_STRINGEOL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_IDENTIFIER", SCE_LISP_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_LISP_OPERATOR", SCE_LISP_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_DEFAULT", SCE_EIFFEL_DEFAULT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_COMMENTLINE", SCE_EIFFEL_COMMENTLINE, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_NUMBER", SCE_EIFFEL_NUMBER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_WORD", SCE_EIFFEL_WORD, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_STRING", SCE_EIFFEL_STRING, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_CHARACTER", SCE_EIFFEL_CHARACTER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_OPERATOR", SCE_EIFFEL_OPERATOR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_IDENTIFIER", SCE_EIFFEL_IDENTIFIER, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SCINTILLA_EIFFEL_STRINGEOL", SCE_EIFFEL_STRINGEOL, CONST_CS | CONST_PERSISTENT); %% ignore-glob *_get_type %% override gtk_scintilla_add_text PHP_FUNCTION(gtk_scintilla_add_text) { char *text; int len; NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "s#", &text, &len)) return; gtk_scintilla_add_text(GTK_SCINTILLA(PHP_GTK_GET(this_ptr)), len, text); RETURN_NULL(); } %% override gtk_scintilla_get_cur_line PHP_FUNCTION(gtk_scintilla_get_cur_line) { int length, line_pos; char *text; GtkScintilla *scintilla = GTK_SCINTILLA(PHP_GTK_GET(this_ptr)); NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "")) return; length = gtk_scintilla_line_length(scintilla, gtk_scintilla_line_from_position(scintilla, gtk_scintilla_get_current_pos(scintilla))) + 1; text = (char *)emalloc(length); /* This function null-terminates the resulting string. */ line_pos = gtk_scintilla_get_cur_line(scintilla, length, text); *return_value = *php_gtk_build_value("(s#i)", text, length-1, line_pos); } %% override gtk_scintilla_get_text PHP_FUNCTION(gtk_scintilla_get_text) { int length; char *text; GtkScintilla *scintilla = GTK_SCINTILLA(PHP_GTK_GET(this_ptr)); NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "")) return; length = gtk_scintilla_get_text_length(scintilla) + 1; text = emalloc(length); /* This function null-terminates the string. */ gtk_scintilla_get_text(scintilla, length, text); RETURN_STRINGL(text, length-1, 0); } %% override gtk_scintilla_get_line PHP_FUNCTION(gtk_scintilla_get_line) { int line, length; char *text; GtkScintilla *scintilla = GTK_SCINTILLA(PHP_GTK_GET(this_ptr)); NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "i", &line)) return; length = gtk_scintilla_line_length(scintilla, line) + 1; text = emalloc(length); memset(text, 0, length); /* Scintilla has a bug: when you try to get non-existant line, it overwrites the buffer. So, we avoid it by checking length. */ if (length > 1) gtk_scintilla_get_line(scintilla, line, text); RETURN_STRINGL(text, length-1, 0); } %% override gtk_scintilla_get_sel_text /* TODO: fix to properly handle rectangular selections */ PHP_FUNCTION(gtk_scintilla_get_sel_text) { long length; char *text; GtkScintilla *scintilla = GTK_SCINTILLA(PHP_GTK_GET(this_ptr)); NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "")) return; length = gtk_scintilla_get_selection_end(scintilla) - gtk_scintilla_get_selection_start(scintilla) + 1; text = emalloc(length); text[length-1] = 0; gtk_scintilla_get_sel_text(scintilla, text); RETURN_STRINGL(text, length-1, 0); } %% override gtk_scintilla_replace_target PHP_FUNCTION(gtk_scintilla_replace_target) { int length; char *text; NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "s#", &text, &length)) return; length = gtk_scintilla_replace_target(GTK_SCINTILLA(PHP_GTK_GET(this_ptr)), length, text); RETURN_LONG(length); } %% override gtk_scintilla_replace_target_re PHP_FUNCTION(gtk_scintilla_replace_target_re) { int length; char *text; NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "s#", &text, &length)) return; length = gtk_scintilla_replace_target_re(GTK_SCINTILLA(PHP_GTK_GET(this_ptr)), length, text); RETURN_LONG(length); } %% override gtk_scintilla_search_in_target PHP_FUNCTION(gtk_scintilla_search_in_target) { #ifdef PHP_WIN32 RETURN_LONG(0); #else int length, pos; char *text; NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "s#", &text, &length)) return; RETURN_LONG(gtk_search_in_target(GTK_SCINTILLA(PHP_GTK_GET(this_ptr)), length, text)); #endif } %% override gtk_scintilla_find_text PHP_FUNCTION(gtk_scintilla_find_text) { int flags; char *text; long chrg_min = 0, chrg_max, text_min, text_max; GtkScintilla *scintilla = GTK_SCINTILLA(PHP_GTK_GET(this_ptr)); NOT_STATIC_METHOD(); if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "is|ll", &flags, &text, &chrg_min, &chrg_max)) return; if (ZEND_NUM_ARGS() < 4) { chrg_max = gtk_scintilla_get_line_end_position(scintilla, gtk_scintilla_get_line_count(scintilla)); } RETURN_LONG(gtk_scintilla_find_text(scintilla, flags, text, chrg_min, chrg_max, &text_min, &text_max)); } http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/Makefile.frag?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/Makefile.frag +++ php-gtk/ext/sourceview/Makefile.frag $(builddir)/gen_sourceview.c: $(srcdir)/sourceview.defs $(srcdir)/sourceview.overrides ( \ $(PHP) $(top_srcdir)/generator/generator.php \ -l $(@D)/$(*F).log \ -r ext/gtk+/atk-types.defs \ -r ext/gtk+/pango-types.defs \ -r ext/gtk+/gdk-types.defs \ -r ext/gtk+/gtk-types.defs \ -o ext/sourceview/sourceview.overrides \ -p GtkSourceView \ -f $@ ext/sourceview/sourceview.defs \ && grep -h "^PHP_GTK_EXPORT_CE" $@ | sed -e "s!^!extern !" > $(@D)/$(*F).h \ ) http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/config.m4?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/config.m4 +++ php-gtk/ext/sourceview/config.m4 dnl $Id: config.m4,v 1.1 2006/03/03 14:49:06 anant Exp $ dnl config.m4 for sourceview module define(sourceview_required_version, 1.2.0) PHP_GTK_ARG_ENABLE(sourceview,for sourceview support, [ --enable-sourceview Enable sourceview support],no) if test "$PHP_GTK_SOURCEVIEW" != "no"; then PKG_CHECK_MODULES(SOURCEVIEW, [gtksourceview-1.0 >= sourceview_required_version], have_sourceview=yes, have_sourceview=no) if test "$have_sourceview" != "yes"; then AC_MSG_RESULT([Unable to locate sourceview version sourceview_required_version or higher: not building]) else AC_DEFINE(HAVE_SOURCEVIEW, 1, [sourceview support]) PHP_EVAL_INCLINE($SOURCEVIEW_CFLAGS) if test "$php_gtk_ext_shared" = "yes"; then PHP_EVAL_LIBLINE($SOURCEVIEW_LIBS, SOURCEVIEW_SHARED_LIBADD) PHP_SUBST(SOURCEVIEW_SHARED_LIBADD) else PHP_EVAL_LIBLINE($SOURCEVIEW_LIBS, PHP_GTK2_SHARED_LIBADD) fi PHP_GTK_EXTENSION(sourceview, $php_gtk_ext_shared, php_sourceview.c, gen_sourceview.c) fi fi http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/php_sourceview.c?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/php_sourceview.c +++ php-gtk/ext/sourceview/php_sourceview.c /* * PHP-GTK - The PHP language bindings for GTK+ * * Copyright (C) 2001,2002 Andrei Zmievski <andrei@php.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: php_sourceview.c,v 1.1 2006/03/03 14:49:06 anant Exp $ */ #include "php_sourceview.h" #if HAVE_SOURCEVIEW #ifdef COMPILE_DL_SOURCEVIEW PHP_GTK_GET_EXTENSION(sourceview) #endif PHP_GTK_XINIT_FUNCTION(sourceview) { phpg_sourceview_register_classes(); phpg_sourceview_register_constants("SOURCEVIEW_"); return SUCCESS; } php_gtk_ext_entry sourceview_ext_entry = { "sourceview", PHP_GTK_XINIT(sourceview), NULL, }; #endif /* HAVE_SOURCEVIEW */ http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/php_sourceview.h?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/php_sourceview.h +++ php-gtk/ext/sourceview/php_sourceview.h /* * PHP-GTK - The PHP language bindings for GTK+ * * Copyright (C) 2001,2002 Andrei Zmievski <andrei@php.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* $Id: php_sourceview.h,v 1.1 2006/03/03 14:49:06 anant Exp $ */ #ifndef PHP_SOURCEVIEW_H #define PHP_SOURCEVIEW_H #include "php_gtk.h" #if HAVE_SOURCEVIEW #include <gtksourceview/gtksourceview.h> extern php_gtk_ext_entry sourceview_ext_entry; #define php_gtk_ext_sourceview_ptr &sourceview_ext_entry void phpg_sourceview_register_classes(void); void phpg_sourceview_register_constants(const char *strip_prefix); #else #define php_gtk_ext_sourceview_ptr NULL #endif /* HAVE_SOURCEVIEW */ #endif /* PHP_SOURCEVIEW_H */ http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/ref.sourceview.defs?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/ref.sourceview.defs +++ php-gtk/ext/sourceview/ref.sourceview.defs ;; -*- scheme -*- ; object definitions ... (define-object SourceBuffer (in-module "Gtk") (parent "GtkTextBuffer") (c-name "GtkSourceBuffer") (gtype-id "GTK_TYPE_SOURCE_BUFFER") ) (define-object SourceLanguage (in-module "Gtk") (parent "GObject") (c-name "GtkSourceLanguage") (gtype-id "GTK_TYPE_SOURCE_LANGUAGE") ) (define-object SourceLanguagesManager (in-module "Gtk") (parent "GObject") (c-name "GtkSourceLanguagesManager") (gtype-id "GTK_TYPE_SOURCE_LANGUAGES_MANAGER") ) (define-object SourcePrintJob (in-module "Gtk") (parent "GObject") (c-name "GtkSourcePrintJob") (gtype-id "GTK_TYPE_SOURCE_PRINT_JOB") ) (define-object SourceTagTable (in-module "Gtk") (parent "GtkTextTagTable") (c-name "GtkSourceTagTable") (gtype-id "GTK_TYPE_SOURCE_TAG_TABLE") ) (define-object SourceView (in-module "Gtk") (parent "GtkTextView") (c-name "GtkSourceView") (gtype-id "GTK_TYPE_SOURCE_VIEW") ) ;; Interfaces (define-interface SourceStyleScheme (in-module "Gtk") (c-name "GtkSourceStyleScheme") (gtype-id "GTK_TYPE_SOURCE_STYLE_SCHEME") ) ;; Boxed types (define-boxed SourceTagStyle (in-module "Gtk") (c-name "GtkSourceTagStyle") (gtype-id "GTK_TYPE_SOURCE_TAG_STYLE") (copy-func "gtk_source_tag_style_copy") (release-func "gtk_source_tag_style_free") (fields '("gboolean" "is_default") '("guint" "mask") '("GdkColor" "foreground") '("GdkColor" "background") '("gboolean" "italic") '("gboolean" "bold") '("gboolean" "underline") '("gboolean" "strikethrough") ) ) ;; Typedefs (define-object SourceMarker (in-module "Gtk") (parent "GtkTextMark") (c-name "GtkSourceMarker") (gtype-id "GTK_TYPE_SOURCE_MARKER") ) ;; Enumerations and flags ... (define-flags SourceSearchFlags (in-module "Gtk") (c-name "GtkSourceSearchFlags") (gtype-id "GTK_TYPE_SOURCE_SEARCH_FLAGS") (values '("visible-only" "GTK_SOURCE_SEARCH_VISIBLE_ONLY") '("text-only" "GTK_SOURCE_SEARCH_TEXT_ONLY") '("case-insensitive" "GTK_SOURCE_SEARCH_CASE_INSENSITIVE") ) ) (define-flags SourceTagStyleMask (in-module "Gtk") (c-name "GtkSourceTagStyleMask") (gtype-id "GTK_TYPE_SOURCE_TAG_STYLE_MASK") (values '("background" "GTK_SOURCE_TAG_STYLE_USE_BACKGROUND") '("foreground" "GTK_SOURCE_TAG_STYLE_USE_FOREGROUND") ) ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/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" (null-ok) (default "NULL")) ) ) (define-function gtk_source_buffer_new_with_language (c-name "gtk_source_buffer_new_with_language") (is-constructor-of "GtkSourceBuffer") (return-type "GtkSourceBuffer*") (parameters '("GtkSourceLanguage*" "language") ) ) (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_match_style (of-object "GtkSourceBuffer") (c-name "gtk_source_buffer_set_bracket_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_language (of-object "GtkSourceBuffer") (c-name "gtk_source_buffer_get_language") (return-type "GtkSourceLanguage*") ) (define-method set_language (of-object "GtkSourceBuffer") (c-name "gtk_source_buffer_set_language") (return-type "none") (parameters '("GtkSourceLanguage*" "language" (null-ok)) ) ) (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" (null-ok)) '("const-gchar*" "type" (null-ok)) '("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") ) ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourceiter.h (define-function gtk_source_iter_forward_search (c-name "gtk_source_iter_forward_search") (return-type "gboolean") (parameters '("const-GtkTextIter*" "iter") '("const-gchar*" "str") '("GtkSourceSearchFlags" "flags") '("GtkTextIter*" "match_start") '("GtkTextIter*" "match_end") '("const-GtkTextIter*" "limit") ) ) (define-function gtk_source_iter_backward_search (c-name "gtk_source_iter_backward_search") (return-type "gboolean") (parameters '("const-GtkTextIter*" "iter") '("const-gchar*" "str") '("GtkSourceSearchFlags" "flags") '("GtkTextIter*" "match_start") '("GtkTextIter*" "match_end") '("const-GtkTextIter*" "limit") ) ) (define-function gtk_source_iter_find_matching_bracket (c-name "gtk_source_iter_find_matching_bracket") (return-type "gboolean") (parameters '("GtkTextIter*" "iter") ) ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourcelanguage.h (define-function gtk_source_language_get_type (c-name "gtk_source_language_get_type") (return-type "GType") ) (define-method get_id (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_id") (return-type "gchar*") ) (define-method get_name (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_name") (return-type "gchar*") ) (define-method get_section (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_section") (return-type "gchar*") ) (define-method get_tags (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_tags") (return-type "GSList*") ) (define-method get_escape_char (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_escape_char") (return-type "gunichar") ) (define-method get_mime_types (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_mime_types") (return-type "GSList*") ) (define-method set_mime_types (of-object "GtkSourceLanguage") (c-name "gtk_source_language_set_mime_types") (return-type "none") (parameters '("const-GSList*" "mime_types") ) ) (define-method get_style_scheme (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_style_scheme") (return-type "GtkSourceStyleScheme*") ) (define-method set_style_scheme (of-object "GtkSourceLanguage") (c-name "gtk_source_language_set_style_scheme") (return-type "none") (parameters '("GtkSourceStyleScheme*" "scheme") ) ) (define-method get_tag_style (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_tag_style") (return-type "GtkSourceTagStyle*") (parameters '("const-gchar*" "tag_id") ) ) (define-method set_tag_style (of-object "GtkSourceLanguage") (c-name "gtk_source_language_set_tag_style") (return-type "none") (parameters '("const-gchar*" "tag_id") '("const-GtkSourceTagStyle*" "style" (null-ok)) ) ) (define-method get_tag_default_style (of-object "GtkSourceLanguage") (c-name "gtk_source_language_get_tag_default_style") (return-type "GtkSourceTagStyle*") (parameters '("const-gchar*" "tag_id") ) ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourcelanguagesmanager.h (define-function gtk_source_languages_manager_get_type (c-name "gtk_source_languages_manager_get_type") (return-type "GType") ) (define-function gtk_source_languages_manager_new (c-name "gtk_source_languages_manager_new") (is-constructor-of "GtkSourceLanguagesManager") (return-type "GtkSourceLanguagesManager*") ) (define-method get_available_languages (of-object "GtkSourceLanguagesManager") (c-name "gtk_source_languages_manager_get_available_languages") (return-type "const-GSList*") ) (define-method get_language_from_mime_type (of-object "GtkSourceLanguagesManager") (c-name "gtk_source_languages_manager_get_language_from_mime_type") (return-type "GtkSourceLanguage*") (parameters '("const-gchar*" "mime_type") ) ) (define-method get_lang_files_dirs (of-object "GtkSourceLanguagesManager") (c-name "gtk_source_languages_manager_get_lang_files_dirs") (return-type "const-GSList*") ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourcemarker.h (define-function gtk_source_marker_get_type (c-name "gtk_source_marker_get_type") (return-type "GType") ) (define-method set_marker_type (of-object "GtkSourceMarker") (c-name "gtk_source_marker_set_marker_type") (return-type "none") (parameters '("const-gchar*" "type") ) ) (define-method get_marker_type (of-object "GtkSourceMarker") (c-name "gtk_source_marker_get_marker_type") (return-type "gchar*") ) (define-method get_line (of-object "GtkSourceMarker") (c-name "gtk_source_marker_get_line") (return-type "gint") ) (define-method get_name (of-object "GtkSourceMarker") (c-name "gtk_source_marker_get_name") (return-type "const-gchar*") ) (define-method get_buffer (of-object "GtkSourceMarker") (c-name "gtk_source_marker_get_buffer") (return-type "GtkSourceBuffer*") ) (define-method next (of-object "GtkSourceMarker") (c-name "gtk_source_marker_next") (return-type "GtkSourceMarker*") ) (define-method prev (of-object "GtkSourceMarker") (c-name "gtk_source_marker_prev") (return-type "GtkSourceMarker*") ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourceprintjob.h (define-function gtk_source_print_job_get_type (c-name "gtk_source_print_job_get_type") (return-type "GType") ) (define-function gtk_source_print_job_new (c-name "gtk_source_print_job_new") (is-constructor-of "GtkSourcePrintJob") (return-type "GtkSourcePrintJob*") (parameters '("GnomePrintConfig*" "config" (null-ok) (default "NULL")) ) ) (define-function gtk_source_print_job_new_with_buffer (c-name "gtk_source_print_job_new_with_buffer") (is-constructor-of "GtkSourcePrintJob") (return-type "GtkSourcePrintJob*") (parameters '("GnomePrintConfig*" "config" (null-ok) (default "NULL")) '("GtkSourceBuffer*" "buffer") ) ) (define-method set_config (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_config") (return-type "none") (parameters '("GnomePrintConfig*" "config") ) ) (define-method get_config (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_config") (return-type "GnomePrintConfig*") ) (define-method set_buffer (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_buffer") (return-type "none") (parameters '("GtkSourceBuffer*" "buffer") ) ) (define-method get_buffer (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_buffer") (return-type "GtkSourceBuffer*") ) (define-method setup_from_view (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_setup_from_view") (return-type "none") (parameters '("GtkSourceView*" "view") ) ) (define-method set_tabs_width (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_tabs_width") (return-type "none") (parameters '("guint" "tabs_width") ) ) (define-method get_tabs_width (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_tabs_width") (return-type "guint") ) (define-method set_wrap_mode (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_wrap_mode") (return-type "none") (parameters '("GtkWrapMode" "wrap") ) ) (define-method get_wrap_mode (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_wrap_mode") (return-type "GtkWrapMode") ) (define-method set_highlight (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_highlight") (return-type "none") (parameters '("gboolean" "highlight") ) ) (define-method get_highlight (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_highlight") (return-type "gboolean") ) (define-method set_font (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_font") (return-type "none") (parameters '("const-gchar*" "font_name") ) ) (define-method get_font (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_font") (return-type "gchar*") ) (define-method set_numbers_font (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_numbers_font") (return-type "none") (parameters '("const-gchar*" "font_name" (null-ok)) ) ) (define-method get_numbers_font (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_numbers_font") (return-type "gchar*") ) (define-method set_print_numbers (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_print_numbers") (return-type "none") (parameters '("guint" "interval") ) ) (define-method get_print_numbers (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_print_numbers") (return-type "guint") ) (define-method set_text_margins (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_text_margins") (return-type "none") (parameters '("gdouble" "top") '("gdouble" "bottom") '("gdouble" "left") '("gdouble" "right") ) ) (define-method get_text_margins (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_text_margins") (return-type "none") (parameters '("gdouble*" "top") '("gdouble*" "bottom") '("gdouble*" "left") '("gdouble*" "right") ) ) (define-method set_font_desc (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_font_desc") (return-type "none") (parameters '("PangoFontDescription*" "desc") ) ) (define-method get_font_desc (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_font_desc") (return-type "PangoFontDescription*") ) (define-method set_numbers_font_desc (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_numbers_font_desc") (return-type "none") (parameters '("PangoFontDescription*" "desc" (null-ok)) ) ) (define-method get_numbers_font_desc (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_numbers_font_desc") (return-type "PangoFontDescription*") ) (define-method set_header_footer_font_desc (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_header_footer_font_desc") (return-type "none") (parameters '("PangoFontDescription*" "desc" (null-ok)) ) ) (define-method get_header_footer_font_desc (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_header_footer_font_desc") (return-type "PangoFontDescription*") ) (define-method print (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_print") (return-type "GnomePrintJob*") ) (define-method print_range (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_print_range") (return-type "GnomePrintJob*") (parameters '("const-GtkTextIter*" "start") '("const-GtkTextIter*" "end") ) ) (define-method print_range_async (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_print_range_async") (return-type "gboolean") (parameters '("const-GtkTextIter*" "start") '("const-GtkTextIter*" "end") ) ) (define-method cancel (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_cancel") (return-type "none") ) (define-method get_print_job (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_print_job") (return-type "GnomePrintJob*") ) (define-method get_page (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_page") (return-type "guint") ) (define-method get_page_count (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_page_count") (return-type "guint") ) (define-method get_print_context (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_print_context") (return-type "GnomePrintContext*") ) (define-method set_print_header (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_print_header") (return-type "none") (parameters '("gboolean" "setting") ) ) (define-method get_print_header (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_print_header") (return-type "gboolean") ) (define-method set_print_footer (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_print_footer") (return-type "none") (parameters '("gboolean" "setting") ) ) (define-method get_print_footer (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_print_footer") (return-type "gboolean") ) (define-method set_header_footer_font (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_header_footer_font") (return-type "none") (parameters '("const-gchar*" "font_name" (null-ok)) ) ) (define-method get_header_footer_font (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_get_header_footer_font") (return-type "gchar*") ) (define-method set_header_format (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_header_format") (return-type "none") (parameters '("const-gchar*" "left" (null-ok)) '("const-gchar*" "center" (null-ok)) '("const-gchar*" "right" (null-ok)) '("gboolean" "separator") ) ) (define-method set_footer_format (of-object "GtkSourcePrintJob") (c-name "gtk_source_print_job_set_footer_format") (return-type "none") (parameters '("const-gchar*" "left" (null-ok)) '("const-gchar*" "center" (null-ok)) '("const-gchar*" "right" (null-ok)) '("gboolean" "separator") ) ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourcestylescheme.h (define-function gtk_source_style_scheme_get_type (c-name "gtk_source_style_scheme_get_type") (return-type "GType") ) (define-method get_tag_style (of-object "GtkSourceStyleScheme") (c-name "gtk_source_style_scheme_get_tag_style") (return-type "GtkSourceTagStyle*") (parameters '("const-gchar*" "style_name") ) ) (define-method get_name (of-object "GtkSourceStyleScheme") (c-name "gtk_source_style_scheme_get_name") (return-type "const-gchar*") ) (define-method get_style_names (of-object "GtkSourceStyleScheme") (c-name "gtk_source_style_scheme_get_style_names") (return-type "GSList*") ) (define-function gtk_source_style_scheme_get_default (c-name "gtk_source_style_scheme_get_default") (return-type "GtkSourceStyleScheme*") ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourcetag.h (define-function gtk_source_tag_get_type (c-name "gtk_source_tag_get_type") (return-type "GType") ) (define-method get_id (of-object "GtkSourceTag") (c-name "gtk_source_tag_get_id") (return-type "gchar*") ) (define-method get_style (of-object "GtkSourceTag") (c-name "gtk_source_tag_get_style") (return-type "GtkSourceTagStyle*") ) (define-method set_style (of-object "GtkSourceTag") (c-name "gtk_source_tag_set_style") (return-type "none") (parameters '("const-GtkSourceTagStyle*" "style") ) ) (define-function gtk_syntax_tag_get_type (c-name "gtk_syntax_tag_get_type") (return-type "GType") ) (define-function gtk_syntax_tag_new (c-name "gtk_syntax_tag_new") (is-constructor-of "GtkSyntaxTag") (return-type "GtkTextTag*") (parameters '("const-gchar*" "id") '("const-gchar*" "name") '("const-gchar*" "pattern_start") '("const-gchar*" "pattern_end") ) ) (define-function gtk_pattern_tag_get_type (c-name "gtk_pattern_tag_get_type") (return-type "GType") ) (define-function gtk_pattern_tag_new (c-name "gtk_pattern_tag_new") (is-constructor-of "GtkPatternTag") (return-type "GtkTextTag*") (parameters '("const-gchar*" "id") '("const-gchar*" "name") '("const-gchar*" "pattern") ) ) (define-function gtk_keyword_list_tag_new (c-name "gtk_keyword_list_tag_new") (is-constructor-of "GtkKeywordListTag") (return-type "GtkTextTag*") (parameters '("const-gchar*" "id") '("const-gchar*" "name") '("const-GSList*" "keywords") '("gboolean" "case_sensitive") '("gboolean" "match_empty_string_at_beginning") '("gboolean" "match_empty_string_at_end") '("const-gchar*" "beginning_regex") '("const-gchar*" "end_regex") ) ) (define-function gtk_line_comment_tag_new (c-name "gtk_line_comment_tag_new") (is-constructor-of "GtkLineCommentTag") (return-type "GtkTextTag*") (parameters '("const-gchar*" "id") '("const-gchar*" "name") '("const-gchar*" "pattern_start") ) ) (define-function gtk_string_tag_new (c-name "gtk_string_tag_new") (is-constructor-of "GtkStringTag") (return-type "GtkTextTag*") (parameters '("const-gchar*" "id") '("const-gchar*" "name") '("const-gchar*" "pattern_start") '("const-gchar*" "pattern_end") '("gboolean" "end_at_line_end") ) ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourcetagstyle.h (define-function gtk_source_tag_style_get_type (c-name "gtk_source_tag_style_get_type") (return-type "GType") ) (define-function gtk_source_tag_style_new (c-name "gtk_source_tag_style_new") (is-constructor-of "GtkSourceTagStyle") (return-type "GtkSourceTagStyle*") ) (define-method copy (of-object "GtkSourceTagStyle") (c-name "gtk_source_tag_style_copy") (return-type "GtkSourceTagStyle*") ) (define-method free (of-object "GtkSourceTagStyle") (c-name "gtk_source_tag_style_free") (return-type "none") ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourcetagtable.h (define-function gtk_source_tag_table_get_type (c-name "gtk_source_tag_table_get_type") (return-type "GType") ) (define-function gtk_source_tag_table_new (c-name "gtk_source_tag_table_new") (is-constructor-of "GtkSourceTagTable") (return-type "GtkSourceTagTable*") ) (define-method add_tags (of-object "GtkSourceTagTable") (c-name "gtk_source_tag_table_add_tags") (return-type "none") (parameters '("const-GSList*" "tags") ) ) (define-method remove_source_tags (of-object "GtkSourceTagTable") (c-name "gtk_source_tag_table_remove_source_tags") (return-type "none") ) ;; From /opt/gnome2/include/gtksourceview-1.0/gtksourceview/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") (is-constructor-of "GtkSourceView") (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" (null-ok)) ) ) (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 /opt/gnome2/include/gtksourceview-1.0/gtksourceview/gtksourceview-typebuiltins.h (define-function gtk_source_search_flags_get_type (c-name "gtk_source_search_flags_get_type") (return-type "GType") ) (define-function gtk_source_tag_style_mask_get_type (c-name "gtk_source_tag_style_mask_get_type") (return-type "GType") ) http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/ref.sourceview.overrides?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/ref.sourceview.overrides +++ php-gtk/ext/sourceview/ref.sourceview.overrides /* -*- C -*- */ %% headers #define NO_IMPORT_PYGOBJECT #include "pygobject.h" #include <gtksourceview/gtksourcebuffer.h> #include <gtksourceview/gtksourceiter.h> #include <gtksourceview/gtksourcelanguage.h> #include <gtksourceview/gtksourcelanguagesmanager.h> #include <gtksourceview/gtksourcemarker.h> #include <gtksourceview/gtksourceprintjob.h> #include <gtksourceview/gtksourcestylescheme.h> #include <gtksourceview/gtksourcetag.h> #include <gtksourceview/gtksourcetagstyle.h> #include <gtksourceview/gtksourcetagtable.h> #include <gtksourceview/gtksourceview.h> #include <gtksourceview/gtksourceview-typebuiltins.h> static PyObject * _gslist_to_pylist_objs (const GSList *source) { const GSList *iter; PyObject *dest = PyList_New (0); for (iter = source; iter != NULL; iter = iter->next) { PyObject *item = pygobject_new ((GObject *)iter->data); PyList_Append (dest, item); Py_DECREF (item); } return dest; } static PyObject * _gslist_to_pylist_strs (const GSList *source) { const GSList *iter; PyObject *dest = PyList_New (0); for (iter = source; iter != NULL; iter = iter->next) { PyObject *item = PyString_FromString ((char *)iter->data); PyList_Append (dest, item); Py_DECREF (item); } return dest; } %% modulename gtksourceview %% import gobject.GObject as PyGObject_Type import gtk.gdk.Pixbuf as PyGdkPixbuf_Type import gtk.TextView as PyGtkTextView_Type import gtk.TextBuffer as PyGtkTextBuffer_Type import gtk.TextIter as PyGtkTextIter_Type import gtk.TextTag as PyGtkTextTag_Type import gtk.TextMark as PyGtkTextMark_Type import gtk.TextTagTable as PyGtkTextTagTable_Type import gnomeprint.Config as PyGnomePrintConfig_Type import pango.FontDescription as PyPangoFontDescription_Type %% ignore gtk_source_view_new_with_buffer gtk_source_buffer_new_with_language gtk_source_print_job_new_with_buffer %% ignore-glob *_get_type _* %% override gtk_source_view_new static int _wrap_gtk_source_view_new (PyGObject *self, PyObject *args, PyObject *kwargs) { static char *kwlist[] = { "buffer", NULL }; PyGObject *buffer = NULL; if (!PyArg_ParseTupleAndKeywords (args, kwargs, "|O!:GtkSourceView.__init__", kwlist, &PyGtkSourceBuffer_Type, &buffer)) return -1; if (buffer) self->obj = (GObject *)gtk_source_view_new_with_buffer (GTK_SOURCE_BUFFER(buffer->obj)); else self->obj = (GObject *)gtk_source_view_new (); if (!self->obj) { PyErr_SetString (PyExc_RuntimeError, "could not create GtkSourceView object"); return -1; } pygobject_register_wrapper ((PyObject *)self); return 0; } %% override gtk_source_buffer_new static int _wrap_gtk_source_buffer_new (PyGObject *self, PyObject *args, PyObject *kwargs) { static char *kwlist[] = { "table", "lang", NULL }; PyGObject *table = NULL, *lang = NULL; if (!PyArg_ParseTupleAndKeywords (args, kwargs, "|O!O!:GtkSourceBuffer.__init__", kwlist, &PyGtkSourceTagTable_Type, &table, &PyGtkSourceLanguage_Type, &lang)) return -1; if (lang) self->obj = (GObject *)gtk_source_buffer_new_with_language (GTK_SOURCE_LANGUAGE(lang->obj)); else if (table) self->obj = (GObject *)gtk_source_buffer_new (GTK_SOURCE_TAG_TABLE(table->obj)); else self->obj = (GObject *)gtk_source_buffer_new (NULL); if (!self->obj) { PyErr_SetString (PyExc_RuntimeError, "could not create GtkSourceBuffer object"); return -1; } pygobject_register_wrapper ((PyObject *)self); return 0; } %% override gtk_source_print_job_new static int _wrap_gtk_source_print_job_new (PyGObject *self, PyObject *args, PyObject *kwargs) { static char *kwlist[] = { "config", "buffer", NULL }; PyGObject *config = NULL, *buffer = NULL; if (!PyArg_ParseTupleAndKeywords (args, kwargs, "|O!O!:GtkSourcePrintJob.__init__", kwlist, &PyGnomePrintConfig_Type, &config, &PyGtkSourceBuffer_Type, &buffer)) return -1; if (config && buffer) self->obj = (GObject *)gtk_source_print_job_new_with_buffer ( GNOME_PRINT_CONFIG(config->obj), GTK_SOURCE_BUFFER(buffer->obj)); else if (buffer) self->obj = (GObject *)gtk_source_print_job_new_with_buffer (NULL, GTK_SOURCE_BUFFER(buffer->obj)); else if (config) self->obj = (GObject *)gtk_source_print_job_new (GNOME_PRINT_CONFIG(config->obj)); else self->obj = (GObject *)gtk_source_print_job_new (NULL); if (!self->obj) { PyErr_SetString (PyExc_RuntimeError, "could not create GtkSourcePrintJob object"); return -1; } pygobject_register_wrapper ((PyObject *)self); return 0; } %% override gtk_source_buffer_get_markers_in_region static PyObject * _wrap_gtk_source_buffer_get_markers_in_region (PyGObject *self, PyObject *args) { GSList *source; PyObject *dest, *py_start, *py_end; GtkTextIter *start, *end; if (!PyArg_ParseTuple (args, "OO:GtkSourceLanguage.get_tags", &py_start, &py_end)) return NULL; if (pyg_boxed_check (py_start, GTK_TYPE_TEXT_ITER) && pyg_boxed_check (py_end, GTK_TYPE_TEXT_ITER)) { start = pyg_boxed_get (py_start, GtkTextIter); end = pyg_boxed_get (py_end, GtkTextIter); } else { PyErr_SetString (PyExc_TypeError, "start and end must be gtk.TextIters"); return NULL; } source = gtk_source_buffer_get_markers_in_region (GTK_SOURCE_BUFFER(self->obj), start, end); dest = _gslist_to_pylist_objs(source); g_slist_free(source); return dest; } %% override gtk_source_language_get_tags static PyObject * _wrap_gtk_source_language_get_tags (PyGObject *self) { GSList *source; PyObject *dest; source = gtk_source_language_get_tags (GTK_SOURCE_LANGUAGE(self->obj)); dest = _gslist_to_pylist_objs(source); g_slist_free(source); return dest; } %% override gtk_source_language_get_mime_types static PyObject * _wrap_gtk_source_language_get_mime_types (PyGObject *self) { GSList *source; PyObject *dest; source = gtk_source_language_get_tags (GTK_SOURCE_LANGUAGE(self->obj)); dest = _gslist_to_pylist_strs(source); g_slist_free(source); return dest; } %% override gtk_source_language_set_mime_types static PyObject * _wrap_gtk_source_language_set_mime_types (PyGObject *self, PyObject *args) { PyObject *source; GSList *dest = NULL; int len, i; if (!PyArg_ParseTuple (args, "O:GtkSourceTagTable.add_tags", &source)) return NULL; if (!PySequence_Check (source)) { PyErr_SetString (PyExc_TypeError, "argument must be a sequence"); return NULL; } len = PySequence_Length (source); for (i = 0; i < len; i++) { PyObject *item = PySequence_GetItem (source, i); Py_DECREF (item); if (!PyString_Check (item) && !PyUnicode_Check (item)) { PyErr_SetString (PyExc_TypeError, "sequence item not a string or unicode object"); g_slist_free (dest); return NULL; } dest = g_slist_append(dest, PyString_AsString(item)); } gtk_source_tag_table_add_tags(GTK_SOURCE_TAG_TABLE(self->obj), dest); g_slist_free(dest); Py_INCREF(Py_None); return Py_None; } %% override gtk_source_languages_manager_get_available_languages static PyObject * _wrap_gtk_source_languages_manager_get_available_languages (PyGObject *self) { const GSList *source; PyObject *dest; source = gtk_source_languages_manager_get_available_languages ( GTK_SOURCE_LANGUAGES_MANAGER(self->obj)); dest = _gslist_to_pylist_objs(source); return dest; } %% override gtk_source_languages_manager_get_lang_files_dirs static PyObject * _wrap_gtk_source_languages_manager_get_lang_files_dirs (PyGObject *self) { const GSList *source; PyObject *dest; source = gtk_source_languages_manager_get_lang_files_dirs ( GTK_SOURCE_LANGUAGES_MANAGER(self->obj)); dest = _gslist_to_pylist_strs(source); return dest; } %% override gtk_source_style_scheme_get_style_names static PyObject * _wrap_gtk_source_style_scheme_get_style_names (PyGObject *self) { GSList *source; PyObject *dest; source = gtk_source_style_scheme_get_style_names (GTK_SOURCE_STYLE_SCHEME(self->obj)); dest = _gslist_to_pylist_strs(source); g_slist_free(source); return dest; } %% override-attr GtkSourceTagStyle.bold static int _wrap_gtk_source_tag_style__set_bold(PyGObject *self, PyObject *value, void *closure) { pyg_boxed_get (self, GtkSourceTagStyle)->bold = PyObject_IsTrue(value); return 0; } %% override-attr GtkSourceTagStyle.italic static int _wrap_gtk_source_tag_style__set_italic(PyGObject *self, PyObject *value, void *closure) { pyg_boxed_get (self, GtkSourceTagStyle)->italic = PyObject_IsTrue(value); return 0; } %% override-attr GtkSourceTagStyle.underline static int _wrap_gtk_source_tag_style__set_underline(PyGObject *self, PyObject *value, void *closure) { pyg_boxed_get (self, GtkSourceTagStyle)->underline = PyObject_IsTrue(value); return 0; } %% override-attr GtkSourceTagStyle.strikethrough static int _wrap_gtk_source_tag_style__set_strikethrough(PyGObject *self, PyObject *value, void *closure) { pyg_boxed_get (self, GtkSourceTagStyle)->strikethrough = PyObject_IsTrue(value); return 0; } %% override-attr GtkSourceTagStyle.foreground static int _wrap_gtk_source_tag_style__set_foreground(PyGObject *self, PyObject *value, void *closure) { if (value == Py_None) pyg_boxed_get (self, GtkSourceTagStyle)->mask &= ~GTK_SOURCE_TAG_STYLE_USE_FOREGROUND; else { if (!pyg_boxed_check (value, GDK_TYPE_COLOR)) { PyErr_SetString(PyExc_TypeError, "a gtk.gdk.Color object or None is required"); return -1; } pyg_boxed_get (self, GtkSourceTagStyle)->foreground = *(pyg_boxed_get (value, GdkColor)); pyg_boxed_get (self, GtkSourceTagStyle)->mask |= GTK_SOURCE_TAG_STYLE_USE_FOREGROUND; } return 0; } %% override-attr GtkSourceTagStyle.background static int _wrap_gtk_source_tag_style__set_background(PyGObject *self, PyObject *value, void *closure) { if (value == Py_None) pyg_boxed_get (self, GtkSourceTagStyle)->mask &= ~GTK_SOURCE_TAG_STYLE_USE_BACKGROUND; else { if (!pyg_boxed_check (value, GDK_TYPE_COLOR)) { PyErr_SetString(PyExc_TypeError, "a gtk.gdk.Color object or None is required"); return -1; } pyg_boxed_get (self, GtkSourceTagStyle)->background = *(pyg_boxed_get (value, GdkColor)); pyg_boxed_get (self, GtkSourceTagStyle)->mask |= GTK_SOURCE_TAG_STYLE_USE_BACKGROUND; } return 0; } %% override gtk_source_tag_table_add_tags static PyObject * _wrap_gtk_source_tag_table_add_tags (PyGObject *self, PyObject *args) { PyObject *source; GSList *dest = NULL; int len, i; if (!PyArg_ParseTuple (args, "O:GtkSourceTagTable.add_tags", &source)) return NULL; if (!PySequence_Check (source)) { PyErr_SetString (PyExc_TypeError, "argument must be a sequence"); return NULL; } len = PySequence_Length (source); for (i = 0; i < len; i++) { PyObject *item = PySequence_GetItem (source, i); Py_DECREF (item); if (!PyObject_TypeCheck (item, &PyGtkTextTag_Type)) { PyErr_SetString (PyExc_TypeError, "sequence item not a gtk.TextTag"); g_slist_free (dest); return NULL; } dest = g_slist_append(dest, GTK_TEXT_TAG(((PyGObject *)item)->obj)); } gtk_source_tag_table_add_tags(GTK_SOURCE_TAG_TABLE(self->obj), dest); g_slist_free(dest); Py_INCREF (Py_None); return Py_None; } %% override gtk_source_print_job_get_text_margins static PyObject * _wrap_gtk_source_print_job_get_text_margins (PyGObject *self) { gdouble top, bottom, left, right; gtk_source_print_job_get_text_margins (GTK_SOURCE_PRINT_JOB(self->obj), &top, &bottom, &left, &right); return Py_BuildValue("(dddd)", top, bottom, left, right); } %% http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/sourceview.defs?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/sourceview.defs +++ php-gtk/ext/sourceview/sourceview.defs ; object definitions ... (define-object SourceBuffer (in-module "Gtk") (parent "GtkTextBuffer") (c-name "GtkSourceBuffer") (gtype-id "GTK_TYPE_SOURCE_BUFFER") ) (define-object SourceLanguage (in-module "Gtk") (parent "GObject") (c-name "GtkSourceLanguage") (gtype-id "GTK_TYPE_SOURCE_LANGUAGE") ) (define-object SourceTagTable (in-module "Gtk") (parent "GtkTextTagTable") (c-name "GtkSourceTagTable") (gtype-id "GTK_TYPE_SOURCE_TAG_TABLE") ) (define-object SourceView (in-module "Gtk") (parent "GtkTextView") (c-name "GtkSourceView") (gtype-id "GTK_TYPE_SOURCE_VIEW") ) ;; Interfaces (define-interface SourceStyleScheme (in-module "Gtk") (c-name "GtkSourceStyleScheme") (gtype-id "GTK_TYPE_SOURCE_STYLE_SCHEME") ) ;; Boxed types (define-boxed SourceTagStyle (in-module "Gtk") (c-name "GtkSourceTagStyle") (gtype-id "GTK_TYPE_SOURCE_TAG_STYLE") (copy-func "gtk_source_tag_style_copy") (release-func "gtk_source_tag_style_free") (fields '("gboolean" "is_default") '("guint" "mask") '("GdkColor" "foreground") '("GdkColor" "background") '("gboolean" "italic") '("gboolean" "bold") '("gboolean" "underline") '("gboolean" "strikethrough") ) ) ;; Typedefs (define-object SourceMarker (in-module "Gtk") (parent "GtkTextMark") (c-name "GtkSourceMarker") (gtype-id "GTK_TYPE_SOURCE_MARKER") ) ;; From /usr/include/gtksourceview-1.0/gtksourceview/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" (null-ok) (default "NULL")) ) ) (define-function gtk_source_buffer_new_with_language (c-name "gtk_source_buffer_new_with_language") (is-constructor-of "GtkSourceBuffer") (return-type "GtkSourceBuffer*") (parameters '("GtkSourceLanguage*" "language") ) ) (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_match_style (of-object "GtkSourceBuffer") (c-name "gtk_source_buffer_set_bracket_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_language (of-object "GtkSourceBuffer") (c-name "gtk_source_buffer_get_language") (return-type "GtkSourceLanguage*") ) (define-method set_language (of-object "GtkSourceBuffer") (c-name "gtk_source_buffer_set_language") (return-type "none") (parameters '("GtkSourceLanguage*" "language" (null-ok)) ) ) (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" (null-ok)) '("const-gchar*" "type" (null-ok)) '("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") ) ) ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourceiter.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourcelanguage.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourcelanguagesmanager.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourcemarker.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourceprintjob.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourcestylescheme.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourcetag.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/gtksourcetagstyle.h ;; From /usr/include/gtksourceview-1.0/gtksourceview/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") (is-constructor-of "GtkSourceView") (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_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 /usr/include/gtksourceview-1.0/gtksourceview/gtksourceview-typebuiltins.h ;; Added from gtk-types.defs to resolve undeclared errors. (define-object TextBuffer (in-module "Gtk") (parent "GObject") (c-name "GtkTextBuffer") (gtype-id "GTK_TYPE_TEXT_BUFFER") (fields '("GtkTextTagTable*" "tag_table") ) ) (define-object TextTagTable (in-module "Gtk") (parent "GObject") (c-name "GtkTextTagTable") (gtype-id "GTK_TYPE_TEXT_TAG_TABLE") ) (define-object TextView (in-module "Gtk") (parent "GtkContainer") (c-name "GtkTextView") (gtype-id "GTK_TYPE_TEXT_VIEW") ) (define-object TextMark (in-module "Gtk") (parent "GObject") (c-name "GtkTextMark") (gtype-id "GTK_TYPE_TEXT_MARK") ) (define-object Container (in-module "Gtk") (parent "GtkWidget") (c-name "GtkContainer") (gtype-id "GTK_TYPE_CONTAINER") (fields '("GtkWidget*" "focus_child") '("guint" "border_width") '("guint" "need_resize") '("guint" "resize_mode") '("guint" "reallocate_redraws") '("guint" "has_focus_chain") ) ) (define-object Widget (in-module "Gtk") (parent "GtkObject") (c-name "GtkWidget") (gtype-id "GTK_TYPE_WIDGET") (fields '("guint8" "state") '("guint8" "saved_state") '("gchar*" "name") '("GtkStyle*" "style") '("GdkRectangle" "allocation") '("GdkWindow*" "window") '("GtkWidget*" "parent") ) ) (define-object Object (in-module "Gtk") (parent "GObject") (c-name "GtkObject") (gtype-id "GTK_TYPE_OBJECT") ) http://cvs.php.net/viewcvs.cgi/php-gtk/ext/sourceview/sourceview.overrides?view=markup&rev=1.1 Index: php-gtk/ext/sourceview/sourceview.overrides +++ php-gtk/ext/sourceview/sourceview.overrides /* vim: set ft=cpp: */ %% headers #include <gtksourceview/gtksourceview.h> #include "ext/gtk+/php_gtk+.h" %% constants %% ignore-glob *_get_type