1 #ifndef MYPAINTBRUSHSETTINGS_H
2 #define MYPAINTBRUSHSETTINGS_H
3 
4 /* libmypaint - The MyPaint Brush Library
5  * Copyright (C) 2012 Jon Nordby <jononor@gmail.com>
6  *
7  * Permission to use, copy, modify, and/or distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 #include <mypaint-config.h>
21 #include <mypaint-glib-compat.h>
22 #include <mypaint-brush-settings-gen.h>
23 
24 G_BEGIN_DECLS
25 
26 typedef struct {
27     const gchar *cname;
28     const gchar *name; // FIXME: needs to be accessed through gettext
29     gboolean constant;
30     float min;
31     float def; // default
32     float max;
33     const gchar *tooltip; // FIXME: needs to be accessed through gettext
34 } MyPaintBrushSettingInfo;
35 
36 const MyPaintBrushSettingInfo *
37 mypaint_brush_setting_info(MyPaintBrushSetting id);
38 
39 const gchar *
40 mypaint_brush_setting_info_get_name(const MyPaintBrushSettingInfo *self);
41 const gchar *
42 mypaint_brush_setting_info_get_tooltip(const MyPaintBrushSettingInfo *self);
43 MyPaintBrushSetting
44 mypaint_brush_setting_from_cname(const char *cname);
45 
46 typedef struct {
47     const gchar *cname;
48     float hard_min;
49     float soft_min;
50     float normal;
51     float soft_max;
52     float hard_max;
53     const gchar *name; // FIXME: needs to be accessed through gettext
54     const gchar *tooltip; // FIXME: needs to be accessed through gettext
55 } MyPaintBrushInputInfo;
56 
57 const MyPaintBrushInputInfo *
58 mypaint_brush_input_info(MyPaintBrushInput id);
59 
60 const gchar *
61 mypaint_brush_input_info_get_name(const MyPaintBrushInputInfo *self);
62 
63 const gchar *
64 mypaint_brush_input_info_get_tooltip(const MyPaintBrushInputInfo *self);
65 
66 MyPaintBrushInput
67 mypaint_brush_input_from_cname(const char *cname);
68 
69 G_END_DECLS
70 
71 #endif // MYPAINTBRUSHSETTINGS_H
72