GtkSourceLanguage

GtkSourceLanguage —

Synopsis


#include <gtksourceview/gtksourcelanguage.h>


struct      GtkSourceLanguage;
gchar*      gtk_source_language_get_name    (GtkSourceLanguage *language);
gchar*      gtk_source_language_get_section (GtkSourceLanguage *language);
GSList*     gtk_source_language_get_tags    (GtkSourceLanguage *language);
gunichar    gtk_source_language_get_escape_char
                                            (GtkSourceLanguage *language);
GSList*     gtk_source_language_get_mime_types
                                            (GtkSourceLanguage *language);
void        gtk_source_language_set_mime_types
                                            (GtkSourceLanguage *language,
                                             const GSList *mime_types);
GtkSourceStyleScheme* gtk_source_language_get_style_scheme
                                            (GtkSourceLanguage *language);
void        gtk_source_language_set_style_scheme
                                            (GtkSourceLanguage *language,
                                             GtkSourceStyleScheme *scheme);
GtkSourceTagStyle* gtk_source_language_get_tag_style
                                            (GtkSourceLanguage *language,
                                             const gchar *tag_id);
void        gtk_source_language_set_tag_style
                                            (GtkSourceLanguage *language,
                                             const gchar *tag_id,
                                             const GtkSourceTagStyle *style);
GtkSourceTagStyle* gtk_source_language_get_tag_default_style
                                            (GtkSourceLanguage *language,
                                             const gchar *tag_id);

Object Hierarchy


  GObject
   +----GtkSourceLanguage

Signal Prototypes


"tag-style-changed"
            void        user_function      (GtkSourceLanguage *sourcelanguage,
                                            gchar *arg1,
                                            gpointer user_data);

Description

Details

struct GtkSourceLanguage

struct GtkSourceLanguage;


gtk_source_language_get_name ()

gchar*      gtk_source_language_get_name    (GtkSourceLanguage *language);

Returns the localized name of the language.

language : a GtkSourceLanguage.
Returns : the name of language.

gtk_source_language_get_section ()

gchar*      gtk_source_language_get_section (GtkSourceLanguage *language);

Returns the localized section of the language. Each language belong to a section (ex. HTML belogs to the Markup section)

language : a GtkSourceLanguage.
Returns : the section of language.

gtk_source_language_get_tags ()

GSList*     gtk_source_language_get_tags    (GtkSourceLanguage *language);

language :
Returns :

gtk_source_language_get_escape_char ()

gunichar    gtk_source_language_get_escape_char
                                            (GtkSourceLanguage *language);

language :
Returns :

gtk_source_language_get_mime_types ()

GSList*     gtk_source_language_get_mime_types
                                            (GtkSourceLanguage *language);

language :
Returns :

gtk_source_language_set_mime_types ()

void        gtk_source_language_set_mime_types
                                            (GtkSourceLanguage *language,
                                             const GSList *mime_types);

language :
mime_types :

gtk_source_language_get_style_scheme ()

GtkSourceStyleScheme* gtk_source_language_get_style_scheme
                                            (GtkSourceLanguage *language);

language :
Returns :

gtk_source_language_set_style_scheme ()

void        gtk_source_language_set_style_scheme
                                            (GtkSourceLanguage *language,
                                             GtkSourceStyleScheme *scheme);

language :
scheme :

gtk_source_language_get_tag_style ()

GtkSourceTagStyle* gtk_source_language_get_tag_style
                                            (GtkSourceLanguage *language,
                                             const gchar *tag_id);

language :
tag_id :
Returns :

gtk_source_language_set_tag_style ()

void        gtk_source_language_set_tag_style
                                            (GtkSourceLanguage *language,
                                             const gchar *tag_id,
                                             const GtkSourceTagStyle *style);

Set the style of the tag whose ID is tag_id. If style is NULL restore the default style.

language : a GtkSourceLanguage.
tag_id : the ID of a GtkSourceTag
style : a GtkSourceTagStyle

gtk_source_language_get_tag_default_style ()

GtkSourceTagStyle* gtk_source_language_get_tag_default_style
                                            (GtkSourceLanguage *language,
                                             const gchar *tag_id);

language :
tag_id :
Returns :

Signals

The "tag-style-changed" signal

void        user_function                  (GtkSourceLanguage *sourcelanguage,
                                            gchar *arg1,
                                            gpointer user_data);

sourcelanguage :the object which received the signal.
arg1 :
user_data :user data set when the signal handler was connected.