]> git.saurik.com Git - wxWidgets.git/blame - src/stc/scintilla/include/ScintillaWidget.h
Changed code to get rid of a compiler warning about statement always being FALSE
[wxWidgets.git] / src / stc / scintilla / include / ScintillaWidget.h
CommitLineData
d134f170
RD
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
13extern "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
20typedef struct _ScintillaObject ScintillaObject;
21typedef struct _ScintillaClass ScintillaClass;
22
23struct _ScintillaObject {
24 GtkFixed vbox;
25 void *pscin;
26};
27
28struct _ScintillaClass {
29 GtkFixedClass parent_class;
30
31 void (* command) (ScintillaObject *ttt);
32 void (* notify) (ScintillaObject *ttt);
33};
34
35guint scintilla_get_type (void);
36GtkWidget* scintilla_new (void);
37void scintilla_set_id (ScintillaObject *sci,int id);
38long scintilla_send_message (ScintillaObject *sci,int iMessage,int wParam,int lParam);
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif
45
46#endif