Class

ShumateMarker

Description [src]

class Shumate.Marker : Gtk.Widget {
  parent_instance: GtkWidget
}

Markers represent points of interest on a map. Markers need to be placed on a layer (a ShumateMarkerLayer). Layers have to be added to a ShumateMap for the markers to show on the map.

A marker is nothing more than a regular GtkWidget. You can draw on it what ever you want. Set the marker’s position on the map using shumate_location_set_location().

This is a base class of all markers. A typical usage of a marker is for instance to add a GtkImage with a pin image and add the GtkGestureClick controller to listen to click events and show a GtkPopover with the description of the marker.

Ancestors

  • GtkWidget
  • GInitiallyUnowned
  • GObject

Implements

Constructors

shumate_marker_new

Creates an instance of ShumateMarker.

Instance methods

shumate_marker_animate_in
No description available.
shumate_marker_animate_in_with_delay
No description available.
shumate_marker_animate_out
No description available.
shumate_marker_animate_out_with_delay
No description available.
shumate_marker_get_child

Retrieves the current child of marker.

shumate_marker_get_draggable
No description available.
shumate_marker_get_selectable

Checks whether the marker is selectable.

shumate_marker_is_selected

Checks whether the marker is selected.

shumate_marker_set_child

Sets the child widget of marker.

shumate_marker_set_draggable
No description available.
shumate_marker_set_selectable

Sets the marker as selectable or not.

Methods inherited from ShumateLocation (3)
shumate_location_get_latitude

Gets the latitude coordinate in degrees.

shumate_location_get_longitude

Gets the longitude coordinate in degrees.

shumate_location_set_location

Sets the coordinates of the location.

Properties

Shumate.Marker:child

The child widget of the marker.

Shumate.Marker:selectable

The selectable state of the marker.

Properties inherited from ShumateLocation (2)
Shumate.Location:latitude

The latitude coordonate in degrees.

Shumate.Location:longitude

The longitude coordonate in degrees.

Class structure

struct ShumateMarkerClass {
  GtkWidgetClass parent_class;
  
}
Class members
parent_class
GtkWidgetClass
  No description available.