1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
6 * Moonlight List (moonlight-list@lists.ximian.com)
8 * Copyright 2007-2008 Novell, Inc. (http://www.novell.com)
10 * See the LICENSE file included with the distribution for details.
14 #include "tilesource.h"
17 MultiScaleTileSource::MultiScaleTileSource ()
19 SetObjectType (Type::MULTISCALETILESOURCE
);
26 MultiScaleTileSource::GetImageWidth ()
32 MultiScaleTileSource::SetImageWidth (double width
)
38 MultiScaleTileSource::GetImageHeight ()
44 MultiScaleTileSource::SetImageHeight (double height
)
50 MultiScaleTileSource::GetTileWidth ()
56 MultiScaleTileSource::SetTileWidth (int width
)
62 MultiScaleTileSource::GetTileHeight ()
68 MultiScaleTileSource::SetTileHeight (int height
)
74 MultiScaleTileSource::GetTileOverlap ()
80 MultiScaleTileSource::SetTileOverlap (int overlap
)
82 tileOverlap
= overlap
;
86 MultiScaleTileSource::set_image_uri_func (get_image_uri_func func
)
91 g_warning ("get_tile_func already set\n");
95 MultiScaleTileSource::InvalidateTileLayer (int level
, int tilePositionX
, int tilePositionY
, int tileLayer
)
98 invalidate_cb (level
, tilePositionX
, tilePositionY
, tileLayer
, invalidate_data
);
102 MultiScaleTileSource::set_invalidate_tile_layer_func (invalidate_tile_layer_func func
, void *user_data
)
104 invalidate_cb
= func
;
105 invalidate_data
= user_data
;