Holds information about a single MyPaintBrushSetting.
More...
#include <mypaint-brush-settings.h>
Holds information about a single MyPaintBrushSetting.
◆ mypaint_brush_setting_from_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.
- Parameters
-
cname | the canonical name for the setting id to retrieve |
- Returns
- The id whose corresponding MyPaintBrushSettingInfo::cname matches cname, or -1 if cname is not a valid canonical name.
◆ mypaint_brush_setting_info()
Get a pointer to the constant info struct for the given setting id.
- Parameters
-
◆ mypaint_brush_setting_info_get_name()
Get the translated display name for the given setting.
- Parameters
-
self | pointer to the settings info struct whose translated name will be returned. |
- Returns
- the translated display name, or the original display name if no translation exists for the active locale.
◆ mypaint_brush_setting_info_get_tooltip()
Get the translated tooltip for the given setting.
- Parameters
-
self | settings info object whose translated tooltip will be returned. |
- Returns
- the translated tooltip, or the original tooltip if no translation exists for the active locale.
◆ cname
const gchar* MyPaintBrushSettingInfo::cname |
Canonical name - uniquely identifies the setting.
◆ constant
gboolean MyPaintBrushSettingInfo::constant |
Indicates whether the setting supports dynamics or not.
◆ def
float MyPaintBrushSettingInfo::def |
◆ max
float MyPaintBrushSettingInfo::max |
◆ min
float MyPaintBrushSettingInfo::min |
◆ name
const gchar* MyPaintBrushSettingInfo::name |
◆ tooltip
const gchar* MyPaintBrushSettingInfo::tooltip |
The documentation for this struct was generated from the following file: