Champlain.Tile¶
- Subclasses:
None
Methods¶
- Inherited:
Clutter.Actor (238), GObject.Object (37), Clutter.Animatable (5), Clutter.Container (17), Clutter.Scriptable (4), Champlain.Exportable (2)
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The entity tag of the tile |
||
r/w |
Tile should fade in |
||
r/w |
The state of the tile |
||
r/w |
The zoom level of the tile |
Signals¶
- Inherited:
Clutter.Actor (26), GObject.Object (1), Clutter.Container (3)
Name |
Short Description |
---|---|
The |
Fields¶
- Inherited:
Clutter.Actor (26), GObject.Object (1), Clutter.Container (3)
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Champlain.Tile(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Champlain.Tile
structure contains only private data and should be accessed using the provided APINew in version 0.4.
- classmethod new()¶
- Returns:
a new
Champlain.Tile
- Return type:
Creates an instance of
Champlain.Tile
.New in version 0.4.
- classmethod new_full(x, y, size, zoom_level)¶
- Parameters:
- Returns:
- Return type:
Creates an instance of
Champlain.Tile
.New in version 0.4.
- display_content()¶
Displays the tile’s content.
New in version 0.8.
- get_content()¶
- 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.
- Return type:
Gets the tile’s content actor.
New in version 0.4.
- get_fade_in()¶
- Returns:
the return value determines whether the tile should fade in when loading.
- Return type:
Checks whether the tile should fade in.
New in version 0.6.
- get_modified_time()¶
- Returns:
the tile’s last modified time
- Return type:
Gets the tile’s last modified time.
New in version 0.4.
- get_size()¶
- Returns:
the tile’s size in pixels
- Return type:
Gets the tile’s size.
New in version 0.4.
- get_state()¶
- Returns:
the tile’s
Champlain.State
- Return type:
Gets the current state of tile loading.
New in version 0.4.
- get_x()¶
- Returns:
the tile’s x position
- Return type:
Gets the tile’s x position.
New in version 0.4.
- get_y()¶
- Returns:
the tile’s y position
- Return type:
Gets the tile’s y position.
New in version 0.4.
- get_zoom_level()¶
- Returns:
the tile’s zoom level
- Return type:
Gets the tile’s zoom level.
New in version 0.4.
- set_content(actor)¶
- Parameters:
actor (
Clutter.Actor
) – the new content
Sets the tile’s content. To also disppay the tile, you have to call
Champlain.Tile.display_content
() in addition.New in version 0.4.
- set_etag(etag)¶
- Parameters:
etag (
str
) – the tile’s ETag as sent by the server
Sets the tile’s ETag
New in version 0.4.
- set_fade_in(fade_in)¶
- Parameters:
fade_in (
bool
) – determines whether the tile should fade in when loading
Sets the flag determining whether the tile should fade in when loading
New in version 0.6.
- set_modified_time(time)¶
- Parameters:
time (
GLib.TimeVal
) – aGLib.TimeVal
, the value will be copied
Sets the tile’s modified time
New in version 0.4.
- set_size(size)¶
- Parameters:
size (
int
) – the size in pixels
Sets the tile’s size
New in version 0.4.
- set_state(state)¶
- Parameters:
state (
Champlain.State
) – aChamplain.State
Sets the tile’s
Champlain.State
New in version 0.4.
Signal Details¶
- Champlain.Tile.signals.render_complete(tile, data, size, error)¶
- Signal Name:
render-complete
- Flags:
- Parameters:
The
Champlain.Tile
::render-complete
signal is emitted when rendering of the tile is completed by the renderer.New in version 0.10.
Property Details¶
- Champlain.Tile.props.etag¶
-
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.
New in version 0.4.
- Champlain.Tile.props.fade_in¶
-
Specifies whether the tile should fade in when loading
New in version 0.6.
- Champlain.Tile.props.state¶
- Name:
state
- Type:
- Default Value:
- Flags:
The state of the tile
New in version 0.4.