/* sysprof-callgraph-view.h * * Copyright 2016-2019 Christian Hergert * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * SPDX-License-Identifier: GPL-3.0-or-later */ #pragma once #if !defined (SYSPROF_UI_INSIDE) && !defined (SYSPROF_UI_COMPILATION) # error "Only can be included directly." #endif #include #include G_BEGIN_DECLS #define SYSPROF_TYPE_CALLGRAPH_VIEW (sysprof_callgraph_view_get_type()) SYSPROF_AVAILABLE_IN_ALL G_DECLARE_DERIVABLE_TYPE (SysprofCallgraphView, sysprof_callgraph_view, SYSPROF, CALLGRAPH_VIEW, GtkBin) struct _SysprofCallgraphViewClass { GtkBinClass parent_class; void (*go_previous) (SysprofCallgraphView *self); gpointer padding[8]; }; SYSPROF_AVAILABLE_IN_ALL GtkWidget *sysprof_callgraph_view_new (void); SYSPROF_AVAILABLE_IN_ALL SysprofCallgraphProfile *sysprof_callgraph_view_get_profile (SysprofCallgraphView *self); SYSPROF_AVAILABLE_IN_ALL void sysprof_callgraph_view_set_profile (SysprofCallgraphView *self, SysprofCallgraphProfile *profile); SYSPROF_AVAILABLE_IN_ALL gchar *sysprof_callgraph_view_screenshot (SysprofCallgraphView *self); SYSPROF_AVAILABLE_IN_ALL guint sysprof_callgraph_view_get_n_functions (SysprofCallgraphView *self); G_END_DECLS