LCOV - code coverage report
Current view: top level - shumate - shumate-scale.h (source / functions) Hit Total Coverage
Test: Code coverage Lines: 0 1 0.0 %
Date: 2024-05-11 21:41:31 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 6 0.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * Copyright (C) 2011-2013 Jiri Techet <techet@gmail.com>
       3                 :            :  * Copyright (C) 2019 Marcus Lundblad <ml@update.uu.se>
       4                 :            :  * Copyright (C) 2020 Collabora Ltd. (https://www.collabora.com)
       5                 :            :  * Copyright (C) 2020 Corentin Noël <corentin.noel@collabora.com>
       6                 :            :  *
       7                 :            :  * This library is free software; you can redistribute it and/or
       8                 :            :  * modify it under the terms of the GNU Lesser General Public
       9                 :            :  * License as published by the Free Software Foundation; either
      10                 :            :  * version 2.1 of the License, or (at your option) any later version.
      11                 :            :  *
      12                 :            :  * This library is distributed in the hope that it will be useful,
      13                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      14                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      15                 :            :  * Lesser General Public License for more details.
      16                 :            :  *
      17                 :            :  * You should have received a copy of the GNU Lesser General Public
      18                 :            :  * License along with this library; if not, write to the Free Software
      19                 :            :  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
      20                 :            :  */
      21                 :            : 
      22                 :            : #if !defined (__SHUMATE_SHUMATE_H_INSIDE__) && !defined (SHUMATE_COMPILATION)
      23                 :            : #error "Only <shumate/shumate.h> can be included directly."
      24                 :            : #endif
      25                 :            : 
      26                 :            : #ifndef SHUMATE_SCALE_H
      27                 :            : #define SHUMATE_SCALE_H
      28                 :            : 
      29                 :            : #include <shumate/shumate-viewport.h>
      30                 :            : 
      31                 :            : #include <glib-object.h>
      32                 :            : #include <gtk/gtk.h>
      33                 :            : 
      34                 :            : G_BEGIN_DECLS
      35                 :            : 
      36                 :            : #define SHUMATE_TYPE_SCALE shumate_scale_get_type ()
      37   [ #  #  #  #  :          0 : G_DECLARE_FINAL_TYPE (ShumateScale, shumate_scale, SHUMATE, SCALE, GtkWidget)
                   #  # ]
      38                 :            : 
      39                 :            : /**
      40                 :            :  * ShumateUnit:
      41                 :            :  * @SHUMATE_UNIT_BOTH: Both metric and imperial units
      42                 :            :  * @SHUMATE_UNIT_METRIC: Metric units (meters)
      43                 :            :  * @SHUMATE_UNIT_IMPERIAL: Imperial units (miles)
      44                 :            :  *
      45                 :            :  * Units used by the scale.
      46                 :            :  */
      47                 :            : typedef enum
      48                 :            : {
      49                 :            :   SHUMATE_UNIT_BOTH,
      50                 :            :   SHUMATE_UNIT_METRIC,
      51                 :            :   SHUMATE_UNIT_IMPERIAL,
      52                 :            : } ShumateUnit;
      53                 :            : 
      54                 :            : ShumateScale *shumate_scale_new (ShumateViewport *viewport);
      55                 :            : 
      56                 :            : guint shumate_scale_get_max_width (ShumateScale *scale);
      57                 :            : void shumate_scale_set_max_width (ShumateScale *scale,
      58                 :            :                                   guint         value);
      59                 :            : 
      60                 :            : ShumateUnit shumate_scale_get_unit (ShumateScale *scale);
      61                 :            : void shumate_scale_set_unit (ShumateScale *scale,
      62                 :            :                              ShumateUnit   unit);
      63                 :            : 
      64                 :            : ShumateViewport *shumate_scale_get_viewport (ShumateScale *scale);
      65                 :            : void shumate_scale_set_viewport (ShumateScale    *scale,
      66                 :            :                                  ShumateViewport *viewport);
      67                 :            : 
      68                 :            : G_END_DECLS
      69                 :            : 
      70                 :            : #endif

Generated by: LCOV version 1.14