LCOV - code coverage report
Current view: top level - malcontent-control - cc-timelike-entry.h (source / functions) Coverage Total Hit
Test: 2 coverage DB files Lines: 0.0 % 1 0
Test Date: 2025-09-15 13:55:46 Functions: 0.0 % 2 0
Branches: 0.0 % 6 0

             Branch data     Line data    Source code
       1                 :             : /* -*- mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
       2                 :             : /* cc-timelike-entry.h
       3                 :             :  *
       4                 :             :  * Copyright 2020 Purism SPC
       5                 :             :  *
       6                 :             :  * This program is free software: you can redistribute it and/or modify
       7                 :             :  * it under the terms of the GNU General Public License as published by
       8                 :             :  * the Free Software Foundation, either version 2 of the License, or
       9                 :             :  * (at your option) any later version.
      10                 :             :  *
      11                 :             :  * This program 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
      14                 :             :  * GNU General Public License for more details.
      15                 :             :  *
      16                 :             :  * You should have received a copy of the GNU General Public License
      17                 :             :  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
      18                 :             :  *
      19                 :             :  * Author(s):
      20                 :             :  *   Mohammed Sadiq <sadiq@sadiqpk.org>
      21                 :             :  *
      22                 :             :  * SPDX-License-Identifier: GPL-3.0-or-later
      23                 :             :  */
      24                 :             : 
      25                 :             : #pragma once
      26                 :             : 
      27                 :             : #include <gtk/gtk.h>
      28                 :             : 
      29                 :             : G_BEGIN_DECLS
      30                 :             : 
      31                 :             : #define CC_TYPE_TIMELIKE_ENTRY (cc_timelike_entry_get_type ())
      32   [ #  #  #  #  :           0 : G_DECLARE_FINAL_TYPE (CcTimelikeEntry, cc_timelike_entry, CC, TIMELIKE_ENTRY, GtkWidget)
                   #  # ]
      33                 :             : 
      34                 :             : GtkWidget *cc_timelike_entry_new        (void);
      35                 :             : void       cc_timelike_entry_set_time   (CcTimelikeEntry *self,
      36                 :             :                                          guint            hour,
      37                 :             :                                          guint            minute);
      38                 :             : guint      cc_timelike_entry_get_minute (CcTimelikeEntry *self);
      39                 :             : guint      cc_timelike_entry_get_hour   (CcTimelikeEntry *self);
      40                 :             : gboolean   cc_timelike_entry_get_is_am  (CcTimelikeEntry *self);
      41                 :             : void       cc_timelike_entry_set_is_am  (CcTimelikeEntry *self,
      42                 :             :                                          gboolean         is_am);
      43                 :             : gboolean   cc_timelike_entry_get_am_pm  (CcTimelikeEntry *self);
      44                 :             : void       cc_timelike_entry_set_am_pm  (CcTimelikeEntry *self,
      45                 :             :                                          gboolean         is_am_pm);
      46                 :             : 
      47                 :             : guint      cc_timelike_entry_get_minute_increment (CcTimelikeEntry *self);
      48                 :             : void       cc_timelike_entry_set_minute_increment (CcTimelikeEntry *self,
      49                 :             :                                                    guint            minutes);
      50                 :             : 
      51                 :             : void        cc_timelike_entry_get_hours_and_minutes_midpoints (CcTimelikeEntry *self,
      52                 :             :                                                                float           *out_hours_midpoint_x,
      53                 :             :                                                                float           *out_minutes_midpoint_x);
      54                 :             : 
      55                 :             : G_END_DECLS
        

Generated by: LCOV version 2.0-1