]> git.decadent.org.uk Git - ion3.git/blobdiff - ioncore/sizepolicy.h
Imported Upstream version 20090110
[ion3.git] / ioncore / sizepolicy.h
index 602652ded4ea3e0ae78e93b2a1afa5ea1bda5337..60076e71277a40d774f8062bb20b5c375d2c45cc 100644 (file)
@@ -1,12 +1,9 @@
 /*
  * ion/ioncore/sizepolicy.h
  *
- * Copyright (c) Tuomo Valkonen 1999-2007
+ * Copyright (c) Tuomo Valkonen 1999-2009
  *
- * Ion 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.1 of the License, or
- * (at your option) any later version.
+ * See the included file LICENSE for details.
  */
 
 #ifndef ION_IONCORE_SIZEPOLICY_H
@@ -43,6 +40,7 @@
 #define SIZEPOLICY_STRETCH_TOP    0x08
 #define SIZEPOLICY_STRETCH_BOTTOM 0x09
 #define SIZEPOLICY_UNCONSTRAINED  0x10
+#define SIZEPOLICY_VISIBILITY_CONSTRAINED  0x11
 
 #define SIZEPOLICY_GRAVITY_NORTHWEST (SIZEPOLICY_GRAVITY|SIZEPOLICY_VERT_TOP|SIZEPOLICY_HORIZ_LEFT)
 #define SIZEPOLICY_GRAVITY_NORTH     (SIZEPOLICY_GRAVITY|SIZEPOLICY_VERT_TOP|SIZEPOLICY_HORIZ_CENTER)
@@ -72,7 +70,7 @@ extern void sizepolicy(WSizePolicy *szplcy, WRegion *reg,
                        WFitParams *fp);
 
 
-bool string2sizepolicy(const char *szplcy, WSizePolicy *value);
-
+extern bool string2sizepolicy(const char *szplcy, WSizePolicy *value);
+extern const char *sizepolicy2string(WSizePolicy szplcy);
 
 #endif /* ION_IONCORE_SIZEPOLICY_H */