Branch data Line data Source code
1 : : /* 2 : : * Copyright (C) 2008 Pierre-Luc Beaudoin <pierre-luc@pierlux.com> 3 : : * Copyright (C) 2011-2013 Jiri Techet <techet@gmail.com> 4 : : * Copyright (C) 2019 Marcus Lundblad <ml@update.uu.se> 5 : : * 6 : : * This library is free software; you can redistribute it and/or 7 : : * modify it under the terms of the GNU Lesser General Public 8 : : * License as published by the Free Software Foundation; either 9 : : * version 2.1 of the License, or (at your option) any later version. 10 : : * 11 : : * This library is distributed in the hope that it will be useful, 12 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 : : * Lesser General Public License for more details. 15 : : * 16 : : * You should have received a copy of the GNU Lesser General Public 17 : : * License along with this library; if not, write to the Free Software 18 : : * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 : : */ 20 : : 21 : : #if !defined (__SHUMATE_SHUMATE_H_INSIDE__) && !defined (SHUMATE_COMPILATION) 22 : : #error "Only <shumate/shumate.h> can be included directly." 23 : : #endif 24 : : 25 : : #ifndef SHUMATE_MARKER_H 26 : : #define SHUMATE_MARKER_H 27 : : 28 : : #include <shumate/shumate-location.h> 29 : : 30 : : #include <gdk/gdk.h> 31 : : #include <glib-object.h> 32 : : #include <gtk/gtk.h> 33 : : 34 : : G_BEGIN_DECLS 35 : : 36 : : #define SHUMATE_TYPE_MARKER shumate_marker_get_type () 37 [ + - + - : 510 : G_DECLARE_DERIVABLE_TYPE (ShumateMarker, shumate_marker, SHUMATE, MARKER, GtkWidget) + + ] 38 : : 39 : : struct _ShumateMarkerClass 40 : : { 41 : : GtkWidgetClass parent_class; 42 : : 43 : : /*< private >*/ 44 : : gpointer padding[16]; 45 : : }; 46 : : 47 : : ShumateMarker *shumate_marker_new (void); 48 : : 49 : : void shumate_marker_set_selectable (ShumateMarker *marker, 50 : : gboolean value); 51 : : gboolean shumate_marker_get_selectable (ShumateMarker *marker); 52 : : 53 : : void shumate_marker_set_draggable (ShumateMarker *marker, 54 : : gboolean value); 55 : : gboolean shumate_marker_get_draggable (ShumateMarker *marker); 56 : : 57 : : gboolean shumate_marker_is_selected (ShumateMarker *marker); 58 : : 59 : : void shumate_marker_animate_in (ShumateMarker *marker); 60 : : void shumate_marker_animate_in_with_delay (ShumateMarker *marker, 61 : : guint delay); 62 : : void shumate_marker_animate_out (ShumateMarker *marker); 63 : : void shumate_marker_animate_out_with_delay (ShumateMarker *marker, 64 : : guint delay); 65 : : 66 : : GtkWidget *shumate_marker_get_child (ShumateMarker *marker); 67 : : void shumate_marker_set_child (ShumateMarker *marker, 68 : : GtkWidget *child); 69 : : 70 : : G_END_DECLS 71 : : 72 : : #endif