/*
 * Copyright (C) 2019 Purism SPC
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#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
GtkWidget *adw_preferences_group_new (void) G_GNUC_WARN_UNUSED_RESULT;

ADW_AVAILABLE_IN_ALL
void adw_preferences_group_add    (AdwPreferencesGroup *self,
                                   GtkWidget           *child);
ADW_AVAILABLE_IN_ALL
void adw_preferences_group_remove (AdwPreferencesGroup *self,
                                   GtkWidget           *child);

ADW_AVAILABLE_IN_ALL
const char *adw_preferences_group_get_title (AdwPreferencesGroup *self);
ADW_AVAILABLE_IN_ALL
void        adw_preferences_group_set_title (AdwPreferencesGroup *self,
                                             const char          *title);

ADW_AVAILABLE_IN_ALL
const char *adw_preferences_group_get_description (AdwPreferencesGroup *self);
ADW_AVAILABLE_IN_ALL
void        adw_preferences_group_set_description (AdwPreferencesGroup *self,
                                                   const char          *description);

ADW_AVAILABLE_IN_1_1
GtkWidget *adw_preferences_group_get_header_suffix (AdwPreferencesGroup *self);
ADW_AVAILABLE_IN_1_1
void       adw_preferences_group_set_header_suffix (AdwPreferencesGroup *self,
                                                    GtkWidget           *suffix);

ADW_AVAILABLE_IN_1_6
gboolean adw_preferences_group_get_separate_rows (AdwPreferencesGroup *self);
ADW_AVAILABLE_IN_1_6
void     adw_preferences_group_set_separate_rows (AdwPreferencesGroup *self,
                                                  gboolean             separate_rows);

G_END_DECLS
