aboutsummaryrefslogtreecommitdiff
path: root/generic/WidgetInfo.h
diff options
context:
space:
mode:
authorlecoanet2003-10-05 13:36:04 +0000
committerlecoanet2003-10-05 13:36:04 +0000
commitd43ce7da99f48c08bb4728ecc1572490d0a072ba (patch)
tree921530df102dd0d18c876ecd16c36b87375ec61b /generic/WidgetInfo.h
parent0d6fc8f05e6f542ac1ca99f64e260a6a566df0c7 (diff)
downloadtkzinc-d43ce7da99f48c08bb4728ecc1572490d0a072ba.zip
tkzinc-d43ce7da99f48c08bb4728ecc1572490d0a072ba.tar.gz
tkzinc-d43ce7da99f48c08bb4728ecc1572490d0a072ba.tar.bz2
tkzinc-d43ce7da99f48c08bb4728ecc1572490d0a072ba.tar.xz
Changed scrollbar support code so that it can work
with tcl and perl-tk.
Diffstat (limited to 'generic/WidgetInfo.h')
-rw-r--r--generic/WidgetInfo.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/generic/WidgetInfo.h b/generic/WidgetInfo.h
index 7f1fa35..5d3cccf 100644
--- a/generic/WidgetInfo.h
+++ b/generic/WidgetInfo.h
@@ -247,9 +247,14 @@ typedef struct _ZnWInfo {
/* Scrollbar management */
ZnPoint origin; /* Coordinate mapped to the upper left corner
* of the zinc window. */
+#ifdef PTK
+ LangCallback *x_scroll_cmd;
+ LangCallback *y_scroll_cmd;
+#else
char *x_scroll_cmd; /* Command prefixes for communicating with */
char *y_scroll_cmd; /* scrollbars. NULL means no scrollbar.
* Malloc'ed */
+#endif
int x_scroll_incr; /* If >0, defines a grid for horiz/vert */
int y_scroll_incr; /* scrolling. This is the size of the "unit",
* and the left edge of the screen will always
@@ -260,8 +265,12 @@ typedef struct _ZnWInfo {
int scroll_yc; /* scrollbars). */
ZnBool confine; /* When true, it is not possible to scroll the
* viewing area past the scroll region. */
+#ifdef PTK
+ Arg region;
+#else
char *region; /* Scroll region option string source of the
* scroll_region above. */
+#endif
/* Perf measurement variables. */
#ifndef _WIN32
ZnChrono this_draw_chrono;