Shumate.DataSource – shumate-1.0 Reference Manual
Packages
shumate-1.0
Shumate
DataSource
max_zoom_level
min_zoom_level
DataSource
get_max_zoom_level
get_min_zoom_level
get_tile_data_async
set_max_zoom_level
set_min_zoom_level
start_request
received_data
DataSource
Object Hierarchy:
Description:
[
CCode
( type_id =
"shumate_data_source_get_type ()"
) ]
public
abstract
class
DataSource
:
Object
The base class used to retrieve tiles as [struct@GLib.
Bytes].
All known sub-classes:
TileDownloader
Namespace:
Shumate
Package:
shumate-1.0
Content:
Properties:
public
uint
max_zoom_level
{
get
;
set
construct
; }
The maximum zoom level
public
uint
min_zoom_level
{
get
;
set
construct
; }
The minimum zoom level
Creation methods:
protected
DataSource
()
Methods:
public
uint
get_max_zoom_level
()
Gets the data source's maximum zoom level.
public
uint
get_min_zoom_level
()
Gets the data source's minimum zoom level.
public
virtual
async
Bytes
?
get_tile_data_async
(
int
x,
int
y,
int
zoom_level,
Cancellable
? cancellable)
throws
Error
Gets the data for the tile at the given coordinates.
public
void
set_max_zoom_level
(
uint
zoom_level)
Sets the data source's maximum zoom level.
public
void
set_min_zoom_level
(
uint
zoom_level)
Sets the data source's minimum zoom level.
public
virtual
DataSourceRequest
start_request
(
int
x,
int
y,
int
zoom_level,
Cancellable
? cancellable =
null
)
Begins a request for a tile.
Signals:
public
signal
void
received_data
(
int
x,
int
y,
int
zoom_level,
Bytes
bytes)
Emitted when data is received for any tile.
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