|
Packit |
a7d494 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*- */
|
|
Packit |
a7d494 |
/* gtksourceencoding.h
|
|
Packit |
a7d494 |
* This file is part of GtkSourceView
|
|
Packit |
a7d494 |
*
|
|
Packit |
a7d494 |
* Copyright (C) 2002-2005 - Paolo Maggi
|
|
Packit |
a7d494 |
* Copyright (C) 2014, 2015 - Sébastien Wilmet <swilmet@gnome.org>
|
|
Packit |
a7d494 |
*
|
|
Packit |
a7d494 |
* GtkSourceView is free software; you can redistribute it and/or
|
|
Packit |
a7d494 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
a7d494 |
* License as published by the Free Software Foundation; either
|
|
Packit |
a7d494 |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
a7d494 |
*
|
|
Packit |
a7d494 |
* GtkSourceView is distributed in the hope that it will be useful,
|
|
Packit |
a7d494 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
a7d494 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
a7d494 |
* Lesser General Public License for more details.
|
|
Packit |
a7d494 |
*
|
|
Packit |
a7d494 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
a7d494 |
* License along with this library; if not, write to the Free Software
|
|
Packit |
a7d494 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit |
a7d494 |
*/
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
#ifndef GTK_SOURCE_ENCODING_H
|
|
Packit |
a7d494 |
#define GTK_SOURCE_ENCODING_H
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
#if !defined (GTK_SOURCE_H_INSIDE) && !defined (GTK_SOURCE_COMPILATION)
|
|
Packit |
a7d494 |
# if defined (__GNUC__)
|
|
Packit |
a7d494 |
# warning "Only <gtksourceview/gtksource.h> can be included directly."
|
|
Packit |
a7d494 |
# elif defined (G_OS_WIN32)
|
|
Packit |
a7d494 |
# pragma message("Only <gtksourceview/gtksource.h> can be included directly.")
|
|
Packit |
a7d494 |
# endif
|
|
Packit |
a7d494 |
#endif
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
#include <glib.h>
|
|
Packit |
a7d494 |
#include <glib-object.h>
|
|
Packit |
a7d494 |
#include <gtksourceview/gtksourcetypes.h>
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
G_BEGIN_DECLS
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
#define GTK_SOURCE_TYPE_ENCODING (gtk_source_encoding_get_type ())
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_3_14
|
|
Packit |
a7d494 |
GType gtk_source_encoding_get_type (void) G_GNUC_CONST;
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_3_14
|
|
Packit |
a7d494 |
const GtkSourceEncoding *gtk_source_encoding_get_from_charset (const gchar *charset);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_3_14
|
|
Packit |
a7d494 |
gchar *gtk_source_encoding_to_string (const GtkSourceEncoding *enc);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_3_14
|
|
Packit |
a7d494 |
const gchar *gtk_source_encoding_get_name (const GtkSourceEncoding *enc);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_3_14
|
|
Packit |
a7d494 |
const gchar *gtk_source_encoding_get_charset (const GtkSourceEncoding *enc);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_3_14
|
|
Packit |
a7d494 |
const GtkSourceEncoding *gtk_source_encoding_get_utf8 (void);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_3_14
|
|
Packit |
a7d494 |
const GtkSourceEncoding *gtk_source_encoding_get_current (void);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_3_14
|
|
Packit |
a7d494 |
GSList *gtk_source_encoding_get_all (void);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_3_18
|
|
Packit |
a7d494 |
GSList *gtk_source_encoding_get_default_candidates (void);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
/* These should not be used, they are just to make python bindings happy */
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_3_14
|
|
Packit |
a7d494 |
GtkSourceEncoding *gtk_source_encoding_copy (const GtkSourceEncoding *enc);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
GTK_SOURCE_AVAILABLE_IN_3_14
|
|
Packit |
a7d494 |
void gtk_source_encoding_free (GtkSourceEncoding *enc);
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
G_END_DECLS
|
|
Packit |
a7d494 |
|
|
Packit |
a7d494 |
#endif /* GTK_SOURCE_ENCODING_H */
|