Class

ShumateDataSource

Description [src]

abstract class Shumate.DataSource : GObject.Object {
  parent_instance: GObject
}

The base class used to retrieve tiles as GBytes.

Hierarchy

hierarchy this ShumateDataSource ancestor_0 GObject ancestor_0--this

Ancestors

Descendants

Instance methods

shumate_data_source_get_max_zoom_level

Gets the data source’s maximum zoom level.

shumate_data_source_get_min_zoom_level

Gets the data source’s minimum zoom level.

shumate_data_source_get_tile_data_async

Gets the data for the tile at the given coordinates.

shumate_data_source_get_tile_data_finish

Gets the final result of a request started with shumate_data_source_get_tile_data_async().

shumate_data_source_set_max_zoom_level

Sets the data source’s maximum zoom level.

shumate_data_source_set_min_zoom_level

Sets the data source’s minimum zoom level.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Shumate.DataSource:max-zoom-level
No description available.

Shumate.DataSource:min-zoom-level
No description available.

Signals

Shumate.DataSource::received-data

Emitted when data is received for any tile. This includes any intermediate steps, such as data from the file cache, as well as the final result.

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct ShumateDataSourceClass {
  GObjectClass parent_class;
  void (* get_tile_data_async) (
    ShumateDataSource* self,
    int x,
    int y,
    int zoom_level,
    GCancellable* cancellable,
    GAsyncReadyCallback callback,
    gpointer user_data
  );
  GBytes* (* get_tile_data_finish) (
    ShumateDataSource* self,
    GAsyncResult* result,
    GError** error
  );
  
}
No description available.
Class members
parent_class: GObjectClass
No description available.
get_tile_data_async: void (* get_tile_data_async) ( ShumateDataSource* self, int x, int y, int zoom_level, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data )
No description available.
get_tile_data_finish: GBytes* (* get_tile_data_finish) ( ShumateDataSource* self, GAsyncResult* result, GError** error )
No description available.

Virtual methods

Shumate.DataSourceClass.get_tile_data_async

Gets the data for the tile at the given coordinates.

Shumate.DataSourceClass.get_tile_data_finish

Gets the final result of a request started with shumate_data_source_get_tile_data_async().