aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ScintillaWidget.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-06-11 08:05:12 +0000
committernyamatongwe <unknown>2000-06-11 08:05:12 +0000
commit34152d3447cf9f9e576a38594b90824657c1a733 (patch)
tree90b536f64e1db447bbc96ed87f6d4c947ef0df8a /include/ScintillaWidget.h
parent2df02befc7f3cea2ba9571f4f9589b2d0c21f013 (diff)
downloadscintilla-mirror-34152d3447cf9f9e576a38594b90824657c1a733.tar.gz
Moved GTK+ Scintilla widget definition out into ScintillaWidget.h
Diffstat (limited to 'include/ScintillaWidget.h')
-rw-r--r--include/ScintillaWidget.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/include/ScintillaWidget.h b/include/ScintillaWidget.h
new file mode 100644
index 000000000..980557a2e
--- /dev/null
+++ b/include/ScintillaWidget.h
@@ -0,0 +1,46 @@
+// 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 <neilh@scintilla.org>
+// The License.txt file describes the conditions under which this software may be distributed.
+
+#ifndef SCINTILLAWIDGET_H
+#define SCINTILLAWIDGET_H
+
+#if PLAT_GTK
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define SCINTILLA(obj) GTK_CHECK_CAST (obj, scintilla_get_type (), ScintillaObject)
+#define SCINTILLA_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, scintilla_get_type (), ScintillaClass)
+#define IS_SCINTILLA(obj) GTK_CHECK_TYPE (obj, scintilla_get_type ())
+
+typedef struct _ScintillaObject ScintillaObject;
+typedef struct _ScintillaClass ScintillaClass;
+
+struct _ScintillaObject {
+ GtkFixed vbox;
+ void *pscin;
+};
+
+struct _ScintillaClass {
+ GtkFixedClass parent_class;
+
+ void (* command) (ScintillaObject *ttt);
+ void (* notify) (ScintillaObject *ttt);
+};
+
+guint scintilla_get_type (void);
+GtkWidget* scintilla_new (void);
+void scintilla_set_id (ScintillaObject *sci,int id);
+long scintilla_send_message (ScintillaObject *sci,int iMessage,int wParam,int lParam);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+#endif