gspell-text-view.h 2.18 KB
Newer Older
1 2 3
/*
 * This file is part of gspell, a spell-checking library.
 *
4
 * Copyright 2015, 2016 - Sébastien Wilmet
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
 *
 * 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; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * 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/>.
 */

20 21
#ifndef GSPELL_TEXT_VIEW_H
#define GSPELL_TEXT_VIEW_H
22

23
#if !defined (GSPELL_H_INSIDE) && !defined (GSPELL_COMPILATION)
24 25 26
#error "Only <gspell/gspell.h> can be included directly."
#endif

27
#include <gtk/gtk.h>
28
#include <gspell/gspell-version.h>
29 30 31

G_BEGIN_DECLS

32
#define GSPELL_TYPE_TEXT_VIEW (gspell_text_view_get_type ())
33 34

GSPELL_AVAILABLE_IN_ALL
35 36
G_DECLARE_DERIVABLE_TYPE (GspellTextView, gspell_text_view,
			  GSPELL, TEXT_VIEW,
37 38
			  GObject)

39
struct _GspellTextViewClass
40 41
{
	GObjectClass parent_class;
42 43 44

	/* Padding for future expansion */
	gpointer padding[8];
45 46
};

47
GSPELL_AVAILABLE_IN_ALL
48
GspellTextView *	gspell_text_view_get_from_gtk_text_view		(GtkTextView *gtk_view);
49

50
GSPELL_AVAILABLE_IN_1_2
51 52
void			gspell_text_view_basic_setup			(GspellTextView *gspell_view);

53
GSPELL_AVAILABLE_IN_ALL
54 55
GtkTextView *		gspell_text_view_get_view			(GspellTextView *gspell_view);

56
GSPELL_AVAILABLE_IN_ALL
57
gboolean		gspell_text_view_get_inline_spell_checking	(GspellTextView *gspell_view);
58

59
GSPELL_AVAILABLE_IN_ALL
60 61
void			gspell_text_view_set_inline_spell_checking	(GspellTextView *gspell_view,
									 gboolean        enable);
62

63
GSPELL_AVAILABLE_IN_1_2
64 65
gboolean		gspell_text_view_get_enable_language_menu	(GspellTextView *gspell_view);

66
GSPELL_AVAILABLE_IN_1_2
67 68 69
void			gspell_text_view_set_enable_language_menu	(GspellTextView *gspell_view,
									 gboolean        enable_language_menu);

70 71
G_END_DECLS

72
#endif /* GSPELL_TEXT_VIEW_H */
73 74

/* ex:set ts=8 noet: */