Branch data Line data Source code
1 : : /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2 : : /*
3 : : * Copyright 2024 GNOME Foundation, Inc.
4 : : *
5 : : * This library is free software; you can redistribute it and/or
6 : : * modify it under the terms of the GNU Lesser General Public
7 : : * License as published by the Free Software Foundation; either
8 : : * version 2 of the License, or (at your option) any later version.
9 : : *
10 : : * This library is distributed in the hope that it will be useful,
11 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 : : * Lesser General Public License for more details.
14 : : *
15 : : * You should have received a copy of the GNU Lesser General
16 : : * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
17 : : *
18 : : * Authors:
19 : : * - Philip Withnall <pwithnall@gnome.org>
20 : : *
21 : : * SPDX-License-Identifier: GPL-3.0-or-later
22 : : */
23 : :
24 : : #pragma once
25 : :
26 : : #include <glib-object.h>
27 : : #include <gtk/gtk.h>
28 : :
29 : : #include "cc-timelike-editor.h"
30 : :
31 : : G_BEGIN_DECLS
32 : :
33 : : #define CC_TYPE_DURATION_EDITOR (cc_duration_editor_get_type())
34 [ # # # # : 0 : G_DECLARE_FINAL_TYPE (CcDurationEditor, cc_duration_editor, CC, DURATION_EDITOR, GtkWidget)
# # ]
35 : :
36 : : CcDurationEditor *cc_duration_editor_new (void);
37 : :
38 : : guint cc_duration_editor_get_duration (CcDurationEditor *self);
39 : : void cc_duration_editor_set_duration (CcDurationEditor *self,
40 : : guint duration);
41 : :
42 : : guint cc_duration_editor_get_minimum (CcDurationEditor *self);
43 : : void cc_duration_editor_set_minimum (CcDurationEditor *self,
44 : : guint minimum);
45 : :
46 : : guint cc_duration_editor_get_maximum (CcDurationEditor *self);
47 : : void cc_duration_editor_set_maximum (CcDurationEditor *self,
48 : : guint maximum);
49 : :
50 : : G_END_DECLS
|