/usr/include/gtkspell-3.0/gtkspell/gtkspell.h is in libgtkspell3-3-dev 3.0.9-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | /* gtkspell - a spell-checking addon for GTK's TextView widget
* Copyright (c) 2002 Evan Martin
* Copyright (c) 2012-2013 Sandro Mani
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
/* vim: set ts=4 sw=4 wm=5 : */
#ifndef GTK_SPELL_H
#define GTK_SPELL_H
#include <glib-object.h>
#include <gtk/gtk.h>
G_BEGIN_DECLS
/**
* GTK_SPELL_ERROR:
*
* Error domain used for gtkspell operations. Indicates that the error code
* will be in the #GtkSpellError enumeration.
*/
#define GTK_SPELL_ERROR (gtk_spell_error_quark())
GQuark gtk_spell_error_quark(void);
/**
* GtkSpellError:
* @GTK_SPELL_ERROR_BACKEND: Error code for backend errors
*
* Error codes used for GtkSpell errors.
*
**/
typedef enum {
GTK_SPELL_ERROR_BACKEND
} GtkSpellError;
/**
* GTK_SPELL_TYPE_ERROR:
*
* The GTK_SPELL_ERROR type.
*/
#define GTK_SPELL_TYPE_ERROR (gtk_spell_error_get_type ())
GType gtk_spell_error_get_type (void) G_GNUC_CONST;
#define GTK_SPELL_TYPE_CHECKER (gtk_spell_checker_get_type ())
#define GTK_SPELL_CHECKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_SPELL_TYPE_CHECKER, GtkSpellChecker))
#define GTK_SPELL_IS_CHECKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_SPELL_TYPE_CHECKER))
#define GTK_SPELL_CHECKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_SPELL_TYPE_CHECKER, GtkSpellCheckerClass))
#define GTK_SPELL_IS_CHECKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_SPELL_TYPE_CHECKER))
#define GTK_SPELL_CHECKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_SPELL_TYPE_CHECKER, GtkSpellCheckerClass))
/**
* GtkSpellChecker:
*
* The #GtkSpellChecker struct contains only private fields.
*/
typedef struct _GtkSpellChecker GtkSpellChecker;
typedef struct _GtkSpellCheckerPrivate GtkSpellCheckerPrivate;
struct _GtkSpellChecker
{
GInitiallyUnowned parent_instance;
/*< private >*/
GtkSpellCheckerPrivate *priv;
};
typedef struct _GtkSpellCheckerClass GtkSpellCheckerClass;
struct _GtkSpellCheckerClass
{
GInitiallyUnownedClass parent_class;
/*< public >*/
void (*language_changed) (GtkSpellChecker *spell, const gchar *new_lang);
};
GType gtk_spell_checker_get_type (void) G_GNUC_CONST;
GtkSpellChecker *gtk_spell_checker_new (void);
gboolean gtk_spell_checker_attach (GtkSpellChecker *spell,
GtkTextView *view);
GtkSpellChecker *gtk_spell_checker_get_from_text_view (GtkTextView *view);
void gtk_spell_checker_detach (GtkSpellChecker *spell);
GList *gtk_spell_checker_get_suggestions (GtkSpellChecker *spell,
const gchar* word);
GtkWidget *gtk_spell_checker_get_suggestions_menu (GtkSpellChecker *spell,
GtkTextIter *iter);
gboolean gtk_spell_checker_set_language (GtkSpellChecker *spell,
const gchar *lang,
GError **error);
const gchar *gtk_spell_checker_get_language (GtkSpellChecker *spell);
GList *gtk_spell_checker_get_language_list (void);
gchar *gtk_spell_checker_decode_language_code (const gchar *lang);
gboolean gtk_spell_checker_check_word (GtkSpellChecker *spell,
const gchar *word);
void gtk_spell_checker_recheck_all (GtkSpellChecker *spell);
void gtk_spell_checker_add_to_dictionary (GtkSpellChecker *spell,
const gchar *word);
void gtk_spell_checker_ignore_word (GtkSpellChecker *spell,
const gchar *word);
G_END_DECLS
#endif /* GTK_SPELL_H */
|