Blame thirdparty/libmypaint/dist/32/include/libmypaint/mypaint-brush-settings.h

bf1d82
#ifndef MYPAINTBRUSHSETTINGS_H
bf1d82
#define MYPAINTBRUSHSETTINGS_H
bf1d82
bf1d82
/* libmypaint - The MyPaint Brush Library
bf1d82
 * Copyright (C) 2012 Jon Nordby <jononor@gmail.com></jononor@gmail.com>
bf1d82
 *
bf1d82
 * Permission to use, copy, modify, and/or distribute this software for any
bf1d82
 * purpose with or without fee is hereby granted, provided that the above
bf1d82
 * copyright notice and this permission notice appear in all copies.
bf1d82
 *
bf1d82
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
bf1d82
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
bf1d82
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
bf1d82
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
bf1d82
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
bf1d82
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
bf1d82
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
bf1d82
 */
bf1d82
bf1d82
#include <mypaint-config.h></mypaint-config.h>
bf1d82
#include <mypaint-glib-compat.h></mypaint-glib-compat.h>
bf1d82
#include <mypaint-brush-settings-gen.h></mypaint-brush-settings-gen.h>
bf1d82
bf1d82
G_BEGIN_DECLS
bf1d82
bf1d82
typedef struct {
bf1d82
    const gchar *cname;
bf1d82
    const gchar *name; // FIXME: needs to be accessed through gettext
bf1d82
    gboolean constant;
bf1d82
    float min;
bf1d82
    float def; // default
bf1d82
    float max;
bf1d82
    const gchar *tooltip; // FIXME: needs to be accessed through gettext
bf1d82
} MyPaintBrushSettingInfo;
bf1d82
bf1d82
const MyPaintBrushSettingInfo *
bf1d82
mypaint_brush_setting_info(MyPaintBrushSetting id);
bf1d82
bf1d82
const gchar *
bf1d82
mypaint_brush_setting_info_get_name(const MyPaintBrushSettingInfo *self);
bf1d82
const gchar *
bf1d82
mypaint_brush_setting_info_get_tooltip(const MyPaintBrushSettingInfo *self);
bf1d82
MyPaintBrushSetting
bf1d82
mypaint_brush_setting_from_cname(const char *cname);
bf1d82
bf1d82
typedef struct {
bf1d82
    const gchar *cname;
bf1d82
    float hard_min;
bf1d82
    float soft_min;
bf1d82
    float normal;
bf1d82
    float soft_max;
bf1d82
    float hard_max;
bf1d82
    const gchar *name; // FIXME: needs to be accessed through gettext
bf1d82
    const gchar *tooltip; // FIXME: needs to be accessed through gettext
bf1d82
} MyPaintBrushInputInfo;
bf1d82
bf1d82
const MyPaintBrushInputInfo *
bf1d82
mypaint_brush_input_info(MyPaintBrushInput id);
bf1d82
bf1d82
const gchar *
bf1d82
mypaint_brush_input_info_get_name(const MyPaintBrushInputInfo *self);
bf1d82
bf1d82
const gchar *
bf1d82
mypaint_brush_input_info_get_tooltip(const MyPaintBrushInputInfo *self);
bf1d82
bf1d82
MyPaintBrushInput
bf1d82
mypaint_brush_input_from_cname(const char *cname);
bf1d82
bf1d82
G_END_DECLS
bf1d82
bf1d82
#endif // MYPAINTBRUSHSETTINGS_H