summaryrefslogtreecommitdiff
path: root/tests/curve-editor.h
blob: 215adf449f7c06e1caa69fc05caeac097abd2374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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