Shumate.Tile¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Tile should fade in |
||
r/w |
Paintable |
||
r/w/en |
scale-factor |
||
r/w |
The size of the tile |
||
r/w |
The state of the tile |
||
r/w |
The X position of the tile |
||
r/w |
The Y position of the tile |
||
r/w |
The zoom level of the tile |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Shumate.Tile(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An object that represents map tiles. Tiles are loaded by a [class`MapSource`].
- classmethod new()¶
- Returns:
a new
Shumate.Tile
- Return type:
Creates an instance of
Shumate.Tile
.
- classmethod new_full(x, y, size, zoom_level)¶
- Parameters:
- Returns:
- Return type:
Creates an instance of
Shumate.Tile
.
- 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.
- get_paintable()¶
- Returns:
A [iface`Gdk`.Paintable]
- Return type:
Get the [iface`Gdk`.Paintable] representing this tile.
- get_scale_factor()¶
- Returns:
the scale factor
- Return type:
Gets the scale factor of the tile.
New in version 1.1.
- get_state()¶
- Returns:
the tile’s
Shumate.State
- Return type:
Gets the current state of tile loading.
- 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
- set_paintable(paintable)¶
- Parameters:
paintable (
Gdk.Paintable
) – a [iface`Gdk`.Paintable]
Sets the [iface`Gdk`.Paintable] representing this tile.
- set_scale_factor(scale_factor)¶
- Parameters:
scale_factor (
float
) – the scale factor
Sets the scale factor of the tile.
New in version 1.1.
- set_state(state)¶
- Parameters:
state (
Shumate.State
) – aShumate.State
Sets the tile’s
Shumate.State
Property Details¶
- Shumate.Tile.props.fade_in¶
-
Specifies whether the tile should fade in when loading
- Shumate.Tile.props.paintable¶
- Name:
paintable
- Type:
- Default Value:
- Flags:
The [iface`Gdk`.Paintable] backing the tile
- Shumate.Tile.props.scale_factor¶
- Name:
scale-factor
- Type:
- Default Value:
1.0
- Flags:
The scale factor of the widget the tile will be displayed in.
New in version 1.1.
- Shumate.Tile.props.size¶
-
The size of the tile in pixels
- Shumate.Tile.props.state¶
- Name:
state
- Type:
- Default Value:
- Flags:
The state of the tile
- Shumate.Tile.props.x¶
-
The x position of the tile
- Shumate.Tile.props.y¶
-
The y position of the tile