2009-06-24 19:09:31 +00:00
|
|
|
/* Scintilla source code edit control */
|
2009-04-24 23:35:41 +00:00
|
|
|
/** @file ScintillaWidget.h
|
|
|
|
** Definition of Scintilla widget for GTK+.
|
|
|
|
** Only needed by GTK+ code but is harmless on other platforms.
|
|
|
|
**/
|
2009-06-24 19:09:31 +00:00
|
|
|
/* Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
|
|
|
|
* The License.txt file describes the conditions under which this software may be distributed. */
|
2009-04-24 23:35:41 +00:00
|
|
|
|
|
|
|
#ifndef SCINTILLAWIDGET_H
|
|
|
|
#define SCINTILLAWIDGET_H
|
|
|
|
|
2010-07-12 22:19:51 +00:00
|
|
|
#if defined(GTK)
|
2009-04-24 23:35:41 +00:00
|
|
|
|
|
|
|
#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 {
|
|
|
|
GtkContainer cont;
|
|
|
|
void *pscin;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _ScintillaClass {
|
|
|
|
GtkContainerClass parent_class;
|
|
|
|
|
|
|
|
void (* command) (ScintillaObject *ttt);
|
|
|
|
void (* notify) (ScintillaObject *ttt);
|
|
|
|
};
|
|
|
|
|
|
|
|
GType scintilla_get_type (void);
|
|
|
|
GtkWidget* scintilla_new (void);
|
|
|
|
void scintilla_set_id (ScintillaObject *sci, uptr_t id);
|
|
|
|
sptr_t scintilla_send_message (ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam);
|
|
|
|
void scintilla_release_resources(void);
|
|
|
|
|
|
|
|
#define SCINTILLA_NOTIFY "sci-notify"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|