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_RENDER_RECORDING_H_
19#define _GTK_INSPECTOR_RENDER_RECORDING_H_
20
21#include <gdk/gdk.h>
22#include <gsk/gsk.h>
23#include "gsk/gskprofilerprivate.h"
24
25#include "inspector/recording.h"
26
27G_BEGIN_DECLS
28
29#define GTK_TYPE_INSPECTOR_RENDER_RECORDING (gtk_inspector_render_recording_get_type())
30#define GTK_INSPECTOR_RENDER_RECORDING(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_INSPECTOR_RENDER_RECORDING, GtkInspectorRenderRecording))
31#define GTK_INSPECTOR_RENDER_RECORDING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_INSPECTOR_RENDER_RECORDING, GtkInspectorRenderRecordingClass))
32#define GTK_INSPECTOR_IS_RENDER_RECORDING(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_INSPECTOR_RENDER_RECORDING))
33#define GTK_INSPECTOR_IS_RENDER_RECORDING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_INSPECTOR_RENDER_RECORDING))
34#define GTK_INSPECTOR_RENDER_RECORDING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_INSPECTOR_RENDER_RECORDING, GtkInspectorRenderRecordingClass))
35
36
37typedef struct _GtkInspectorRenderRecordingPrivate GtkInspectorRenderRecordingPrivate;
38
39typedef struct _GtkInspectorRenderRecording
40{
41 GtkInspectorRecording parent;
42
43 GdkRectangle area;
44 cairo_region_t *clip_region;
45 GskRenderNode *node;
46 char *profiler_info;
47} GtkInspectorRenderRecording;
48
49typedef struct _GtkInspectorRenderRecordingClass
50{
51 GtkInspectorRecordingClass parent;
52} GtkInspectorRenderRecordingClass;
53
54GType gtk_inspector_render_recording_get_type (void);
55
56GtkInspectorRecording *
57 gtk_inspector_render_recording_new (gint64 timestamp,
58 GskProfiler *profiler,
59 const GdkRectangle *area,
60 const cairo_region_t *clip_region,
61 GskRenderNode *node);
62
63GskRenderNode * gtk_inspector_render_recording_get_node (GtkInspectorRenderRecording *recording);
64const cairo_region_t *
65 gtk_inspector_render_recording_get_clip_region (GtkInspectorRenderRecording *recording);
66const cairo_rectangle_int_t *
67 gtk_inspector_render_recording_get_area (GtkInspectorRenderRecording *recording);
68const char * gtk_inspector_render_recording_get_profiler_info
69 (GtkInspectorRenderRecording *recording);
70
71
72G_END_DECLS
73
74#endif // _GTK_INSPECTOR_RENDER_RECORDING_H_
75
76// vim: set et sw=2 ts=2:
77

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