X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d134f1702e983b6588c5783b10a401e8bdb69314..80a779275ae04443c568dca919adb26cf6f5002c:/src/stc/scintilla/include/ScintillaWidget.h?ds=inline diff --git a/src/stc/scintilla/include/ScintillaWidget.h b/src/stc/scintilla/include/ScintillaWidget.h index 980557a2e7..9d23ce2a91 100644 --- a/src/stc/scintilla/include/ScintillaWidget.h +++ b/src/stc/scintilla/include/ScintillaWidget.h @@ -1,7 +1,9 @@ // Scintilla source code edit control -// ScintillaWidget.h - definition of Scintilla widget for GTK+ -// Only needed by GTK+ code but is harmless on other platforms. -// Copyright 1998-2000 by Neil Hodgson +/** @file ScintillaWidget.h + ** Definition of Scintilla widget for GTK+. + ** Only needed by GTK+ code but is harmless on other platforms. + **/ +// Copyright 1998-2001 by Neil Hodgson // The License.txt file describes the conditions under which this software may be distributed. #ifndef SCINTILLAWIDGET_H @@ -21,21 +23,32 @@ typedef struct _ScintillaObject ScintillaObject; typedef struct _ScintillaClass ScintillaClass; struct _ScintillaObject { - GtkFixed vbox; + GtkContainer cont; void *pscin; }; struct _ScintillaClass { - GtkFixedClass parent_class; + GtkContainerClass parent_class; void (* command) (ScintillaObject *ttt); void (* notify) (ScintillaObject *ttt); }; -guint scintilla_get_type (void); +#if GLIB_MAJOR_VERSION < 2 +GtkType scintilla_get_type (void); +#else +GType scintilla_get_type (void); +#endif GtkWidget* scintilla_new (void); -void scintilla_set_id (ScintillaObject *sci,int id); -long scintilla_send_message (ScintillaObject *sci,int iMessage,int wParam,int lParam); +void scintilla_set_id (ScintillaObject *sci, uptr_t id); +sptr_t scintilla_send_message (ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam); +void scintilla_release_resources(void); + +#if GTK_MAJOR_VERSION < 2 +#define SCINTILLA_NOTIFY "notify" +#else +#define SCINTILLA_NOTIFY "sci-notify" +#endif #ifdef __cplusplus }