Top | ![]() |
![]() |
![]() |
![]() |
void | (*GtkSourceEncodingForeachFunc) () |
const GtkSourceEncoding * | gtk_source_encoding_get_utf8 () |
const GtkSourceEncoding * | gtk_source_encoding_get_current () |
const GtkSourceEncoding * | gtk_source_encoding_get_from_charset () |
gchar * | gtk_source_encoding_to_string () |
const gchar * | gtk_source_encoding_get_name () |
const gchar * | gtk_source_encoding_get_charset () |
void | gtk_source_encoding_foreach () |
GSList * | gtk_source_encoding_get_default_candidates () |
GtkSourceEncoding * | gtk_source_encoding_copy () |
void | gtk_source_encoding_free () |
The GtkSourceEncoding boxed type represents a character encoding. It is used for example by GtkSourceFile. Note that the text in GTK+ widgets is always encoded in UTF-8.
void (*GtkSourceEncodingForeachFunc) (const GtkSourceEncoding *encoding
,gpointer userdata
);
Specifies the type of function passed to gtk_source_encoding_foreach()
. The
function is called with each encoding, together with the user data passed
to gtk_source_encoding_foreach()
.
Since 3.14
const GtkSourceEncoding *
gtk_source_encoding_get_utf8 (void
);
Since 3.14
const GtkSourceEncoding *
gtk_source_encoding_get_current (void
);
Gets the GtkSourceEncoding for the current locale. See also g_get_charset()
.
Since 3.14
const GtkSourceEncoding *
gtk_source_encoding_get_from_charset (const gchar *charset
);
Gets a GtkSourceEncoding from a character set such as "UTF-8" or "ISO-8859-1".
Since 3.14
gchar *
gtk_source_encoding_to_string (const GtkSourceEncoding *enc
);
Since 3.14
const gchar *
gtk_source_encoding_get_name (const GtkSourceEncoding *enc
);
Gets the name of the GtkSourceEncoding such as "Unicode" or "Western".
Since 3.14
const gchar *
gtk_source_encoding_get_charset (const GtkSourceEncoding *enc
);
Gets the character set of the GtkSourceEncoding, such as "UTF-8" or "ISO-8859-1".
Since 3.14
void gtk_source_encoding_foreach (GtkSourceEncodingForeachFunc func
,gpointer user_data
);
Calls a function for each encoding.
func |
the function to call for each encoding. |
[scope call] |
user_data |
user data to pass to the function |
Since 3.14
GSList *
gtk_source_encoding_get_default_candidates
(void
);
Gets the list of default candidate encodings to try when loading a file. See
gtk_source_file_loader_set_candidate_encodings()
.
This function returns a different list depending on the current locale (i.e. language, country and default encoding).
the list of
default candidate encodings. Free with g_slist_free()
.
[transfer container][element-type GtkSource.Encoding]
Since 3.14
GtkSourceEncoding *
gtk_source_encoding_copy (const GtkSourceEncoding *enc
);
Used by language bindings.
Since 3.14
void
gtk_source_encoding_free (GtkSourceEncoding *enc
);
Used by language bindings.
Since 3.14