adw-preferences-group.h 1.58 KB
Newer Older
Alexander Mikhaylenko's avatar
Alexander Mikhaylenko committed
1
2
3
/*
 * Copyright (C) 2019 Purism SPC
 *
4
 * SPDX-License-Identifier: LGPL-2.1-or-later
Alexander Mikhaylenko's avatar
Alexander Mikhaylenko committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 */

#pragma once

#if !defined(_ADWAITA_INSIDE) && !defined(ADWAITA_COMPILATION)
#error "Only <adwaita.h> can be included directly."
#endif

#include "adw-version.h"

#include <gtk/gtk.h>

G_BEGIN_DECLS

#define ADW_TYPE_PREFERENCES_GROUP (adw_preferences_group_get_type())

ADW_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE (AdwPreferencesGroup, adw_preferences_group, ADW, PREFERENCES_GROUP, GtkWidget)

/**
 * AdwPreferencesGroupClass
 * @parent_class: The parent class
 */
struct _AdwPreferencesGroupClass
{
  GtkWidgetClass parent_class;

  /*< private >*/
  gpointer padding[4];
};

ADW_AVAILABLE_IN_ALL
37
GtkWidget *adw_preferences_group_new (void) G_GNUC_WARN_UNUSED_RESULT;
Alexander Mikhaylenko's avatar
Alexander Mikhaylenko committed
38
39

ADW_AVAILABLE_IN_ALL
40
const char *adw_preferences_group_get_title (AdwPreferencesGroup *self);
Alexander Mikhaylenko's avatar
Alexander Mikhaylenko committed
41
ADW_AVAILABLE_IN_ALL
42
43
void        adw_preferences_group_set_title (AdwPreferencesGroup *self,
                                             const char          *title);
Alexander Mikhaylenko's avatar
Alexander Mikhaylenko committed
44
45

ADW_AVAILABLE_IN_ALL
46
const char *adw_preferences_group_get_description (AdwPreferencesGroup *self);
Alexander Mikhaylenko's avatar
Alexander Mikhaylenko committed
47
ADW_AVAILABLE_IN_ALL
48
49
void        adw_preferences_group_set_description (AdwPreferencesGroup *self,
                                                   const char          *description);
Alexander Mikhaylenko's avatar
Alexander Mikhaylenko committed
50
51

ADW_AVAILABLE_IN_ALL
52
53
void adw_preferences_group_add    (AdwPreferencesGroup *self,
                                   GtkWidget           *child);
Alexander Mikhaylenko's avatar
Alexander Mikhaylenko committed
54
ADW_AVAILABLE_IN_ALL
55
56
void adw_preferences_group_remove (AdwPreferencesGroup *self,
                                   GtkWidget           *child);
Alexander Mikhaylenko's avatar
Alexander Mikhaylenko committed
57
58

G_END_DECLS