1/*
2 * Copyright (c) 2016 Red Hat, Inc.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef _GTK_INSPECTOR_RECORDER_H_
19#define _GTK_INSPECTOR_RECORDER_H_
20
21#include <gtk/gtkwidget.h>
22
23#define GTK_TYPE_INSPECTOR_RECORDER (gtk_inspector_recorder_get_type())
24#define GTK_INSPECTOR_RECORDER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_INSPECTOR_RECORDER, GtkInspectorRecorder))
25#define GTK_INSPECTOR_IS_RECORDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_INSPECTOR_RECORDER))
26
27typedef struct _GtkInspectorRecorder GtkInspectorRecorder;
28
29G_BEGIN_DECLS
30
31GType gtk_inspector_recorder_get_type (void);
32
33void gtk_inspector_recorder_set_recording (GtkInspectorRecorder *recorder,
34 gboolean record);
35gboolean gtk_inspector_recorder_is_recording (GtkInspectorRecorder *recorder);
36
37void gtk_inspector_recorder_set_debug_nodes (GtkInspectorRecorder *recorder,
38 gboolean debug_nodes);
39
40void gtk_inspector_recorder_set_highlight_sequences (GtkInspectorRecorder *recorder,
41 gboolean highlight_sequences);
42
43void gtk_inspector_recorder_set_selected_sequence (GtkInspectorRecorder *recorder,
44 GdkEventSequence *sequence);
45
46void gtk_inspector_recorder_record_render (GtkInspectorRecorder *recorder,
47 GtkWidget *widget,
48 GskRenderer *renderer,
49 GdkSurface *surface,
50 const cairo_region_t *region,
51 GskRenderNode *node);
52
53void gtk_inspector_recorder_record_event (GtkInspectorRecorder *recorder,
54 GtkWidget *widget,
55 GdkEvent *event);
56
57G_END_DECLS
58
59#endif // _GTK_INSPECTOR_RECORDER_H_
60
61// vim: set et sw=2 ts=2:
62

source code of gtk/gtk/inspector/recorder.h