Added "min-extent" and "default-size" properties.
[pspp] / lib / gtksheet / psppire-axis.h
index 8c362d6e11036b31f784b1d21bda348b209edf03..ef4b2908ab0f99b35954d5ebb3e879102c745bef 100644 (file)
@@ -41,24 +41,27 @@ G_BEGIN_DECLS
 typedef struct _PsppireAxis       PsppireAxis;
 typedef struct _PsppireAxisClass PsppireAxisClass;
 
+struct pool;
 
 struct _PsppireAxis
 {
   GObject             parent;
-  gint width ;
 
   struct tower tower;
+  struct pool *pool;
+
+  glong min_extent;
+  gint default_size;
 };
 
 struct _PsppireAxisClass
 {
   GObjectClass parent_class;
-
 };
 
 GType          psppire_axis_get_type (void);
 
-PsppireAxis*   psppire_axis_new (gint w);
+PsppireAxis*   psppire_axis_new (void);
 
 \f
 /* Interface between sheet and axis */
@@ -75,7 +78,16 @@ gint psppire_axis_get_unit_at_pixel (PsppireAxis *a, glong pixel);
 
 /* Interface between axis and model */
 
-void psppire_axis_append (PsppireAxis *a, gint width);
+void psppire_axis_clear (PsppireAxis *a);
+
+void psppire_axis_append (PsppireAxis *a, gint size);
+
+void psppire_axis_insert (PsppireAxis *a, gint size, gint posn);
+
+void psppire_axis_remove (PsppireAxis *a, gint posn);
+
+void psppire_axis_resize_unit (PsppireAxis *a, gint size, gint posn);
+
 
 G_END_DECLS