diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-11-19 13:41:21 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-11-29 22:05:54 -0500 |
commit | 0b1637f46585354228f4bf97dbb5c6af451a13b1 (patch) | |
tree | bddf6df5e8531e4a0eaadb5367c371423e5ee2c5 /tests/curve-editor.h | |
parent | eb247837133b84d2069afb974a30f87461ad54c0 (diff) | |
download | gtk+-matthiasc/lottie-tests.tar.gz |
Add a path editor demomatthiasc/lottie-tests
Add a simple demo for editing a poly-Bezier curve.
It does not handle conic segments yet.
Diffstat (limited to 'tests/curve-editor.h')
-rw-r--r-- | tests/curve-editor.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/curve-editor.h b/tests/curve-editor.h new file mode 100644 index 0000000000..215adf449f --- /dev/null +++ b/tests/curve-editor.h @@ -0,0 +1,33 @@ +#pragma once + +#include <gtk/gtk.h> + +G_BEGIN_DECLS + +#define CURVE_TYPE_EDITOR (curve_editor_get_type ()) +G_DECLARE_FINAL_TYPE (CurveEditor, curve_editor, CURVE, EDITOR, GtkWidget) + +GtkWidget * curve_editor_new (void); + +void curve_editor_set_edit (CurveEditor *self, + gboolean edit); + +void curve_editor_set_path (CurveEditor *self, + GskPath *path); + +GskPath * curve_editor_get_path (CurveEditor *self); + +void curve_editor_set_stroke (CurveEditor *self, + GskStroke *stroke); + +const GskStroke * + curve_editor_get_stroke (CurveEditor *self); + + +void curve_editor_set_color (CurveEditor *self, + GdkRGBA *color); + +const GdkRGBA * + curve_editor_get_color (CurveEditor *self); + +G_END_DECLS |