GwyWatchable

GwyWatchable — Abstract interface for a value-like object whose changes can be watched

Synopsis




            GwyWatchableIface;
            GwyWatchable;
void        gwy_watchable_value_changed     (GObject *watchable);

Object Hierarchy


  GInterface
   +----GwyWatchable

Prerequisites

GwyWatchable requires GObject.

Description

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.

Details

GwyWatchableIface

typedef struct {
    GTypeInterface parent_class;

    void (*value_changed)(GObject *watchable);
} GwyWatchableIface;


GwyWatchable

typedef struct _GwyWatchable GwyWatchable;


gwy_watchable_value_changed ()

void        gwy_watchable_value_changed     (GObject *watchable);

Emits a "value_changed" signal on a watchable object.

watchable : A GObject implementing GwyWatchable interface.