[sysprof] libsysprof-ui: add rounded rectangle helper



commit 10a826f58e958c85b3781f1fd49f48071705e9c1
Author: Christian Hergert <chergert redhat com>
Date:   Thu May 16 16:10:00 2019 -0700

    libsysprof-ui: add rounded rectangle helper

 src/libsysprof-ui/meson.build          | 1 +
 src/libsysprof-ui/sysprof-marks-view.h | 2 +-
 src/libsysprof-ui/sysprof-ui-private.h | 5 ++++-
 3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/libsysprof-ui/meson.build b/src/libsysprof-ui/meson.build
index 29972b7..31bed09 100644
--- a/src/libsysprof-ui/meson.build
+++ b/src/libsysprof-ui/meson.build
@@ -27,6 +27,7 @@ libsysprof_ui_private_sources = [
   'pointcache.c',
   'rectangles.c',
   'sysprof-details-view.c',
+  'sysprof-cairo.c',
   'sysprof-cell-renderer-duration.c',
   'sysprof-cell-renderer-percent.c',
   'sysprof-tab.c',
diff --git a/src/libsysprof-ui/sysprof-marks-view.h b/src/libsysprof-ui/sysprof-marks-view.h
index 6a65ea5..f646c43 100644
--- a/src/libsysprof-ui/sysprof-marks-view.h
+++ b/src/libsysprof-ui/sysprof-marks-view.h
@@ -20,7 +20,7 @@
 
 #pragma once
 
-#include <sysprof-capture.h>
+#include <sysprof.h>
 #include <gtk/gtk.h>
 
 G_BEGIN_DECLS
diff --git a/src/libsysprof-ui/sysprof-ui-private.h b/src/libsysprof-ui/sysprof-ui-private.h
index 8aae79f..dcb5633 100644
--- a/src/libsysprof-ui/sysprof-ui-private.h
+++ b/src/libsysprof-ui/sysprof-ui-private.h
@@ -29,6 +29,9 @@ void _sysprof_marks_view_set_hadjustment      (SysprofMarksView      *self,
                                                GtkAdjustment         *hadjustment);
 void _sysprof_visualizer_view_set_hadjustment (SysprofVisualizerView *self,
                                                GtkAdjustment         *hadjustment);
-
+void _sysprof_rounded_rectangle               (cairo_t               *cr,
+                                               const GdkRectangle    *rect,
+                                               gint                   x_radius,
+                                               gint                   y_radius);
 
 G_END_DECLS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]