<< GtkEditableWaveBuffer >>

GtkEditableWaveBuffer is an interface containing editable wavebuffer. It is derived from GtkWaveBuffer and inherits its functions, adding the below functions. This class does not provide any functionality, only an interface. Instantiate one of its subclasses instead.

Signals:
modified - Caught by GtkWaveView to update the display.
insert_data - Used to update selection and marker position.
delete_data - Ditto.


Member functions:

GtkType        gtk_editable_wave_buffer_get_type       (void);

Standard Gtk+ function returns GtkType of GtkEditableWaveBuffer class.


void           gtk_editable_wave_buffer_queue_modified (GtkEditableWaveBuffer *editable,
                                                        gint32 start,
                                                        gint32 length);

Tell wavebuffer that it was modified and where. This is a protected function (in C++ terms) that should only be called by subclasses. It queues up the modified patches which are then repainted during an idle callback.


gint           gtk_editable_wave_buffer_set_samples    (GtkEditableWaveBuffer *editable_wave_buffer,
                                                        guint32 start,
                                                        guint32 length,
                                                        guint32 channel_mask,
                                                        gpointer data);

Sets the samples given a starting point, a length, channel mask, and data. See gtk_wave_buffer_get_samples of GtkWaveBuffer for a better description of the meaning of the parameters. Returns 0 on success, anything else means failure.


gint           gtk_editable_wave_buffer_insert         (GtkEditableWaveBuffer *editable_wave_buffer,
                                                        guint32 start,
                                                        guint32 length);

Insert a length of frames before the given position. You may use this function to append data to a data source, just pass the current length as the position. The inserted frames are of uninitiated values, therefore after inserting them you should call gtk_editable_wave_buffer_set_samples to initialize the data. Returns 0 on success.


gint           gtk_editable_wave_buffer_delete         (GtkEditableWaveBuffer *editable_wave_buffer,
                                                        guint32 start,
                                                        guint32 length);

Delete a length of frames starting at a point. Returns 0 on success.

GtkEditableWaveBuffer