]> git.draconx.ca Git - aspectbin.git/blobdiff - aspectbin.h
Add functions to get the body/side children.
[aspectbin.git] / aspectbin.h
index bca5ba776ee80214b4b2dcbe4f6d5e68d8c1966b..5def388aa70997e0cd5c125f1a294913dba0c73a 100644 (file)
@@ -15,10 +15,13 @@ typedef struct AspectBin      AspectBin;
 typedef struct AspectBinClass AspectBinClass;
 
 struct AspectBin {
-       GtkBin bin;
+       GtkContainer parent;
 
-       GtkWidget *child;
-       gfloat ratio;
+       GtkWidget *body, *side;
+       gfloat     ratio;
+
+       gfloat     align;
+       gboolean   constrain;
 };
 
 struct AspectBinClass {
@@ -27,6 +30,9 @@ struct AspectBinClass {
 
 GType aspect_bin_get_type(void);
 GtkWidget *aspect_bin_new(void);
-void aspect_bin_set_body_widget(AspectBin *, GtkWidget *, gfloat);
+void aspect_bin_set_body(AspectBin *, GtkWidget *, gfloat);
+void aspect_bin_set_side(AspectBin *, GtkWidget *);
+GtkWidget *aspect_bin_get_body(AspectBin *abin);
+GtkWidget *aspect_bin_get_side(AspectBin *abin);
 
 #endif