libmypaint  1.6.0
Public Member Functions | Data Fields
MyPaintBrushSettingInfo Struct Reference

Holds information about a single MyPaintBrushSetting. More...

#include <mypaint-brush-settings.h>

Public Member Functions

const MyPaintBrushSettingInfomypaint_brush_setting_info (MyPaintBrushSetting id)
 Get a pointer to the constant info struct for the given setting id. More...
 
const gcharmypaint_brush_setting_info_get_name (const MyPaintBrushSettingInfo *self)
 Get the translated display name for the given setting. More...
 
const gcharmypaint_brush_setting_info_get_tooltip (const MyPaintBrushSettingInfo *self)
 Get the translated tooltip for the given setting. More...
 
MyPaintBrushSetting mypaint_brush_setting_from_cname (const char *cname)
 Get the MyPaintBrushSetting id matching the given canonical name. More...
 

Data Fields

const gcharcname
 Canonical name - uniquely identifies the setting. More...
 
const gcharname
 Display name - descriptive name of the setting. More...
 
gboolean constant
 Indicates whether the setting supports dynamics or not. More...
 
float min
 Mininmum base value. More...
 
float def
 Default base value. More...
 
float max
 Maximum base value. More...
 
const gchartooltip
 Tooltip - description of the setting. More...
 

Detailed Description

Holds information about a single MyPaintBrushSetting.

Member Function Documentation

◆ mypaint_brush_setting_from_cname()

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.

Parameters
cnamethe 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()

const MyPaintBrushSettingInfo * mypaint_brush_setting_info ( MyPaintBrushSetting  id)

Get a pointer to the constant info struct for the given setting id.

Parameters
idThe MyPaintBrushSetting whose information will be returned.

◆ mypaint_brush_setting_info_get_name()

const gchar * mypaint_brush_setting_info_get_name ( const MyPaintBrushSettingInfo self)

Get the translated display name for the given setting.

Parameters
selfpointer 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()

const gchar * mypaint_brush_setting_info_get_tooltip ( const MyPaintBrushSettingInfo self)

Get the translated tooltip for the given setting.

Parameters
selfsettings info object whose translated tooltip will be returned.
Returns
the translated tooltip, or the original tooltip if no translation exists for the active locale.

Field Documentation

◆ 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

Default base value.

◆ max

float MyPaintBrushSettingInfo::max

Maximum base value.

◆ min

float MyPaintBrushSettingInfo::min

Mininmum base value.

◆ name

const gchar* MyPaintBrushSettingInfo::name

Display name - descriptive name of the setting.

See also
mypaint_brush_setting_info_get_name

◆ tooltip

const gchar* MyPaintBrushSettingInfo::tooltip

Tooltip - description of the setting.

See also
mypaint_brush_setting_info_get_tooltip

The documentation for this struct was generated from the following file: