geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ScintillaWidget.h
Go to the documentation of this file.
1/* Scintilla source code edit control */
2/* @file ScintillaWidget.h
3 * Definition of Scintilla widget for GTK+.
4 * Only needed by GTK+ code but is harmless on other platforms.
5 * This comment is not a doc-comment as that causes warnings from g-ir-scanner.
6 */
7/* Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org>
8 * The License.txt file describes the conditions under which this software may be distributed. */
9
10#ifndef SCINTILLAWIDGET_H
11#define SCINTILLAWIDGET_H
12
13#if defined(GTK)
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19#define SCINTILLA(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, scintilla_get_type (), ScintillaObject)
20#define SCINTILLA_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, scintilla_get_type (), ScintillaClass)
21#define IS_SCINTILLA(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, scintilla_get_type ())
22
23#define SCINTILLA_TYPE_OBJECT (scintilla_object_get_type())
24#define SCINTILLA_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), SCINTILLA_TYPE_OBJECT, ScintillaObject))
25#define SCINTILLA_IS_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SCINTILLA_TYPE_OBJECT))
26#define SCINTILLA_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), SCINTILLA_TYPE_OBJECT, ScintillaObjectClass))
27#define SCINTILLA_IS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), SCINTILLA_TYPE_OBJECT))
28#define SCINTILLA_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), SCINTILLA_TYPE_OBJECT, ScintillaObjectClass))
29
30typedef struct _ScintillaObject ScintillaObject;
31typedef struct _ScintillaClass ScintillaObjectClass;
32
33struct _ScintillaObject {
34 GtkContainer cont;
35 void *pscin;
36};
37
38struct _ScintillaClass {
39 GtkContainerClass parent_class;
40
41 void (* command) (ScintillaObject *sci, int cmd, GtkWidget *window);
42 void (* notify) (ScintillaObject *sci, int id, SCNotification *scn);
43};
44
45GType scintilla_object_get_type (void);
46GtkWidget* scintilla_object_new (void);
47gintptr scintilla_object_send_message (ScintillaObject *sci, unsigned int iMessage, guintptr wParam, gintptr lParam);
48
49
50GType scnotification_get_type (void);
51#define SCINTILLA_TYPE_NOTIFICATION (scnotification_get_type())
52
53#ifndef G_IR_SCANNING
54/* The legacy names confuse the g-ir-scanner program */
55typedef struct _ScintillaClass ScintillaClass;
56
57GType scintilla_get_type (void);
58GtkWidget* scintilla_new (void);
59void scintilla_set_id (ScintillaObject *sci, uptr_t id);
60sptr_t scintilla_send_message (ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam);
62#endif
63
64#define SCINTILLA_NOTIFY "sci-notify"
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif
71
72#endif
GType scnotification_get_type(void)
GtkWidget * scintilla_object_new()
void scintilla_set_id(ScintillaObject *sci, uptr_t id)
GType scintilla_object_get_type()
gintptr scintilla_object_send_message(ScintillaObject *sci, unsigned int iMessage, uptr_t wParam, sptr_t lParam)
sptr_t scintilla_send_message(ScintillaObject *sci, unsigned int iMessage, uptr_t wParam, sptr_t lParam)
GType scintilla_get_type()
GtkWidget * scintilla_new()
void scintilla_release_resources(void)
intptr_t sptr_t
Definition: Scintilla.h:35
uintptr_t uptr_t
Definition: Scintilla.h:33
const gchar * command
Definition: build.c:2677
ScintillaObject * sci
Definition: editor.c:88