updated Scintilla to 2.29
[TortoiseGit.git] / ext / scintilla / include / ScintillaWidget.h
blob3a3c7ca92f04fca9f5761cf0bd6144dc8b6c4343
1 /* Scintilla source code edit control */
2 /** @file ScintillaWidget.h
3 ** Definition of Scintilla widget for GTK+.
4 ** Only needed by GTK+ code but is harmless on other platforms.
5 **/
6 /* Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
7 * The License.txt file describes the conditions under which this software may be distributed. */
9 #ifndef SCINTILLAWIDGET_H
10 #define SCINTILLAWIDGET_H
12 #if defined(GTK)
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
18 #define SCINTILLA(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, scintilla_get_type (), ScintillaObject)
19 #define SCINTILLA_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, scintilla_get_type (), ScintillaClass)
20 #define IS_SCINTILLA(obj) GTK_CHECK_TYPE (obj, scintilla_get_type ())
22 typedef struct _ScintillaObject ScintillaObject;
23 typedef struct _ScintillaClass ScintillaClass;
25 struct _ScintillaObject {
26 GtkContainer cont;
27 void *pscin;
30 struct _ScintillaClass {
31 GtkContainerClass parent_class;
33 void (* command) (ScintillaObject *ttt);
34 void (* notify) (ScintillaObject *ttt);
37 GType scintilla_get_type (void);
38 GtkWidget* scintilla_new (void);
39 void scintilla_set_id (ScintillaObject *sci, uptr_t id);
40 sptr_t scintilla_send_message (ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam);
41 void scintilla_release_resources(void);
43 #define SCINTILLA_NOTIFY "sci-notify"
45 #ifdef __cplusplus
47 #endif
49 #endif
51 #endif