X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fsizepolicy.h;h=49e89ea7756d439f25d603206d90f7f59b5ffa02;hb=29aae1975d46f66b97a2b873f1875eded8c6fbc3;hp=602652ded4ea3e0ae78e93b2a1afa5ea1bda5337;hpb=803afbc1cd633f6c025bcd9537e9b7e9aedadd0d;p=ion3.git diff --git a/ioncore/sizepolicy.h b/ioncore/sizepolicy.h index 602652d..49e89ea 100644 --- a/ioncore/sizepolicy.h +++ b/ioncore/sizepolicy.h @@ -1,12 +1,9 @@ /* * ion/ioncore/sizepolicy.h * - * Copyright (c) Tuomo Valkonen 1999-2007. + * Copyright (c) Tuomo Valkonen 1999-2008. * - * 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 */