GwyWatchable

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

Synopsis




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

Object Hierarchy


  GInterface
   +----GwyWatchable

Prerequisites

GwyWatchable requires GObject.

Known Implementations

GwyWatchable is implemented by GwySIUnit.

Signal Prototypes


"value-changed"
            void        user_function      (GwyWatchable *gwywatchable,
                                            gpointer user_data);

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

struct GwyWatchableIface

struct GwyWatchableIface {

    GTypeInterface parent_class;

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


struct GwyWatchable

struct 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.

Signals

The "value-changed" signal

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.