2 terminatorX - realtime audio scratching software
3 Copyright (C) 1999-2003 Alexander König
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 Description: Header to tX_widget.c
28 #include <gtk/gtkwidget.h>
34 #endif /* __cplusplus */
37 #define GTK_TX(obj) GTK_CHECK_CAST (obj, gtk_tx_get_type (), GtkTx)
38 #define GTK_TX_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_tx_get_type (), GtkTxClass)
39 #define GTK_IS_TX(obj) GTK_CHECK_TYPE (obj, gtk_tx_get_type ())
41 typedef struct _GtkTx GtkTx;
42 typedef struct _GtkTxClass GtkTxClass;
44 typedef enum tx_widget_motion {
74 GtkWidget *peer_scale;
84 #ifdef USE_DISPLAY_NORMALIZE
90 GtkWidgetClass parent_class;
93 GtkWidget* gtk_tx_new (int16_t *wavdata, int wavsamples);
94 guint gtk_tx_get_type (void);
95 void gtk_tx_set_data (GtkTx *tx, int16_t *wavdata, int wavsamples);
96 void gtk_tx_cleanup_pos_display (GtkTx *tx);
97 void gtk_tx_update_pos_display (GtkTx *tx, int sample, int mute);
98 void gtk_tx_show_frame(GtkTx *tx, int show);
99 void gtk_tx_set_zoom(GtkTx *tx, f_prec zoom);
100 f_prec gtk_tx_get_zoom(GtkTx *tx);
104 #endif /* __cplusplus */