summaryrefslogtreecommitdiff
path: root/gtk/gtkruler.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@gtk.org>1998-05-13 04:59:38 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-05-13 04:59:38 +0000
commit4283c9de4ff02e1e18aebb0dc6988d23bbd8c88c (patch)
treea64befac1200d7e18ea5ca671775a5cc12321e12 /gtk/gtkruler.h
parent43dfe74c56563d40451fe17c7e4c1bee78987829 (diff)
downloadgtk+-4283c9de4ff02e1e18aebb0dc6988d23bbd8c88c.tar.gz
A few more GPOINTER_TO_UINT fixes.
Wed May 13 00:53:52 1998 Owen Taylor <otaylor@gtk.org> * gtk/gtktypeutils.c gtk/gtksignal.c: A few more GPOINTER_TO_UINT fixes. * gtk/gtksignal.c: Include <string.h> for memset. Tue May 12 23:10:53 1998 Owen Taylor <otaylor@gtk.org> (Maximilian Bisani <bisani@kawo2.rwth-aachen.de>: gtk-bisani-980320-0) * gtk/gtkvruler.c gtk/gtkhruler.c gtk/gtkruler.h: Cleanups, comments and the ability to have rulers with a reversed direction.
Diffstat (limited to 'gtk/gtkruler.h')
-rw-r--r--gtk/gtkruler.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtkruler.h b/gtk/gtkruler.h
index 57062d9389..71a1994161 100644
--- a/gtk/gtkruler.h
+++ b/gtk/gtkruler.h
@@ -38,6 +38,9 @@ typedef struct _GtkRuler GtkRuler;
typedef struct _GtkRulerClass GtkRulerClass;
typedef struct _GtkRulerMetric GtkRulerMetric;
+/* All distances below are in 1/72nd's of an inch. (According to
+ * Adobe that's a point, but points are really 1/72.27 in.)
+ */
struct _GtkRuler
{
GtkWidget widget;
@@ -48,9 +51,13 @@ struct _GtkRuler
gint xsrc, ysrc;
gint slider_size;
+ /* The upper limit of the ruler (in points) */
gfloat lower;
+ /* The lower limit of the ruler */
gfloat upper;
+ /* The position of the mark on the ruler */
gfloat position;
+ /* The maximum size of the ruler */
gfloat max_size;
};
@@ -66,6 +73,8 @@ struct _GtkRulerMetric
{
gchar *metric_name;
gchar *abbrev;
+ /* This should be points_per_unit. This is the size of the unit
+ * in 1/72nd's of an inch and has nothing to do with screen pixels */
gfloat pixels_per_unit;
gfloat ruler_scale[10];
gint subdivide[5]; /* five possible modes of subdivision */