2 * ion/ioncore/sizehint.h
4 * Copyright (c) Tuomo Valkonen 1999-2008.
6 * See the included file LICENSE for details.
9 #ifndef ION_IONCORE_SIZEHINT_H
10 #define ION_IONCORE_SIZEHINT_H
15 INTRSTRUCT(WSizeHints);
17 DECLSTRUCT(WSizeHints){
25 int min_width, min_height;
26 int max_width, max_height;
27 int width_inc, height_inc;
31 } min_aspect, max_aspect;
32 int base_width, base_height;
35 extern void xsizehints_to_sizehints(const XSizeHints *xh,
38 extern void xsizehints_sanity_adjust(XSizeHints *hints);
40 extern void sizehints_clear(WSizeHints *hints);
42 extern void sizehints_adjust_for(WSizeHints *hints, WRegion *reg);
44 extern void sizehints_correct(const WSizeHints *hints, int *wp, int *hp,
45 bool min, bool override_no_constrain);
47 extern int xgravity_deltax(int gravity, int left, int right);
48 extern int xgravity_deltay(int gravity, int top, int bottom);
49 extern void xgravity_translate(int gravity, WRegion *reg, WRectangle *geom);
51 #endif /* ION_IONCORE_SIZEHINT_H */