1 | /* |
2 | * Copyright (c) 2021 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_EVENT_RECORDING_H_ |
19 | #define _GTK_INSPECTOR_EVENT_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 | |
27 | G_BEGIN_DECLS |
28 | |
29 | #define GTK_TYPE_INSPECTOR_EVENT_RECORDING (gtk_inspector_event_recording_get_type()) |
30 | #define GTK_INSPECTOR_EVENT_RECORDING(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_INSPECTOR_EVENT_RECORDING, GtkInspectorEventRecording)) |
31 | #define GTK_INSPECTOR_EVENT_RECORDING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_INSPECTOR_EVENT_RECORDING, GtkInspectorEventRecordingClass)) |
32 | #define GTK_INSPECTOR_IS_EVENT_RECORDING(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_INSPECTOR_EVENT_RECORDING)) |
33 | #define GTK_INSPECTOR_IS_EVENT_RECORDING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_INSPECTOR_EVENT_RECORDING)) |
34 | #define GTK_INSPECTOR_EVENT_RECORDING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_INSPECTOR_EVENT_RECORDING, GtkInspectorEventRecordingClass)) |
35 | |
36 | |
37 | typedef struct _GtkInspectorEventRecordingPrivate GtkInspectorEventRecordingPrivate; |
38 | |
39 | typedef struct _GtkInspectorEventRecording |
40 | { |
41 | GtkInspectorRecording parent; |
42 | |
43 | GdkEvent *event; |
44 | } GtkInspectorEventRecording; |
45 | |
46 | typedef struct _GtkInspectorEventRecordingClass |
47 | { |
48 | GtkInspectorRecordingClass parent; |
49 | } GtkInspectorEventRecordingClass; |
50 | |
51 | GType gtk_inspector_event_recording_get_type (void); |
52 | |
53 | GtkInspectorRecording * |
54 | gtk_inspector_event_recording_new (gint64 timestamp, |
55 | GdkEvent *event); |
56 | |
57 | GdkEvent * gtk_inspector_event_recording_get_event (GtkInspectorEventRecording *recording); |
58 | |
59 | |
60 | G_END_DECLS |
61 | |
62 | #endif // _GTK_INSPECTOR_EVENT_RECORDING_H_ |
63 | |
64 | // vim: set et sw=2 ts=2: |
65 | |