X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=ioncore%2Fsizepolicy.h;h=60076e71277a40d774f8062bb20b5c375d2c45cc;hp=0984737e2bf6fd41c32c9afe3c3ab9b284d78779;hb=HEAD;hpb=8366314611bf30a0f31d25bf5f5023186fa87692 diff --git a/ioncore/sizepolicy.h b/ioncore/sizepolicy.h index 0984737..60076e7 100644 --- a/ioncore/sizepolicy.h +++ b/ioncore/sizepolicy.h @@ -1,12 +1,9 @@ /* * ion/ioncore/sizepolicy.h * - * Copyright (c) Tuomo Valkonen 1999-2006. + * 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 */