Logo Search packages:      
Sourcecode: ion3 version File versions  Download package


 * ion/ioncore/sizehint.h
 * Copyright (c) Tuomo Valkonen 1999-2007. 
 * 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.


#include "common.h"
#include "region.h"


    uint min_set:1;
    uint max_set:1;
    uint inc_set:1;
    uint base_set:1;
    uint aspect_set:1;
    uint no_constrain:1;
    int min_width, min_height;
    int max_width, max_height;
    int width_inc, height_inc;
    struct {
        int x;
        int y;
    } min_aspect, max_aspect;
    int base_width, base_height;

extern void xsizehints_to_sizehints(const XSizeHints *xh,
                                    WSizeHints *hints);

extern void xsizehints_sanity_adjust(XSizeHints *hints);

extern void sizehints_clear(WSizeHints *hints);

extern void sizehints_adjust_for(WSizeHints *hints, WRegion *reg);

extern void sizehints_correct(const WSizeHints *hints, int *wp, int *hp, 
                              bool min, bool override_no_constrain);

extern int xgravity_deltax(int gravity, int left, int right);
extern int xgravity_deltay(int gravity, int top, int bottom);
extern void xgravity_translate(int gravity, WRegion *reg, WRectangle *geom);


Generated by  Doxygen 1.6.0   Back to index