Shumate.Marker¶
- Subclasses:
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Shumate.Location (4)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The child widget of the marker |
||
r/w |
The draggable state of the marker |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Shumate.Marker(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Markers represent points of interest on a map. Markers need to be placed on a layer (a [class`MarkerLayer`]). Layers have to be added to a [class`Map`] for the markers to show on the map.
A marker is nothing more than a regular [class`Gtk`.Widget]. You can draw on it what ever you want. Set the marker’s position on the map using [method`Location`.set_location].
This is a base class of all markers. A typical usage of a marker is for instance to add a [class`Gtk`.Image] with a pin image and add the [class`Gtk`.GestureClick] controller to listen to click events and show a [class`Gtk`.Popover] with the description of the marker.
- classmethod new()¶
- Returns:
a new
Shumate.Marker
.- Return type:
Creates an instance of
Shumate.Marker
.
- animate_in()¶
- animate_out()¶
- get_child()¶
- Returns:
a
Gtk.Widget
.- Return type:
Gtk.Widget
orNone
Retrieves the current child of self.
- get_selectable()¶
- Returns:
the selectable or not state of the marker.
- Return type:
Checks whether the marker is selectable.
- is_selected()¶
-
Checks whether the marker is selected.
- set_child(child)¶
- Parameters:
child (
Gtk.Widget
orNone
) – aGtk.Widget
Sets the child widget of self.
Property Details¶
- Shumate.Marker.props.child¶
- Name:
child
- Type:
- Default Value:
- Flags:
The child widget of the marker