GObject.Object
GtkSource.Language
Import line: | GtkSource = imports.gi.GtkSource; |
GIR File: | GtkSource-2.0.gir |
C documentation: | GtkSourceLanguage |
Class : | Language |
Extends: | GObject.Object |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
hidden : Boolean
read only
|
GtkSource.Language | |
id : String
read only
|
GtkSource.Language | |
name : String
read only
|
GtkSource.Language | |
parent_instance : GObject.Object
read only
|
GtkSource.Language | |
priv : GtkSource.LanguagePrivate
read only
|
GtkSource.Language | |
section : String
read only
|
GtkSource.Language |
Method / Constructor | Defined By | |
---|---|---|
new GtkSource.Language
(Object properties)
Create a new GtkSource.Language
Create a new GtkSource.Language
|
||
get_globs
()
:
Array
Returns the globs associated to this language.
Returns the globs associated to this language. This is just an utility wrapper around gtk_source_language_get_metadata() to retrieve the "globs" metadata property and split it into an array. the globs or NULL if no globs are found. The returned array must be freed with g_strfreev().
|
GtkSource.Language | |
get_hidden
()
:
Boolean
Returns whether the language should be hidden from the user.
Returns whether the language should be hidden from the user.
|
GtkSource.Language | |
get_id
()
:
String
Returns the ID of the language.
Returns the ID of the language. The ID is not locale-dependent. The returned string is owned by language and should not be freed or modified.
|
GtkSource.Language | |
GtkSource.Language | ||
get_mime_types
()
:
Array
Returns the mime types associated to this language.
Returns the mime types associated to this language. This is just an utility wrapper around gtk_source_language_get_metadata() to retrieve the "mimetypes" metadata property and split it into an array. terminated array containing the mime types or NULL if no mime types are found. The returned array must be freed with g_strfreev().
|
GtkSource.Language | |
get_name
()
:
String
Returns the localized name of the language.
Returns the localized name of the language. The returned string is owned by language and should not be freed or modified.
|
GtkSource.Language | |
get_section
()
:
String
Returns the localized section of the language.
Returns the localized section of the language. Each language belong to a section (ex. HTML belogs to the Markup section). The returned string is owned by language and should not be freed or modified.
|
GtkSource.Language | |
get_style_ids
()
:
Array
Returns the ids of the styles defined by this language.
Returns the ids of the styles defined by this language. ids of the styles defined by this language or NULL if no style is defined. The returned array must be freed with g_strfreev().
|
GtkSource.Language | |
Returns the name of the style with ID style_id defined by this language.
Returns the name of the style with ID style_id defined by this language. NULL if the style has no name or there is no style with ID style_id defined by this language. The returned string is owned by the language and must not be modified.
|
GtkSource.Language |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
GtkSource.Buffer
Property |
language : GtkSource.Language
|
GtkSource.Buffer
Method |
Create a new GtkSource.Buffer
|
GtkSource.Buffer
Method |
get_language
()
:
GtkSource.Language
Returns the GtkSourceLanguage associated with the buffer, see gtk_source_buffer_set_language().
|
GtkSource.Buffer
Method |
set_language
(Language language)
:
none
Associate a GtkSourceLanguage with the buffer.
|
GtkSource.LanguageManager
Method |
get_language
(String id)
:
GtkSource.Language
Gets the GtkSourceLanguage identified by the given id in the language manager.
|
GtkSource.LanguageManager
Method |
Picks a GtkSourceLanguage for given file name and content type, according to the information in lang files.
|