LanguageManager
Object Hierarchy:
GtkSource.LanguageManager
GtkSource.LanguageManager
GtkSource.LanguageManager
GLib.Object
GLib.Object
GLib.Object->GtkSource.LanguageManager
Description:
[ CCode ( type_id = "gtk_source_language_manager_get_type ()" ) ]public class LanguageManager : Object
Provides access to [class@Language]s.
`GtkSourceLanguageManager` is an object which processes language description files and creates and stores [class@Language] objects, and
provides API to access them.
Use [[email protected] _default] to retrieve the default instance of `GtkSourceLanguageManager`, and [
[email protected] _language] to get a [class@Language] for given file name and content type.
Content:
Properties:
Static methods:
Creation methods:
Methods:
public void append_search_path (string path)
Appends path
to the list of directories where the
manager
looks for language files.
public unowned Language ? get_language (string id)
Gets the [class@Language] identified by the given id
in
the language manager.
public unowned string []? get_language_ids ()
Returns the ids of the available languages.
public unowned string [] get_search_path ()
Gets the list directories where this
looks for language files.
public unowned Language ? guess_language (string ? filename, string ? content_type)
Picks a [class@Language] for given file name and content type,
according to the information in lang files.
public void prepend_search_path (string path)
Prepends path
to the list of directories where the
manager
looks for language files.
public void set_search_path (string []? dirs)
Sets the list of directories where the this
looks for language files.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref