]> git.saurik.com Git - wxWidgets.git/blob - contrib/src/stc/scintilla/include/ScintillaWidget.h
added wxNO_BORDER style
[wxWidgets.git] / contrib / src / stc / scintilla / include / ScintillaWidget.h
1 // Scintilla source code edit control
2 // ScintillaWidget.h - definition of Scintilla widget for GTK+
3 // Only needed by GTK+ code but is harmless on other platforms.
4 // Copyright 1998-2000 by Neil Hodgson <neilh@scintilla.org>
5 // The License.txt file describes the conditions under which this software may be distributed.
6
7 #ifndef SCINTILLAWIDGET_H
8 #define SCINTILLAWIDGET_H
9
10 #if PLAT_GTK
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 #define SCINTILLA(obj) GTK_CHECK_CAST (obj, scintilla_get_type (), ScintillaObject)
17 #define SCINTILLA_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, scintilla_get_type (), ScintillaClass)
18 #define IS_SCINTILLA(obj) GTK_CHECK_TYPE (obj, scintilla_get_type ())
19
20 typedef struct _ScintillaObject ScintillaObject;
21 typedef struct _ScintillaClass ScintillaClass;
22
23 struct _ScintillaObject {
24 GtkFixed vbox;
25 void *pscin;
26 };
27
28 struct _ScintillaClass {
29 GtkFixedClass parent_class;
30
31 void (* command) (ScintillaObject *ttt);
32 void (* notify) (ScintillaObject *ttt);
33 };
34
35 guint scintilla_get_type (void);
36 GtkWidget* scintilla_new (void);
37 void scintilla_set_id (ScintillaObject *sci,int id);
38 long scintilla_send_message (ScintillaObject *sci,int iMessage,int wParam,int lParam);
39
40 #ifdef __cplusplus
41 }
42 #endif
43
44 #endif
45
46 #endif