summaryrefslogtreecommitdiff
path: root/gtk/inspector/variant-editor.h
blob: 88a9ae2e2eaebb7056edf6a2f33f5d9bb3703524 (plain)
1
2
3
4
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
 * Copyright (c) 2014 Red Hat, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _GTK_INSPECTOR_VARIANT_EDITOR_H_
#define _GTK_INSPECTOR_VARIANT_EDITOR_H_


#include <gtk/gtkwidget.h>
#include <gtk/gtksizegroup.h>


#define GTK_TYPE_INSPECTOR_VARIANT_EDITOR            (gtk_inspector_variant_editor_get_type())
#define GTK_INSPECTOR_VARIANT_EDITOR(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_INSPECTOR_VARIANT_EDITOR, GtkInspectorVariantEditor))
#define GTK_INSPECTOR_IS_VARIANT_EDITOR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_INSPECTOR_VARIANT_EDITOR))


typedef struct _GtkInspectorVariantEditor GtkInspectorVariantEditor;

G_BEGIN_DECLS

typedef void (* GtkInspectorVariantEditorChanged) (GtkWidget *editor,
                                                   gpointer   data);

GType      gtk_inspector_variant_editor_get_type (void);
GtkWidget *gtk_inspector_variant_editor_new      (const GVariantType               *type,
                                                  GtkInspectorVariantEditorChanged  callback,
                                                  gpointer                          data);
void       gtk_inspector_variant_editor_set_type (GtkWidget                        *editor,
                                                  const GVariantType               *type);
void       gtk_inspector_variant_editor_set_value (GtkWidget                       *editor,
                                                   GVariant                        *value);
GVariant * gtk_inspector_variant_editor_get_value (GtkWidget                       *editor);


G_END_DECLS


#endif // _GTK_INSPECTOR_VARIANT_EDITOR_H_

// vim: set et: