//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.qt.Qt;

public class QSizePolicy implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected QSizePolicy(Class dummy){}

	public static final int HSize = 6;
	public static final int HMask = 0x3f;
	public static final int VMask = HMask<<HSize;
	public static final int MayGrow = 1;
	public static final int ExpMask = 2;
	public static final int MayShrink = 4;

	public static final int Fixed = 0;
	public static final int Minimum = MayGrow;
	public static final int Maximum = MayShrink;
	public static final int Preferred = MayGrow|MayShrink;
	public static final int MinimumExpanding = MayGrow|ExpMask;
	public static final int Expanding = MayGrow|MayShrink|ExpMask;
	public static final int Ignored = ExpMask;

	public static final int NoDirection = 0;
	public static final int Horizontally = 1;
	public static final int Vertically = 2;
	public static final int Horizontal = Horizontally;
	public static final int Vertical = Vertically;
	public static final int BothDirections = Horizontally|Vertically;

	public QSizePolicy() {
		newQSizePolicy();
	}
	private native void newQSizePolicy();
	public QSizePolicy(int hor, int ver, boolean hfw) {
		newQSizePolicy(hor,ver,hfw);
	}
	private native void newQSizePolicy(int hor, int ver, boolean hfw);
	public QSizePolicy(int hor, int ver) {
		newQSizePolicy(hor,ver);
	}
	private native void newQSizePolicy(int hor, int ver);
	public QSizePolicy(int hor, int ver, short hors, short vers, boolean hfw) {
		newQSizePolicy(hor,ver,hors,vers,hfw);
	}
	private native void newQSizePolicy(int hor, int ver, short hors, short vers, boolean hfw);
	public QSizePolicy(int hor, int ver, short hors, short vers) {
		newQSizePolicy(hor,ver,hors,vers);
	}
	private native void newQSizePolicy(int hor, int ver, short hors, short vers);
	public native int horData();
	public native int verData();
	public native boolean mayShrinkHorizontally();
	public native boolean mayShrinkVertically();
	public native boolean mayGrowHorizontally();
	public native boolean mayGrowVertically();
	public native int expanding();
	public native void setHorData(int d);
	public native void setVerData(int d);
	public native void setHeightForWidth(boolean b);
	public native boolean hasHeightForWidth();
	public native boolean op_equals(QSizePolicy s);
	public native boolean op_not_equals(QSizePolicy s);
	public native int horStretch();
	public native int verStretch();
	public native void setHorStretch(short sf);
	public native void setVerStretch(short sf);
	public native void transpose();
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}
