| Top |
| #define | IPATCH_RANGE_SET_VALUES() |
| #define | IPATCH_RANGE_SET_NULL() |
| IpatchRange * | ipatch_range_new () |
| IpatchRange * | ipatch_range_copy () |
| void | ipatch_range_free () |
| void | ipatch_value_set_range () |
| void | ipatch_value_set_static_range () |
| IpatchRange * | ipatch_value_get_range () |
| GParamSpec * | ipatch_param_spec_range () |
Boxed type used for GValue and GParamSpec properties. Consists of a low and a high integer value defining a range.
IpatchRange * ipatch_range_new (int low,int high);
Create a new value range structure (to store an integer range).
IpatchRange *
ipatch_range_copy (IpatchRange *range);
Duplicates an integer range structure.
void
ipatch_range_free (IpatchRange *range);
Free a range structure previously allocated with ipatch_range_new().
void ipatch_value_set_range (GValue *value,const IpatchRange *range);
Set the range values of a IPATCH_TYPE_RANGE GValue. The range
structure is copied.
void ipatch_value_set_static_range (GValue *value,IpatchRange *range);
Set the range values of a IPATCH_TYPE_RANGE GValue. This function uses
range
directly and so it should be static, use ipatch_value_set_range()
if the range
value should be duplicated.
[skip]
IpatchRange *
ipatch_value_get_range (const GValue *value);
Get the range structure from a IPATCH_TYPE_RANGE GValue.
IpatchRange structure containing the range values of value
or
NULL if not set. The returned structure is NOT duplicated and is the
same pointer used in value
.
[transfer none]
GParamSpec * ipatch_param_spec_range (const char *name,const char *nick,const char *blurb,int min,int max,int default_low,int default_high,GParamFlags flags);
Create a parameter specification for IPATCH_TYPE_RANGE GValues.
name |
Property name |
|
nick |
Property nick name |
|
blurb |
Property description blurb |
|
min |
Minimum value for range end points (can be -1 to allow undefined ranges) |
|
max |
Maximum value for range end points |
|
default_low |
Default value for low endpoint of range |
|
default_high |
Default value for high endpoint of range |
|
flags |
Property flags |