![]() | ![]() | Gwyddion Library Reference Manual | ![]() |
---|
GwyWatchable — Abstract interface for a value-like object whose changes can be watched
struct GwyWatchableIface; struct GwyWatchable; void gwy_watchable_value_changed (GObject *watchable);
"value-changed" void user_function (GwyWatchable *gwywatchable, gpointer user_data);
GwyWatchable is an abstract interface for a value-like objects whose changes can be watched, i.e., they cause emission of a "value_changed" signal. You can use gwy_watchable_value_changed() to programatically emit the signal.
Note this interface may be formally required on objects in some situations (namely to store them to GwyContainer), although in current stage it does not have to be meaningfully implemented. In Gwyddion 2.0 this interface may either become actually used, or be removed.
struct GwyWatchableIface { GTypeInterface parent_class; void (*value_changed)(GObject *watchable); };
void gwy_watchable_value_changed (GObject *watchable);
Emits a "value_changed" signal on a watchable object.
watchable : | A GObject implementing GwyWatchable interface. |
void user_function (GwyWatchable *gwywatchable, gpointer user_data);
Emitted when value changes.
gwywatchable : | the object which received the signal. |
user_data : | user data set when the signal handler was connected. |
<< Gwyddion Library Reference Manual | GwySerializable >> |