Class
ShumateMapSourceRegistry
Description [src]
final class Shumate.MapSourceRegistry : GObject.Object {
/* No available fields */
}
This object allows you to hold ShumateMapSource
instances, you can access a
default set of sources with shumate_map_source_registry_populate_defaults()
.
It conveniently implements GListModel
to easily integrate with it.
Constructors
shumate_map_source_registry_new
Create a new ShumateMapSourceRegistry
.
shumate_map_source_registry_new_with_defaults
Create a new ShumateMapSourceRegistry
with defaults map sources.
This is identical to calling shumate_map_source_registry_populate_defaults()
after shumate_map_source_registry_new()
.
Instance methods
shumate_map_source_registry_add
Adds the ShumateMapSource
to the ShumateMapSourceRegistry
.
shumate_map_source_registry_get_by_id
Find the ShumateMapSource
with the corresponding id.
shumate_map_source_registry_populate_defaults
Populates the ShumateMapSourceRegistry
with a default set of sources.
shumate_map_source_registry_remove
Removes the corresponding ShumateMapSource
from the registry.
If the source doesn’t exist in the registry, this function does nothing.