/* sp-visualizer-row.h * * Copyright (C) 2016 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 . */ #ifndef SP_VISUALIZER_ROW_H #define SP_VISUALIZER_ROW_H #include #include "capture/sp-capture-reader.h" #include "util/sp-zoom-manager.h" G_BEGIN_DECLS #define SP_TYPE_VISUALIZER_ROW (sp_visualizer_row_get_type()) G_DECLARE_DERIVABLE_TYPE (SpVisualizerRow, sp_visualizer_row, SP, VISUALIZER_ROW, GtkListBoxRow) typedef struct { gdouble x; gdouble y; } SpVisualizerRowRelativePoint; typedef struct { gint x; gint y; } SpVisualizerRowAbsolutePoint; struct _SpVisualizerRowClass { GtkListBoxRowClass parent_class; /** * SpVisualizerRow::set_reader: * * Sets the reader that the row should use to extract counters. * This reader is private to the row and should be freed when * no longer in use with sp_capture_reader_unref(). */ void (*set_reader) (SpVisualizerRow *self, SpCaptureReader *reader); /*< private >*/ gpointer _reserved[16]; }; void sp_visualizer_row_set_reader (SpVisualizerRow *self, SpCaptureReader *reader); SpZoomManager *sp_visualizer_row_get_zoom_manager (SpVisualizerRow *self); void sp_visualizer_row_set_zoom_manager (SpVisualizerRow *self, SpZoomManager *zoom_manager); void sp_visualizer_row_translate_points (SpVisualizerRow *self, const SpVisualizerRowRelativePoint *in_points, guint n_in_points, SpVisualizerRowAbsolutePoint *out_points, guint n_out_points); G_END_DECLS #endif /* SP_VISUALIZER_ROW_H */