~ubuntu-branches/ubuntu/wily/apparmor/wily

« back to all changes in this revision

Viewing changes to deprecated/management/profile-editor/src/wxStyledTextCtrl/ScintillaWidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2011-04-27 10:38:07 UTC
  • mfrom: (5.1.118 natty)
  • Revision ID: james.westby@ubuntu.com-20110427103807-ym3rhwys6o84ith0
Tags: 2.6.1-2
debian/copyright: clarify for some full organization names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 **/
 
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.
 
8
 
 
9
#ifndef SCINTILLAWIDGET_H
 
10
#define SCINTILLAWIDGET_H
 
11
 
 
12
#if PLAT_GTK
 
13
 
 
14
#ifdef __cplusplus
 
15
extern "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
 
 
22
typedef struct _ScintillaObject ScintillaObject;
 
23
typedef struct _ScintillaClass  ScintillaClass;
 
24
 
 
25
struct _ScintillaObject {
 
26
        GtkContainer cont;
 
27
        void *pscin;
 
28
};
 
29
 
 
30
struct _ScintillaClass {
 
31
        GtkContainerClass parent_class;
 
32
 
 
33
        void (* command) (ScintillaObject *ttt);
 
34
        void (* notify) (ScintillaObject *ttt);
 
35
};
 
36
 
 
37
GtkType         scintilla_get_type      (void);
 
38
GtkWidget*      scintilla_new           (void);
 
39
void            scintilla_set_id        (ScintillaObject *sci, uptr_t id);
 
40
sptr_t          scintilla_send_message  (ScintillaObject *sci,unsigned int iMessage, uptr_t wParam, sptr_t lParam);
 
41
void            scintilla_release_resources(void);
 
42
 
 
43
#if GTK_MAJOR_VERSION < 2
 
44
#define SCINTILLA_NOTIFY "notify"
 
45
#else
 
46
#define SCINTILLA_NOTIFY "sci-notify"
 
47
#endif
 
48
 
 
49
#ifdef __cplusplus
 
50
}
 
51
#endif
 
52
 
 
53
#endif
 
54
 
 
55
#endif