aboutsummaryrefslogtreecommitdiff
path: root/gui/fatom.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/fatom.h')
-rw-r--r--gui/fatom.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/gui/fatom.h b/gui/fatom.h
index 82d804f..40d362a 100644
--- a/gui/fatom.h
+++ b/gui/fatom.h
@@ -9,18 +9,18 @@
typedef struct _fatom
{
t_object x_obj;
- t_atom a_pos;
-
- t_glist * x_glist;
- int x_rect_width;
- int x_rect_height;
- t_symbol* x_sym;
- t_symbol* x_type;
-
- t_symbol* x_text;
- int x_max;
- int x_min;
- int x_width;
+ t_atom a_pos; /* the value of the fatom */
+
+ t_glist * x_glist; /* value of the current canvas, intialized in _new */
+ int x_rect_width; /* width of the widget */
+ int x_rect_height; /* height of the widget */
+ t_symbol* x_sym; /* symbol for receiving callbacks from GUI */
+ t_symbol* x_type; /* type of fatom (vslider, hslider, checkbutton) */
+
+ t_symbol* x_text; /* associated widget text */
+ int x_max; /* maximum value of a_pos (x_val) */
+ int x_min; /* minimum value of a_pos (x_val) */
+ int x_width; /* width of widget (e.g x_rect_height + 15 for hslider, x_rect_width + 15 for slider) */
} t_fatom;
/* widget helper functions */