]> git.saurik.com Git - wxWidgets.git/blame - src/stc/scintilla/include/ScintillaWidget.h
Use the data scheme to load resources in the WebKitGTK+ implementation, rather than...
[wxWidgets.git] / src / stc / scintilla / include / ScintillaWidget.h
CommitLineData
9e96e16f 1/* Scintilla source code edit control */
65ec6247
RD
2/** @file ScintillaWidget.h
3 ** Definition of Scintilla widget for GTK+.
4 ** Only needed by GTK+ code but is harmless on other platforms.
5 **/
9e96e16f
RD
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. */
d134f170
RD
8
9#ifndef SCINTILLAWIDGET_H
10#define SCINTILLAWIDGET_H
11
12#if PLAT_GTK
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#define SCINTILLA(obj) GTK_CHECK_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 ())
21
22typedef struct _ScintillaObject ScintillaObject;
23typedef struct _ScintillaClass ScintillaClass;
24
25struct _ScintillaObject {
65ec6247 26 GtkContainer cont;
d134f170
RD
27 void *pscin;
28};
29
30struct _ScintillaClass {
a834585d 31 GtkContainerClass parent_class;
d134f170
RD
32
33 void (* command) (ScintillaObject *ttt);
34 void (* notify) (ScintillaObject *ttt);
35};
36
b8193d80 37#if GLIB_MAJOR_VERSION < 2
1e9bafca 38GtkType scintilla_get_type (void);
b8193d80
RD
39#else
40GType scintilla_get_type (void);
41#endif
d134f170 42GtkWidget* scintilla_new (void);
1e9bafca 43void scintilla_set_id (ScintillaObject *sci, uptr_t id);
9e730a78
RD
44sptr_t scintilla_send_message (ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam);
45void scintilla_release_resources(void);
d134f170 46
a834585d
RD
47#if GTK_MAJOR_VERSION < 2
48#define SCINTILLA_NOTIFY "notify"
49#else
50#define SCINTILLA_NOTIFY "sci-notify"
51#endif
52
d134f170
RD
53#ifdef __cplusplus
54}
55#endif
56
57#endif
58
59#endif