1 // Scintilla source code edit control
\r
2 /** @file ScintillaWidget.h
\r
3 ** Definition of Scintilla widget for GTK+.
\r
4 ** Only needed by GTK+ code but is harmless on other platforms.
\r
6 // Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
\r
7 // The License.txt file describes the conditions under which this software may be distributed.
\r
9 #ifndef SCINTILLAWIDGET_H
\r
10 #define SCINTILLAWIDGET_H
\r
18 #define SCINTILLA(obj) GTK_CHECK_CAST (obj, scintilla_get_type (), ScintillaObject)
\r
19 #define SCINTILLA_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, scintilla_get_type (), ScintillaClass)
\r
20 #define IS_SCINTILLA(obj) GTK_CHECK_TYPE (obj, scintilla_get_type ())
\r
22 typedef struct _ScintillaObject ScintillaObject;
\r
23 typedef struct _ScintillaClass ScintillaClass;
\r
25 struct _ScintillaObject {
\r
30 struct _ScintillaClass {
\r
31 GtkContainerClass parent_class;
\r
33 void (* command) (ScintillaObject *ttt);
\r
34 void (* notify) (ScintillaObject *ttt);
\r
37 #if GLIB_MAJOR_VERSION < 2
\r
38 GtkType scintilla_get_type (void);
\r
40 GType scintilla_get_type (void);
\r
42 GtkWidget* scintilla_new (void);
\r
43 void scintilla_set_id (ScintillaObject *sci, uptr_t id);
\r
44 sptr_t scintilla_send_message (ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam);
\r
45 void scintilla_release_resources(void);
\r
47 #if GTK_MAJOR_VERSION < 2
\r
48 #define SCINTILLA_NOTIFY "notify"
\r
50 #define SCINTILLA_NOTIFY "sci-notify"
\r