libmypaint
1.6.0
|
Holds information about a single MyPaintBrushInput. More...
#include <mypaint-brush-settings.h>
Public Member Functions | |
const MyPaintBrushInputInfo * | mypaint_brush_input_info (MyPaintBrushInput id) |
Get a pointer to the constant info struct for the given input id. More... | |
const gchar * | mypaint_brush_input_info_get_name (const MyPaintBrushInputInfo *self) |
Get the translated display name for the given input. More... | |
const gchar * | mypaint_brush_input_info_get_tooltip (const MyPaintBrushInputInfo *self) |
Get the translated display name for the given input. More... | |
MyPaintBrushInput | mypaint_brush_input_from_cname (const char *cname) |
Get the MyPaintBrushInput id matching the given canonical name. More... | |
Data Fields | |
const gchar * | cname |
Canonical name - uniquely identifies the input. More... | |
float | hard_min |
Hard lower limit of the input's range. More... | |
float | soft_min |
Default lower limit of the input's range. More... | |
float | normal |
Expected normal value for the input - only used as a reference when creating mappings. More... | |
float | soft_max |
Default upper limit of the input's range. More... | |
float | hard_max |
Hard upper limit of the input's range. More... | |
const gchar * | name |
Display name - descriptive name of the input. More... | |
const gchar * | tooltip |
Tooltip - brief description of the input. More... | |
Holds information about a single MyPaintBrushInput.
Like MyPaintBrushSettingInfo, these structs hold information about canonical names, display names and tooltips. The remaining data should be used to limit how the inputs are mapped to settings.
The min and max values in MyPaintBrushSettingInfo define limits on the range that an input should be mapped to for a setting. The hard/soft_min/max values in this struct define limits on the input range for mappings from an input.
MyPaintBrushInput mypaint_brush_input_from_cname | ( | const char * | cname | ) |
Get the MyPaintBrushInput id matching the given canonical name.
If the given input is not a canonical name of an input, -1 is returned.
cname | the canonical name for the input id to retrieve |
const MyPaintBrushInputInfo * mypaint_brush_input_info | ( | MyPaintBrushInput | id | ) |
Get a pointer to the constant info struct for the given input id.
id | The MyPaintBrushInput whose information will be returned. |
const gchar * mypaint_brush_input_info_get_name | ( | const MyPaintBrushInputInfo * | self | ) |
Get the translated display name for the given input.
self | pointer to the input info struct whose translated name will be returned. |
const gchar * mypaint_brush_input_info_get_tooltip | ( | const MyPaintBrushInputInfo * | self | ) |
Get the translated display name for the given input.
self | pointer to the input info struct whose translated name will be returned. |
const gchar* MyPaintBrushInputInfo::cname |
Canonical name - uniquely identifies the input.
float MyPaintBrushInputInfo::hard_max |
Hard upper limit of the input's range.
A value of FLT_MAX should be interpreted as "undefined", and a constant maximum should be used instead (MyPaint uses 20).
float MyPaintBrushInputInfo::hard_min |
Hard lower limit of the input's range.
A value of -FLT_MAX should be interpreted as "undefined", and a constant minimum should be used instead (MyPaint uses -20).
const gchar* MyPaintBrushInputInfo::name |
Display name - descriptive name of the input.
float MyPaintBrushInputInfo::normal |
Expected normal value for the input - only used as a reference when creating mappings.
float MyPaintBrushInputInfo::soft_max |
Default upper limit of the input's range.
float MyPaintBrushInputInfo::soft_min |
Default lower limit of the input's range.
const gchar* MyPaintBrushInputInfo::tooltip |
Tooltip - brief description of the input.