Blame clients/tui/nmt-editor-section.h

Packit Service a1bd4f
/* SPDX-License-Identifier: GPL-2.0+ */
Packit 5756e2
/*
Packit 5756e2
 * Copyright (C) 2013 Red Hat, Inc.
Packit 5756e2
 */
Packit 5756e2
Packit 5756e2
#ifndef NMT_EDITOR_SECTION_H
Packit 5756e2
#define NMT_EDITOR_SECTION_H
Packit 5756e2
Packit 5756e2
#include "nmt-newt-section.h"
Packit 5756e2
#include "nmt-editor-grid.h"
Packit 5756e2
Packit Service a1bd4f
#define NMT_TYPE_EDITOR_SECTION (nmt_editor_section_get_type())
Packit Service a1bd4f
#define NMT_EDITOR_SECTION(obj) \
Packit Service a1bd4f
    (G_TYPE_CHECK_INSTANCE_CAST((obj), NMT_TYPE_EDITOR_SECTION, NmtEditorSection))
Packit Service a1bd4f
#define NMT_EDITOR_SECTION_CLASS(klass) \
Packit Service a1bd4f
    (G_TYPE_CHECK_CLASS_CAST((klass), NMT_TYPE_EDITOR_SECTION, NmtEditorSectionClass))
Packit Service a1bd4f
#define NMT_IS_EDITOR_SECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NMT_TYPE_EDITOR_SECTION))
Packit Service a1bd4f
#define NMT_IS_EDITOR_SECTION_CLASS(klass) \
Packit Service a1bd4f
    (G_TYPE_CHECK_CLASS_TYPE((klass), NMT_TYPE_EDITOR_SECTION))
Packit Service a1bd4f
#define NMT_EDITOR_SECTION_GET_CLASS(obj) \
Packit Service a1bd4f
    (G_TYPE_INSTANCE_GET_CLASS((obj), NMT_TYPE_EDITOR_SECTION, NmtEditorSectionClass))
Packit 5756e2
Packit 5756e2
typedef struct {
Packit Service a1bd4f
    NmtNewtSection parent;
Packit 5756e2
Packit 5756e2
} NmtEditorSection;
Packit 5756e2
Packit 5756e2
typedef struct {
Packit Service a1bd4f
    NmtNewtSectionClass parent;
Packit 5756e2
Packit 5756e2
} NmtEditorSectionClass;
Packit 5756e2
Packit Service a1bd4f
GType nmt_editor_section_get_type(void);
Packit 5756e2
Packit Service a1bd4f
NmtEditorSection *
Packit Service a1bd4f
nmt_editor_section_new(const char *title, NmtNewtWidget *header_widget, gboolean show_by_default);
Packit 5756e2
Packit Service a1bd4f
const char *   nmt_editor_section_get_title(NmtEditorSection *section);
Packit Service a1bd4f
NmtNewtWidget *nmt_editor_section_get_header_widget(NmtEditorSection *section);
Packit Service a1bd4f
NmtEditorGrid *nmt_editor_section_get_body(NmtEditorSection *section);
Packit 5756e2
Packit 5756e2
#endif /* NMT_EDITOR_SECTION_H */