Class: GtkSource::Language
- Inherits:
-
Object
- Object
- GtkSource::Language
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#get_metadata(name) ⇒ String
the metadata of language or nil if language does not contain the specified metadata property.
-
#get_style_fallback(style_id) ⇒ String
Returns the ID of the style to use if the specified style_id is not present in the current style scheme.
-
#get_style_name(style_id) ⇒ String
Returns the name of the style with ID style_id defined by this language.
-
#globs ⇒ Array<String>
Returns the globs associated to this language.
-
#hidden ⇒ Boolean
Returns whether the language should be hidden from the user.
- #hidden=(hidden) ⇒ Boolean
-
#hidden? ⇒ Boolean
Hidden.
-
#id ⇒ String
Id.
- #id=(id) ⇒ String
-
#mime_types ⇒ Array<String>
Returns the mime types associated to this language.
-
#name ⇒ String
Name.
- #name=(name) ⇒ String
-
#section ⇒ String
Section.
- #section=(section) ⇒ String
-
#style_ids ⇒ Array<String>
Returns the ids of the styles defined by this language.
Instance Method Details
#get_metadata(name) ⇒ String
the metadata of language or nil if language does not contain the specified metadata property. The returned string is owned by language and should not be freed or modified.
#get_style_fallback(style_id) ⇒ String
Returns the ID of the style to use if the specified style_id is not present in the current style scheme. specified style_id is not present in the current style scheme or nil if the style has no fallback defined. The returned string is owned by the language and must not be modified.
#get_style_name(style_id) ⇒ String
Returns the name of the style with ID style_id defined by this language. defined by this language or nil 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.
#globs ⇒ Array<String>
Returns the globs associated to this language.
This is just an utility wrapper around [methodLanguage.get_metadata] to retrieve the "globs" metadata property and split it into an array. a newly-allocated nil terminated array containing the globs or nil if no globs are found. The returned array must be freed with g_strfreev().
#hidden ⇒ Boolean
Returns whether the language should be hidden from the user.
#hidden=(hidden) ⇒ Boolean
#hidden? ⇒ Boolean
Returns hidden.
#id ⇒ String
Returns id.
#id=(id) ⇒ String
#mime_types ⇒ Array<String>
Returns the mime types associated to this language.
This is just an utility wrapper around [methodLanguage.get_metadata] to retrieve the "mimetypes" metadata property and split it into an array. a newly-allocated nil terminated array containing the mime types or nil if no mime types are found. The returned array must be freed with g_strfreev().
#name ⇒ String
Returns name.
#name=(name) ⇒ String
#section ⇒ String
Returns section.
#section=(section) ⇒ String
#style_ids ⇒ Array<String>
Returns the ids of the styles defined by this language. a newly-allocated nil terminated array containing ids of the styles defined by this language or nil if no style is defined. The returned array must be freed with g_strfreev().