Top |
ChamplainTile * | champlain_tile_new () |
ChamplainTile * | champlain_tile_new_full () |
guint | champlain_tile_get_x () |
guint | champlain_tile_get_y () |
guint | champlain_tile_get_zoom_level () |
guint | champlain_tile_get_size () |
ChamplainState | champlain_tile_get_state () |
ClutterActor * | champlain_tile_get_content () |
const GTimeVal * | champlain_tile_get_modified_time () |
const gchar * | champlain_tile_get_etag () |
gboolean | champlain_tile_get_fade_in () |
void | champlain_tile_set_x () |
void | champlain_tile_set_y () |
void | champlain_tile_set_zoom_level () |
void | champlain_tile_set_size () |
void | champlain_tile_set_state () |
void | champlain_tile_set_content () |
void | champlain_tile_set_etag () |
void | champlain_tile_set_modified_time () |
void | champlain_tile_set_fade_in () |
void | champlain_tile_display_content () |
ChamplainTile implements ClutterContainer, ClutterScriptable, ClutterAnimatable, AtkImplementorIface and ChamplainExportable.
ChamplainTile *
champlain_tile_new (void
);
Creates an instance of ChamplainTile.
Since: 0.4
ChamplainTile * champlain_tile_new_full (guint x
,guint y
,guint size
,guint zoom_level
);
Creates an instance of ChamplainTile.
Since: 0.4
guint
champlain_tile_get_x (ChamplainTile *self
);
Gets the tile's x position.
Since: 0.4
guint
champlain_tile_get_y (ChamplainTile *self
);
Gets the tile's y position.
Since: 0.4
guint
champlain_tile_get_zoom_level (ChamplainTile *self
);
Gets the tile's zoom level.
Since: 0.4
guint
champlain_tile_get_size (ChamplainTile *self
);
Gets the tile's size.
Since: 0.4
ChamplainState
champlain_tile_get_state (ChamplainTile *self
);
Gets the current state of tile loading.
Since: 0.4
ClutterActor *
champlain_tile_get_content (ChamplainTile *self
);
Gets the tile's content actor.
the tile's content, this actor will change each time the tile's content changes. You should not unref this content, it is owned by the tile.
[transfer none]
Since: 0.4
const GTimeVal *
champlain_tile_get_modified_time (ChamplainTile *self
);
Gets the tile's last modified time.
Since: 0.4
const gchar *
champlain_tile_get_etag (ChamplainTile *self
);
Gets the tile's ETag.
Since: 0.4
gboolean
champlain_tile_get_fade_in (ChamplainTile *self
);
Checks whether the tile should fade in.
Since: 0.6
void champlain_tile_set_x (ChamplainTile *self
,guint x
);
Sets the tile's x position
Since: 0.4
void champlain_tile_set_y (ChamplainTile *self
,guint y
);
Sets the tile's y position
Since: 0.4
void champlain_tile_set_zoom_level (ChamplainTile *self
,guint zoom_level
);
Sets the tile's zoom level
Since: 0.4
void champlain_tile_set_size (ChamplainTile *self
,guint size
);
Sets the tile's size
Since: 0.4
void champlain_tile_set_state (ChamplainTile *self
,ChamplainState state
);
Sets the tile's ChamplainState
Since: 0.4
void champlain_tile_set_content (ChamplainTile *self
,ClutterActor *actor
);
Sets the tile's content. To also disppay the tile, you have to call
champlain_tile_display_content()
in addition.
Since: 0.4
void champlain_tile_set_etag (ChamplainTile *self
,const gchar *etag
);
Sets the tile's ETag
Since: 0.4
void champlain_tile_set_modified_time (ChamplainTile *self
,const GTimeVal *time
);
Sets the tile's modified time
Since: 0.4
void champlain_tile_set_fade_in (ChamplainTile *self
,gboolean fade_in
);
Sets the flag determining whether the tile should fade in when loading
Since: 0.6
void
champlain_tile_display_content (ChamplainTile *self
);
Displays the tile's content.
Since: 0.8
struct ChamplainTile;
The ChamplainTile structure contains only private data and should be accessed using the provided API
Since: 0.4
“content”
property“content” ClutterActor *
The ClutterActor with the specific image content. When changing this property, the new actor will be faded in.
Owner: ChamplainTile
Flags: Read / Write
Since: 0.4
“etag”
property“etag” gchar *
The tile's ETag. This information is sent by some web servers as a mean to identify if a tile has changed. This information is saved in the cache and sent in GET queries.
Owner: ChamplainTile
Flags: Read / Write
Default value: NULL
Since: 0.4
“fade-in”
property“fade-in” gboolean
Specifies whether the tile should fade in when loading
Owner: ChamplainTile
Flags: Read / Write
Default value: FALSE
Since: 0.6
“size”
property“size” guint
The size of the tile in pixels
Owner: ChamplainTile
Flags: Read / Write
Allowed values: <= G_MAXINT
Default value: 256
Since: 0.4
“state”
property“state” ChamplainState
The state of the tile
Owner: ChamplainTile
Flags: Read / Write
Default value: CHAMPLAIN_STATE_NONE
Since: 0.4
“x”
property“x” guint
The x position of the tile
Owner: ChamplainTile
Flags: Read / Write
Allowed values: <= G_MAXINT
Default value: 0
Since: 0.4
“y”
property“y” guint
The y position of the tile
Owner: ChamplainTile
Flags: Read / Write
Allowed values: <= G_MAXINT
Default value: 0
Since: 0.4
“zoom-level”
property“zoom-level” guint
The zoom level of the tile
Owner: ChamplainTile
Flags: Read / Write
Allowed values: <= G_MAXINT
Default value: 0
Since: 0.4
“render-complete”
signalvoid user_function (ChamplainTile *self, gpointer data, guint size, gboolean error, gpointer user_data)
The “render-complete” signal is emitted when rendering of the tile is completed by the renderer.
self |
||
data |
the result of the rendering |
|
size |
size of data |
|
error |
TRUE if there was an error during rendering |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 0.10