Champlain.Scale¶
- Subclasses:
None
Methods¶
- Inherited:
Clutter.Actor (238), GObject.Object (37), Clutter.Animatable (5), Clutter.Container (17), Clutter.Scriptable (4)
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The max width of the scaleon screen |
||
r/w |
The map scale’s unit |
Signals¶
- Inherited:
Clutter.Actor (26), GObject.Object (1), Clutter.Container (3)
Fields¶
- Inherited:
Clutter.Actor (26), GObject.Object (1), Clutter.Container (3)
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Champlain.Scale(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Champlain.Scale
structure contains only private data and should be accessed using the provided APINew in version 0.10.
- classmethod new()¶
- Returns:
a new
Champlain.Scale
.- Return type:
Creates an instance of
Champlain.Scale
.New in version 0.10.
- connect_view(view)¶
- Parameters:
view (
Champlain.View
) – aChamplain.View
This method connects to the necessary signals of
Champlain.View
to make the scale adapt to the current latitude and longitude.New in version 0.10.
- disconnect_view()¶
This method disconnects from the signals previously connected by
Champlain.Scale.connect_view
().New in version 0.10.
- get_max_width()¶
- Returns:
The maximum scale width in pixels.
- Return type:
Gets the maximum scale width.
New in version 0.10.
- get_unit()¶
- Returns:
The unit used by the scale
- Return type:
Gets the unit used by the scale.
New in version 0.10.
- set_max_width(value)¶
- Parameters:
value (
int
) – the number of pixels
Sets the maximum width of the scale on the screen in pixels
New in version 0.10.
- set_unit(unit)¶
- Parameters:
unit (
Champlain.Unit
) – aChamplain.Unit
Sets the scale unit.
New in version 0.10.
Property Details¶
- Champlain.Scale.props.max_width¶
-
The size of the map scale on screen in pixels.
New in version 0.10.
- Champlain.Scale.props.unit¶
- Name:
unit
- Type:
- Default Value:
- Flags:
The scale’s units.
New in version 0.10.