]> git.draconx.ca Git - aspectbin.git/blobdiff - aspectbin.h
Add a short readme.
[aspectbin.git] / aspectbin.h
index 65113f7182e05e24024ab5a1902a7fea36753125..7137e962669b8fdea5c3a49e4dd32facb337c125 100644 (file)
@@ -1,3 +1,22 @@
+/* AspectBin - A GTK+ container for packing with consrained aspect ratio.
+ * Copyright (C) 2009 Nick Bowler
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
 #ifndef ASPECTBIN_H_
 #define ASPECTBIN_H_
 
@@ -18,9 +37,9 @@ struct AspectBin {
        GtkContainer parent;
 
        GtkWidget *body, *side;
+       gfloat     body_align, side_align;
        gfloat     ratio;
 
-       gfloat     align;
        gboolean   constrain;
        gboolean   fill;
 };