aboutsummaryrefslogtreecommitdiff
path: root/src/breakpoints~.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/breakpoints~.h')
-rwxr-xr-xsrc/breakpoints~.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/breakpoints~.h b/src/breakpoints~.h
new file mode 100755
index 0000000..27d6a6d
--- /dev/null
+++ b/src/breakpoints~.h
@@ -0,0 +1,63 @@
+#ifndef __GG_breakpoints_H__
+#define __GG_breakpoints_H__
+
+#include "g_canvas.h"
+
+typedef struct _wbreakpoints {
+ t_glist* glist;
+ int width;
+ int height;
+ int numdoodles;
+ int grabbed; /* for moving points */
+ int shift; /* move 100th */
+ float pointerx;
+ float pointery;
+
+ t_clock* numclock;
+} t_wbreakpoints;
+
+typedef struct _breakpoints
+{
+ t_object x_obj;
+
+ t_float x_val;
+
+ int x_state;
+ int last_state;
+ int sustain_state;
+ int envchanged;
+
+ t_float* finalvalues;
+ t_float* duration;
+ t_float totaldur;
+ t_int args; /* get rid of that */
+ t_int resizing;
+ t_int resizeable;
+
+ t_symbol* r_sym; //receive symbol
+ t_symbol* s_sym; //send symbol
+ t_symbol* d_sym; //dump symbol
+ t_symbol* c_sym; //change symbol
+
+ t_float min;
+ t_float max;
+
+ t_clock* x_clock;
+ t_float x_freeze;
+
+ t_float x_f; /* place to hold inlet's value if it's set by message */
+
+
+ t_outlet* out2;
+ t_outlet* out3;
+ /* widget parameters */
+ t_wbreakpoints w;
+} t_breakpoints;
+
+
+t_widgetbehavior breakpoints_widgetbehavior;
+void breakpoints_drawme(t_breakpoints *x, t_glist *glist, int firsttime);
+int breakpoints_set_values(t_breakpoints * x);
+void breakpoints_resize(t_breakpoints* x,int ns);
+
+#endif