aboutsummaryrefslogtreecommitdiff
path: root/src/breakpoints~.h
blob: b000f53228052b16fb4e5c972a53956b3c1228a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#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_int borderwidth;

     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 */

      int state;


     t_outlet* out2;
     t_outlet* out3;
     /* widget parameters */
     t_wbreakpoints w;
} t_breakpoints;


t_widgetbehavior breakpoints_widgetbehavior;
static void breakpoints_drawme(t_breakpoints *x, t_glist *glist, int firsttime);
static int breakpoints_set_values(t_breakpoints * x);
static void breakpoints_resize(t_breakpoints* x,int ns);

#endif