Line |
Branch |
Exec |
Source |
1 |
|
|
/* cc-vertical-row.h |
2 |
|
|
* |
3 |
|
|
* Copyright 2018 Purism SPC |
4 |
|
|
* 2021 Georges Basile Stavracas Neto <georges.stavracas@gmail.com> |
5 |
|
|
* 2023 Red Hat, Inc |
6 |
|
|
* |
7 |
|
|
* This program is free software: you can redistribute it and/or modify |
8 |
|
|
* it under the terms of the GNU General Public License as published by |
9 |
|
|
* the Free Software Foundation, either version 3 of the License, or |
10 |
|
|
* (at your option) any later version. |
11 |
|
|
* |
12 |
|
|
* This program is distributed in the hope that it will be useful, |
13 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
|
|
* GNU General Public License for more details. |
16 |
|
|
* |
17 |
|
|
* You should have received a copy of the GNU General Public License |
18 |
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 |
|
|
* |
20 |
|
|
* SPDX-License-Identifier: GPL-3.0-or-later |
21 |
|
|
*/ |
22 |
|
|
|
23 |
|
|
#pragma once |
24 |
|
|
|
25 |
|
|
#include <adwaita.h> |
26 |
|
|
|
27 |
|
|
G_BEGIN_DECLS |
28 |
|
|
|
29 |
|
|
#define CC_TYPE_VERTICAL_ROW (cc_vertical_row_get_type()) |
30 |
|
✗ |
G_DECLARE_DERIVABLE_TYPE (CcVerticalRow, cc_vertical_row, CC, VERTICAL_ROW, AdwPreferencesRow) |
31 |
|
|
|
32 |
|
|
struct _CcVerticalRowClass |
33 |
|
|
{ |
34 |
|
|
AdwPreferencesRowClass parent_class; |
35 |
|
|
|
36 |
|
|
/*< private >*/ |
37 |
|
|
gpointer padding[4]; |
38 |
|
|
}; |
39 |
|
|
|
40 |
|
|
const gchar *cc_vertical_row_get_subtitle (CcVerticalRow *self); |
41 |
|
|
void cc_vertical_row_set_subtitle (CcVerticalRow *self, |
42 |
|
|
const gchar *subtitle); |
43 |
|
|
|
44 |
|
|
const gchar *cc_vertical_row_get_icon_name (CcVerticalRow *self); |
45 |
|
|
void cc_vertical_row_set_icon_name (CcVerticalRow *self, |
46 |
|
|
const gchar *icon_name); |
47 |
|
|
|
48 |
|
|
GtkWidget *cc_vertical_row_get_activatable_widget (CcVerticalRow *self); |
49 |
|
|
void cc_vertical_row_set_activatable_widget (CcVerticalRow *self, |
50 |
|
|
GtkWidget *widget); |
51 |
|
|
|
52 |
|
|
gboolean cc_vertical_row_get_use_underline (CcVerticalRow *self); |
53 |
|
|
void cc_vertical_row_set_use_underline (CcVerticalRow *self, |
54 |
|
|
gboolean use_underline); |
55 |
|
|
|
56 |
|
|
gint cc_vertical_row_get_title_lines (CcVerticalRow *self); |
57 |
|
|
void cc_vertical_row_set_title_lines (CcVerticalRow *self, |
58 |
|
|
gint title_lines); |
59 |
|
|
|
60 |
|
|
gint cc_vertical_row_get_subtitle_lines (CcVerticalRow *self); |
61 |
|
|
void cc_vertical_row_set_subtitle_lines (CcVerticalRow *self, |
62 |
|
|
gint subtitle_lines); |
63 |
|
|
|
64 |
|
|
void cc_vertical_row_add_prefix (CcVerticalRow *self, |
65 |
|
|
GtkWidget *widget); |
66 |
|
|
|
67 |
|
|
void cc_vertical_row_add_content (CcVerticalRow *self, |
68 |
|
|
GtkWidget *widget); |
69 |
|
|
|
70 |
|
|
void cc_vertical_row_activate (CcVerticalRow *self); |
71 |
|
|
|
72 |
|
|
void cc_vertical_row_remove (CcVerticalRow *self, |
73 |
|
|
GtkWidget *child); |
74 |
|
|
|
75 |
|
|
G_END_DECLS |
76 |
|
|
|