|
libmypaint 1.6.1
|
Holds information about a single MyPaintBrushSetting. More...
#include <mypaint-brush-settings.h>
Public Member Functions | |
| const MyPaintBrushSettingInfo * | mypaint_brush_setting_info (MyPaintBrushSetting id) |
| Get a pointer to the constant info struct for the given setting id. | |
| const gchar * | mypaint_brush_setting_info_get_name (const MyPaintBrushSettingInfo *self) |
| Get the translated display name for the given setting. | |
| const gchar * | mypaint_brush_setting_info_get_tooltip (const MyPaintBrushSettingInfo *self) |
| Get the translated tooltip for the given setting. | |
| MyPaintBrushSetting | mypaint_brush_setting_from_cname (const char *cname) |
| Get the MyPaintBrushSetting id matching the given canonical name. | |
Data Fields | |
| const gchar * | cname |
| Canonical name - uniquely identifies the setting. | |
| const gchar * | name |
| Display name - descriptive name of the setting. | |
| gboolean | constant |
| Indicates whether the setting supports dynamics or not. | |
| float | min |
| Mininmum base value. | |
| float | def |
| Default base value. | |
| float | max |
| Maximum base value. | |
| const gchar * | tooltip |
| Tooltip - description of the setting. | |
Holds information about a single MyPaintBrushSetting.
| MyPaintBrushSetting mypaint_brush_setting_from_cname | ( | const char * | cname | ) |
Get the MyPaintBrushSetting id matching the given canonical name.
If the given char sequence is not a canonical name of a setting, -1 is returned.
| cname | the canonical name for the setting id to retrieve |
| const MyPaintBrushSettingInfo * mypaint_brush_setting_info | ( | MyPaintBrushSetting | id | ) |
Get a pointer to the constant info struct for the given setting id.
| id | The MyPaintBrushSetting whose information will be returned. |
| const gchar * mypaint_brush_setting_info_get_name | ( | const MyPaintBrushSettingInfo * | self | ) |
Get the translated display name for the given setting.
| self | pointer to the settings info struct whose translated name will be returned. |
| const gchar * mypaint_brush_setting_info_get_tooltip | ( | const MyPaintBrushSettingInfo * | self | ) |
Get the translated tooltip for the given setting.
| self | settings info object whose translated tooltip will be returned. |
| const gchar* MyPaintBrushSettingInfo::cname |
Canonical name - uniquely identifies the setting.
| gboolean MyPaintBrushSettingInfo::constant |
Indicates whether the setting supports dynamics or not.
| float MyPaintBrushSettingInfo::def |
Default base value.
| float MyPaintBrushSettingInfo::max |
Maximum base value.
| float MyPaintBrushSettingInfo::min |
Mininmum base value.
| const gchar* MyPaintBrushSettingInfo::name |
Display name - descriptive name of the setting.
| const gchar* MyPaintBrushSettingInfo::tooltip |
Tooltip - description of the setting.