Line |
Branch |
Exec |
Source |
1 |
|
|
/* -*- mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*- */ |
2 |
|
|
/* cc-time-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_TIME_ENTRY (cc_time_entry_get_type ()) |
32 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcTimeEntry, cc_time_entry, CC, TIME_ENTRY, GtkWidget) |
33 |
|
|
|
34 |
|
|
GtkWidget *cc_time_entry_new (void); |
35 |
|
|
void cc_time_entry_set_time (CcTimeEntry *self, |
36 |
|
|
guint hour, |
37 |
|
|
guint minute); |
38 |
|
|
guint cc_time_entry_get_minute (CcTimeEntry *self); |
39 |
|
|
guint cc_time_entry_get_hour (CcTimeEntry *self); |
40 |
|
|
gboolean cc_time_entry_get_is_am (CcTimeEntry *self); |
41 |
|
|
void cc_time_entry_set_is_am (CcTimeEntry *self, |
42 |
|
|
gboolean is_am); |
43 |
|
|
gboolean cc_time_entry_get_am_pm (CcTimeEntry *self); |
44 |
|
|
void cc_time_entry_set_am_pm (CcTimeEntry *self, |
45 |
|
|
gboolean is_am_pm); |
46 |
|
|
|
47 |
|
|
G_END_DECLS |
48 |
|
|
|