Debian Codegraph @

lib/gtk/font-manager-preference-row.h

raw
1 /* font-manager-preference-row.h
2 *
3 * Copyright (C) 2020-2023 Jerry Casiano
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program 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
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program.
17 *
18 * If not, see <http://www.gnu.org/licenses/gpl-3.0.txt>.
19 */
20
21 #pragma once
22
23 #include <gtk/gtk.h>
24
25 #include "font-manager-gtk-utils.h"
26
27 #define FONT_MANAGER_TYPE_PREFERENCE_ROW (font_manager_preference_row_get_type ())
28 G_DECLARE_FINAL_TYPE(FontManagerPreferenceRow, font_manager_preference_row,
29 FONT_MANAGER, PREFERENCE_ROW, GtkWidget)
30
31 GtkWidget * font_manager_preference_row_new (const gchar *title,
32 const gchar *subtitle,
33 const gchar *icon_name,
34 GtkWidget *action_widget);
35
36 void font_manager_preference_row_set_action_widget (FontManagerPreferenceRow *self,
37 GtkWidget *control);
38
39 void font_manager_preference_row_append_child (FontManagerPreferenceRow *parent,
40 FontManagerPreferenceRow *child);
41
42 void font_manager_preference_row_set_reveal_child (FontManagerPreferenceRow *self,
43 gboolean visible);
44
45 GtkWidget * font_manager_preference_row_get_action_widget (FontManagerPreferenceRow *self);
46