]> git.saurik.com Git - wxWidgets.git/blame - src/stc/scintilla/include/ScintillaWidget.h
overwrote with src\wxBase.dsp
[wxWidgets.git] / src / stc / scintilla / include / ScintillaWidget.h
CommitLineData
d134f170 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 **/
6// Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
d134f170
RD
7// The License.txt file describes the conditions under which this software may be distributed.
8
9#ifndef SCINTILLAWIDGET_H
10#define SCINTILLAWIDGET_H
11
12#if PLAT_GTK
13
65ec6247
RD
14#ifndef SCINTILLA_H
15#ifdef _MSC_VER
16#pragma message(__FILE__ "(1) : warning : Scintilla.h should be included before ScintillaWidget.h")
17#pragma message("This will be required in the next version of Scintilla")
18#else
19#warning Scintilla.h should be included before ScintillaWidget.h
20#warning This will be required in the next version of Scintilla
21#endif
22#include "Scintilla.h"
23#endif
24
d134f170
RD
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29#define SCINTILLA(obj) GTK_CHECK_CAST (obj, scintilla_get_type (), ScintillaObject)
30#define SCINTILLA_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, scintilla_get_type (), ScintillaClass)
31#define IS_SCINTILLA(obj) GTK_CHECK_TYPE (obj, scintilla_get_type ())
32
33typedef struct _ScintillaObject ScintillaObject;
34typedef struct _ScintillaClass ScintillaClass;
35
36struct _ScintillaObject {
65ec6247 37 GtkContainer cont;
d134f170
RD
38 void *pscin;
39};
40
41struct _ScintillaClass {
42 GtkFixedClass parent_class;
43
44 void (* command) (ScintillaObject *ttt);
45 void (* notify) (ScintillaObject *ttt);
46};
47
48guint scintilla_get_type (void);
49GtkWidget* scintilla_new (void);
50void scintilla_set_id (ScintillaObject *sci,int id);
65ec6247 51sptr_t scintilla_send_message (ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam);
d134f170
RD
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif
58
59#endif