synfig-core
1.0.3
|
Parameter Description Class. More...
#include <paramdesc.h>
Classes | |
struct | EnumData |
Public Member Functions | |
ParamDesc (const String &a="IM_A_BUG_SO_REPORT_ME") | |
ParamDesc (const ValueBase &, const String &a) | |
const std::list< EnumData > & | get_enum_list () const |
ParamDesc & | set_local_name (const String &n) |
Sets the localized name of the parameter. | |
ParamDesc & | set_description (const String &d) |
Sets the localized description of the parameter. | |
ParamDesc & | set_group (const String &n) |
Sets the group that this parameter is a member of. | |
ParamDesc & | set_hint (const String &h) |
Sets a "hint" for the parameter. | |
ParamDesc & | set_connect (const String &h) |
ParamDesc & | set_box (const String &h) |
ParamDesc & | set_invisible_duck (bool x=true) |
Sets a flag regarding the duck visibility. | |
bool | get_invisible_duck () |
Returns the flag regarding duck visibility. | |
ParamDesc & | set_animation_only (bool x=true) |
bool | get_animation_only () |
ParamDesc & | set_origin (const String &h) |
Sets which parameter is to be used as the origin when the user edits visually. | |
ParamDesc & | set_scalar (const Real &n) |
Sets the scalar value for the parameter. | |
ParamDesc & | set_exponential (bool x=true) |
Sets if the parameter value should be exposed for visual editing using the exponential function. | |
ParamDesc & | not_critical () |
Marks the parameter as not necessary for saving or copying. | |
ParamDesc & | hidden () |
ParamDesc & | read_only () |
Marks the parameter as only readable. Implies not_critical() | |
ParamDesc & | write_only () |
Marks the parameter as only writable. Implies not_critical() | |
ParamDesc & | add_enum_value (int val, const String &enum_name, const String &enum_local_name) |
Adds a description of a possible enumeration value. | |
const String & | get_local_name () const |
Returns the localized name of the parameter. | |
const String & | get_name () const |
Returns the name of the parameter. | |
const String & | get_description () const |
Returns the localized description of the parameter. | |
const String & | get_group () const |
Returns the parameter's group. | |
const String & | get_hint () const |
Returns a "hint" about the parameter, regarding how it is to be displayed to the user. | |
const String & | get_origin () const |
Returns the name of the parameter that is defined as the "origin". Used for visual editing. | |
const String & | get_connect () const |
const String & | get_box () const |
const Real & | get_scalar () const |
Returns the scalar value for the parameter. Used for visual editing. | |
bool | get_exponential () const |
Tells if the value should be exposed for editing using the exponential function. | |
bool | get_critical () const |
Returns true if the layer is critical, false otherwise. | |
bool | get_hidden () const |
Returns true if the layer is hidden, false otherwise. | |
bool | get_static () const |
ParamDesc & | set_static (bool s) |
Interpolation | get_interpolation () const |
ParamDesc & | set_interpolation (Interpolation i) |
ParamDesc & | set_is_distance (bool x=true) |
bool | get_is_distance () const |
Parameter Description Class.
|
inline |
References _, add_enum_value(), synfig::Color::BLEND_ADD, synfig::Color::BLEND_ALPHA_BRIGHTEN, synfig::Color::BLEND_ALPHA_DARKEN, synfig::Color::BLEND_ALPHA_OVER, synfig::Color::BLEND_BEHIND, synfig::Color::BLEND_BRIGHTEN, synfig::Color::BLEND_COLOR, synfig::Color::BLEND_COMPOSITE, synfig::Color::BLEND_DARKEN, synfig::Color::BLEND_DIFFERENCE, synfig::Color::BLEND_DIVIDE, synfig::Color::BLEND_HARD_LIGHT, synfig::Color::BLEND_HUE, synfig::Color::BLEND_LUMINANCE, synfig::Color::BLEND_MULTIPLY, synfig::Color::BLEND_ONTO, synfig::Color::BLEND_OVERLAY, synfig::Color::BLEND_SATURATION, synfig::Color::BLEND_SCREEN, synfig::Color::BLEND_STRAIGHT, synfig::Color::BLEND_STRAIGHT_ONTO, synfig::Color::BLEND_SUBTRACT, set_hint(), and set_local_name().
|
inline |
Sets the localized name of the parameter.
Referenced by ParamDesc().
Sets the localized description of the parameter.
Sets the group that this parameter is a member of.
Sets a "hint" for the parameter.
Referenced by ParamDesc().
|
inline |
Sets a flag regarding the duck visibility.
|
inline |
Returns the flag regarding duck visibility.
|
inline |
|
inline |
Sets which parameter is to be used as the origin when the user edits visually.
Sets the scalar value for the parameter.
This value determines how the value is to be presented to the user when editing visually.
|
inline |
Sets if the parameter value should be exposed for visual editing using the exponential function.
Such representation allows to set the Real values in the range from -inf
to inf
.
|
inline |
Marks the parameter as not necessary for saving or copying.
|
inline |
Marks the parameter as only readable. Implies not_critical()
|
inline |
Marks the parameter as only writable. Implies not_critical()
|
inline |
Adds a description of a possible enumeration value.
Only relevant if the parameter is of an integer type and hint set to "enum"
.
Referenced by ParamDesc().
|
inline |
Returns the localized name of the parameter.
|
inline |
Returns the name of the parameter.
|
inline |
Returns the localized description of the parameter.
|
inline |
Returns the parameter's group.
|
inline |
Returns a "hint" about the parameter, regarding how it is to be displayed to the user.
|
inline |
Returns the name of the parameter that is defined as the "origin". Used for visual editing.
|
inline |
|
inline |
Returns the scalar value for the parameter. Used for visual editing.
|
inline |
Tells if the value should be exposed for editing using the exponential function.
Such representation allows to set the Real values in the range from -inf
to inf
.
|
inline |
Returns true
if the layer is critical, false
otherwise.
|
inline |
Returns true
if the layer is hidden, false
otherwise.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |