aboutsummaryrefslogtreecommitdiff
path: root/shared/tkwidgets.h
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-11-22 05:57:45 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-11-22 05:57:45 +0000
commitdc52874be8ee2b471502809380354249b251b58a (patch)
tree72702ba59d8654ef17a2711d12604c0c8c616218 /shared/tkwidgets.h
parente1e0533814d29fea5d0ba318df034a9e82ec6df3 (diff)
- removed xscrollcommand and yscrollcommand from supported options since
currently they use generated names, i.e. canvas_id, etc. Perhaps it's possible to support user override of these, but it probably would not be simple - renamed "inlets" functions to "iolets" since they handle outlets too - fixed bug in save logic that made the options get appended everytime it was saved: I needed to binbuf_clear() first. - created tkwidgets_restore_options() and implemented it in [text]. It turned out to be quite easy since Tk's "canvas configure" can take the whole slew of options all at once. svn path=/trunk/externals/tkwidgets/; revision=9024
Diffstat (limited to 'shared/tkwidgets.h')
-rw-r--r--shared/tkwidgets.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/shared/tkwidgets.h b/shared/tkwidgets.h
index 999e2ac..171b3c7 100644
--- a/shared/tkwidgets.h
+++ b/shared/tkwidgets.h
@@ -71,6 +71,8 @@ void tkwidgets_setcallbackname(void *x, char *widget_name);
/* handle options */
void tkwidgets_store_options(t_symbol *receive_name, t_symbol *tcl_namespace,
t_symbol *widget_id, int argc, char **argv);
+void tkwidgets_restore_options(t_symbol *receive_name, t_symbol *tcl_namespace,
+ t_symbol *widget_id, t_binbuf *options_binbuf);
void tkwidgets_query_options(t_symbol *receive_name, t_symbol *widget_id,
int argc, char** argv);
@@ -89,11 +91,11 @@ t_symbol* tkwidgets_gen_all_tag(t_object *x);
// TODO perhaps I should try to use glist_drawiofor() from g_text.c
-void tkwidgets_draw_inlets(t_object *x, t_glist *glist, t_symbol *canvas_id,
+void tkwidgets_draw_iolets(t_object *x, t_glist *glist, t_symbol *canvas_id,
t_symbol *iolets_tag, t_symbol *all_tag,
int width, int height,
int total_inlets, int total_outlets);
-void tkwidgets_erase_inlets(t_symbol* canvas_id, t_symbol* iolets_tag);
+void tkwidgets_erase_iolets(t_symbol* canvas_id, t_symbol* iolets_tag);
void tkwidgets_draw_handle(); // TODO draw resize handle when selected in editmode
void tkwidgets_draw_resize_window(); // TODO draw the resize window while resizing