GCC Code Coverage Report


Directory: ./
File: panels/common/cc-time-editor.h
Date: 2024-05-04 07:58:27
Exec Total Coverage
Lines: 0 1 0.0%
Functions: 0 1 0.0%
Branches: 0 6 0.0%

Line Branch Exec Source
1 /* -*- mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
2 /* cc-time-editor.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 <adwaita.h>
28
29 G_BEGIN_DECLS
30
31 #define CC_TYPE_TIME_EDITOR (cc_time_editor_get_type ())
32
33 G_DECLARE_FINAL_TYPE (CcTimeEditor, cc_time_editor, CC, TIME_EDITOR, AdwBin)
34
35 CcTimeEditor *cc_time_editor_new (void);
36 void cc_time_editor_set_time (CcTimeEditor *self,
37 guint hour,
38 guint minute);
39 guint cc_time_editor_get_hour (CcTimeEditor *self);
40 guint cc_time_editor_get_minute (CcTimeEditor *self);
41 gboolean cc_time_editor_get_am_pm (CcTimeEditor *self);
42 void cc_time_editor_set_am_pm (CcTimeEditor *self,
43 gboolean is_am_pm);
44
45 G_END_DECLS
46