libswami Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
SwamiControlValue; SwamiControlValue * swami_control_value_new (void
); void swami_control_value_assign_value (SwamiControlValue *ctrlvalue
,GValue *value
,GDestroyNotify destroy
); void swami_control_value_alloc_value (SwamiControlValue *ctrlvalue
);
SwamiControlValue * swami_control_value_new (void
);
Create a new GValue control.
Returns : |
New GValue control with a refcount of 1 which the caller owns. |
void swami_control_value_assign_value (SwamiControlValue *ctrlvalue
,GValue *value
,GDestroyNotify destroy
);
Assigns a GValue to be controlled by a Swami GValue control object.
If destroy
is set it will be called on the value
when it is no longer
being used. The ctrlvalue
should already have a parameter specification.
If the value
type is the same as the GParamSpec value type it will be
used as is otherwise it will be initialized to the parameter spec type.
|
Swami GValue control object |
|
Value to be controlled |
|
A function to destroy value or NULL
|
void swami_control_value_alloc_value (SwamiControlValue *ctrlvalue
);
Allocate a GValue and assign it to the ctrlvalue
object. See
swami_control_value_assign_value()
to assign an existing GValue to
a Swami GValue control object. The ctrlvalue
should already have an
assigned parameter spec.
|
Swami GValue control object |