| libchamplain Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
enum ChamplainState; ChamplainTile; ChamplainTile* champlain_tile_new (void); ChamplainTile* champlain_tile_new_full (gint x,gint y,guint size,gint zoom_level); gint champlain_tile_get_x (ChamplainTile *self); gint champlain_tile_get_y (ChamplainTile *self); gint champlain_tile_get_zoom_level (ChamplainTile *self); guint champlain_tile_get_size (ChamplainTile *self); ChamplainState champlain_tile_get_state (ChamplainTile *self); gboolean champlain_tile_get_fade_in (ChamplainTile *self); void champlain_tile_set_x (ChamplainTile *self,gint x); void champlain_tile_set_y (ChamplainTile *self,gint y); void champlain_tile_set_zoom_level (ChamplainTile *self,gint zoom_level); void champlain_tile_set_size (ChamplainTile *self,guint size); void champlain_tile_set_state (ChamplainTile *self,ChamplainState state); void champlain_tile_set_fade_in (ChamplainTile *self,gboolean fade_in); ClutterActor * champlain_tile_get_content (ChamplainTile *self); const gchar * champlain_tile_get_etag (ChamplainTile *self); const GTimeVal * champlain_tile_get_modified_time (ChamplainTile *self); void champlain_tile_set_content (ChamplainTile *self,ClutterActor *actor); void champlain_tile_set_etag (ChamplainTile *self,const gchar *etag); void champlain_tile_set_modified_time (ChamplainTile *self,const GTimeVal *time);
GObject +----GInitiallyUnowned +----ClutterActor +----ClutterGroup +----ChamplainTile
"content" ClutterActor* : Read / Write "etag" gchar* : Read / Write "fade-in" gboolean : Read / Write "size" guint : Read / Write "state" ChamplainState : Read / Write "x" gint : Read / Write "y" gint : Read / Write "zoom-level" gint : Read / Write
typedef enum
{
CHAMPLAIN_STATE_NONE,
CHAMPLAIN_STATE_LOADING,
CHAMPLAIN_STATE_DONE
} ChamplainState;
Tile loading state.
ChamplainTile* champlain_tile_new (void);
Creates an instance of ChamplainTile.
Returns : |
a new ChamplainTile |
Since 0.4
ChamplainTile* champlain_tile_new_full (gint x,gint y,guint size,gint zoom_level);
Creates an instance of ChamplainTile.
|
the x position |
|
the y position |
|
the size in pixels |
|
the zoom level |
Returns : |
a ChamplainTile |
Since 0.4
gint champlain_tile_get_x (ChamplainTile *self);
Gets the tile's x position.
|
the ChamplainTile |
Returns : |
the tile's x position |
Since 0.4
gint champlain_tile_get_y (ChamplainTile *self);
Gets the tile's y position.
|
the ChamplainTile |
Returns : |
the tile's y position |
Since 0.4
gint champlain_tile_get_zoom_level (ChamplainTile *self);
Gets the tile's zoom level.
|
the ChamplainTile |
Returns : |
the tile's zoom level |
Since 0.4
guint champlain_tile_get_size (ChamplainTile *self);
Gets the tile's size.
|
the ChamplainTile |
Returns : |
the tile's size in pixels |
Since 0.4
ChamplainState champlain_tile_get_state (ChamplainTile *self);
Gets the current state of tile loading.
|
the ChamplainTile |
Returns : |
the tile's ChamplainState |
Since 0.4
gboolean champlain_tile_get_fade_in (ChamplainTile *self);
Checks whether the tile should fade in.
|
the ChamplainTile |
Returns : |
the return value determines whether the tile should fade in when loading. |
Since 0.6
void champlain_tile_set_x (ChamplainTile *self,gint x);
Sets the tile's x position
|
the ChamplainTile |
|
the position |
Since 0.4
void champlain_tile_set_y (ChamplainTile *self,gint y);
Sets the tile's y position
|
the ChamplainTile |
|
the position |
Since 0.4
void champlain_tile_set_zoom_level (ChamplainTile *self,gint zoom_level);
Sets the tile's zoom level
|
the ChamplainTile |
|
the zoom level |
Since 0.4
void champlain_tile_set_size (ChamplainTile *self,guint size);
Sets the tile's size
|
the ChamplainTile |
|
the size in pixels |
Since 0.4
void champlain_tile_set_state (ChamplainTile *self,ChamplainState state);
Sets the tile's ChamplainState
|
the ChamplainTile |
|
a ChamplainState |
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
|
the ChamplainTile |
|
determines whether the tile should fade in when loading |
Since 0.6
ClutterActor * champlain_tile_get_content (ChamplainTile *self);
Gets the tile's content actor.
|
the ChamplainTile |
Returns : |
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. |
Since 0.4
const gchar * champlain_tile_get_etag (ChamplainTile *self);
Gets the tile's ETag.
|
the ChamplainTile |
Returns : |
the tile's ETag |
Since 0.4
const GTimeVal * champlain_tile_get_modified_time (ChamplainTile *self);
Gets the tile's last modified time.
|
the ChamplainTile |
Returns : |
the tile's last modified time |
Since 0.4
void champlain_tile_set_content (ChamplainTile *self,ClutterActor *actor);
Sets the tile's content
|
the ChamplainTile |
|
the new content |
Since 0.4
void champlain_tile_set_etag (ChamplainTile *self,const gchar *etag);
Sets the tile's ETag
|
the ChamplainTile |
|
the tile's ETag as sent by the server |
Since 0.4
void champlain_tile_set_modified_time (ChamplainTile *self,const GTimeVal *time);
Sets the tile's modified time
|
the ChamplainTile |
|
a GTimeVal, the value will be copied |
Since 0.4
"content" property"content" ClutterActor* : Read / Write
The ClutterActor with the specific image content. When changing this property, the new actor will be faded in.
Since 0.4
"etag" property"etag" gchar* : Read / Write
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.
Default value: NULL
Since 0.4
"fade-in" property"fade-in" gboolean : Read / Write
Specifies whether the tile should fade in when loading
Default value: FALSE
Since 0.6
"size" property"size" guint : Read / Write
The size of the tile in pixels
Allowed values: <= G_MAXINT
Default value: 256
Since 0.4
"state" property"state" ChamplainState : Read / Write
The state of the tile
Default value: CHAMPLAIN_STATE_NONE
Since 0.4
"zoom-level" property"zoom-level" gint : Read / Write
The zoom level of the tile
Default value: 0
Since 0.4