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

Packit Service 87a54e
/* SPDX-License-Identifier: GPL-2.0-or-later */
Packit 5756e2
/*
Packit 5756e2
 * Copyright (C) 2013 Red Hat, Inc.
Packit 5756e2
 */
Packit 5756e2
Packit 5756e2
#ifndef NMT_EDITOR_GRID_H
Packit 5756e2
#define NMT_EDITOR_GRID_H
Packit 5756e2
Packit 5756e2
#include "nmt-newt.h"
Packit 5756e2
Packit Service a1bd4f
#define NMT_TYPE_EDITOR_GRID (nmt_editor_grid_get_type())
Packit Service a1bd4f
#define NMT_EDITOR_GRID(obj) \
Packit Service a1bd4f
    (G_TYPE_CHECK_INSTANCE_CAST((obj), NMT_TYPE_EDITOR_GRID, NmtEditorGrid))
Packit Service a1bd4f
#define NMT_EDITOR_GRID_CLASS(klass) \
Packit Service a1bd4f
    (G_TYPE_CHECK_CLASS_CAST((klass), NMT_TYPE_EDITOR_GRID, NmtEditorGridClass))
Packit Service a1bd4f
#define NMT_IS_EDITOR_GRID(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), NMT_TYPE_EDITOR_GRID))
Packit Service a1bd4f
#define NMT_IS_EDITOR_GRID_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NMT_TYPE_EDITOR_GRID))
Packit Service a1bd4f
#define NMT_EDITOR_GRID_GET_CLASS(obj) \
Packit Service a1bd4f
    (G_TYPE_INSTANCE_GET_CLASS((obj), NMT_TYPE_EDITOR_GRID, NmtEditorGridClass))
Packit 5756e2
Packit 5756e2
typedef struct {
Packit Service a1bd4f
    NmtNewtContainer parent;
Packit 5756e2
Packit 5756e2
} NmtEditorGrid;
Packit 5756e2
Packit 5756e2
typedef struct {
Packit Service a1bd4f
    NmtNewtContainerClass parent;
Packit 5756e2
Packit 5756e2
} NmtEditorGridClass;
Packit 5756e2
Packit Service a1bd4f
GType nmt_editor_grid_get_type(void);
Packit 5756e2
Packit 5756e2
typedef enum {
Packit Service a1bd4f
    NMT_EDITOR_GRID_ROW_LABEL_ALIGN_LEFT  = (1 << 0),
Packit Service a1bd4f
    NMT_EDITOR_GRID_ROW_EXTRA_ALIGN_RIGHT = (1 << 1)
Packit 5756e2
} NmtEditorGridRowFlags;
Packit 5756e2
Packit Service a1bd4f
NmtNewtWidget *nmt_editor_grid_new(void);
Packit 5756e2
Packit Service a1bd4f
void nmt_editor_grid_append(NmtEditorGrid *grid,
Packit Service a1bd4f
                            const char *   label,
Packit Service a1bd4f
                            NmtNewtWidget *widget,
Packit Service a1bd4f
                            NmtNewtWidget *extra);
Packit Service a1bd4f
void nmt_editor_grid_set_row_flags(NmtEditorGrid *       grid,
Packit Service a1bd4f
                                   NmtNewtWidget *       widget,
Packit Service a1bd4f
                                   NmtEditorGridRowFlags flags);
Packit 5756e2
Packit 5756e2
#endif /* NMT_EDITOR_GRID_H */