File: e-webkit-editor.h

package info (click to toggle)
evolution 3.22.6-1%2Bdeb9u2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 143,884 kB
  • sloc: ansic: 462,464; makefile: 5,128; xml: 4,189; sh: 4,094; python: 702
file content (68 lines) | stat: -rw-r--r-- 2,000 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
 * Copyright (C) 2016 Red Hat, Inc. (www.redhat.com)
 *
 * This library is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef E_WEBKIT_EDITOR_H
#define E_WEBKIT_EDITOR_H

#include <webkit2/webkit2.h>

/* Standard GObject macros */
#define E_TYPE_WEBKIT_EDITOR \
	(e_webkit_editor_get_type ())
#define E_WEBKIT_EDITOR(obj) \
	(G_TYPE_CHECK_INSTANCE_CAST \
	((obj), E_TYPE_WEBKIT_EDITOR, EWebKitEditor))
#define E_WEBKIT_EDITOR_CLASS(cls) \
	(G_TYPE_CHECK_CLASS_CAST \
	((cls), E_TYPE_WEBKIT_EDITOR, EWebKitEditorClass))
#define E_IS_WEBKIT_EDITOR(obj) \
	(G_TYPE_CHECK_INSTANCE_TYPE \
	((obj), E_TYPE_WEBKIT_EDITOR))
#define E_IS_WEBKIT_EDITOR_CLASS(cls) \
	(G_TYPE_CHECK_CLASS_TYPE \
	((cls), E_TYPE_WEBKIT_EDITOR))
#define E_WEBKIT_EDITOR_GET_CLASS(obj) \
	(G_TYPE_INSTANCE_GET_CLASS \
	((obj), E_TYPE_WEBKIT_EDITOR, EWebKitEditorClass))

G_BEGIN_DECLS

typedef struct _EWebKitEditor EWebKitEditor;
typedef struct _EWebKitEditorClass EWebKitEditorClass;
typedef struct _EWebKitEditorPrivate EWebKitEditorPrivate;

struct _EWebKitEditor {
	WebKitWebView parent;
	EWebKitEditorPrivate *priv;
};

struct _EWebKitEditorClass {
	WebKitWebViewClass parent_class;

	gboolean	(*popup_event)		(EWebKitEditor *wk_editor,
						 GdkEventButton *event);
	void		(*paste_primary_clipboard)
						(EWebKitEditor *wk_editor);
};

GType		e_webkit_editor_get_type 		(void) G_GNUC_CONST;

EWebKitEditor *
		e_webkit_editor_new			(void);

G_END_DECLS

#endif /* E_WEBKIT_EDITOR_H */