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

import org.trinitydesktop.qt.Qt;

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

	public TQSimpleRichText(String text, TQFont fnt, String context, TQStyleSheet sheet) {
		newTQSimpleRichText(text,fnt,context,sheet);
	}
	private native void newTQSimpleRichText(String text, TQFont fnt, String context, TQStyleSheet sheet);
	public TQSimpleRichText(String text, TQFont fnt, String context) {
		newTQSimpleRichText(text,fnt,context);
	}
	private native void newTQSimpleRichText(String text, TQFont fnt, String context);
	public TQSimpleRichText(String text, TQFont fnt) {
		newTQSimpleRichText(text,fnt);
	}
	private native void newTQSimpleRichText(String text, TQFont fnt);
	public TQSimpleRichText(String text, TQFont fnt, String context, TQStyleSheet sheet, TQMimeSourceFactory factory, int pageBreak, TQColor linkColor, boolean linkUnderline) {
		newTQSimpleRichText(text,fnt,context,sheet,factory,pageBreak,linkColor,linkUnderline);
	}
	private native void newTQSimpleRichText(String text, TQFont fnt, String context, TQStyleSheet sheet, TQMimeSourceFactory factory, int pageBreak, TQColor linkColor, boolean linkUnderline);
	public TQSimpleRichText(String text, TQFont fnt, String context, TQStyleSheet sheet, TQMimeSourceFactory factory, int pageBreak, TQColor linkColor) {
		newTQSimpleRichText(text,fnt,context,sheet,factory,pageBreak,linkColor);
	}
	private native void newTQSimpleRichText(String text, TQFont fnt, String context, TQStyleSheet sheet, TQMimeSourceFactory factory, int pageBreak, TQColor linkColor);
	public TQSimpleRichText(String text, TQFont fnt, String context, TQStyleSheet sheet, TQMimeSourceFactory factory, int pageBreak) {
		newTQSimpleRichText(text,fnt,context,sheet,factory,pageBreak);
	}
	private native void newTQSimpleRichText(String text, TQFont fnt, String context, TQStyleSheet sheet, TQMimeSourceFactory factory, int pageBreak);
	public TQSimpleRichText(String text, TQFont fnt, String context, TQStyleSheet sheet, TQMimeSourceFactory factory) {
		newTQSimpleRichText(text,fnt,context,sheet,factory);
	}
	private native void newTQSimpleRichText(String text, TQFont fnt, String context, TQStyleSheet sheet, TQMimeSourceFactory factory);
	public native void setWidth(int arg1);
	public native void setWidth(TQPainter arg1, int arg2);
	public native void setDefaultFont(TQFont f);
	public native int width();
	public native int widthUsed();
	public native int height();
	public native void adjustSize();
	public native void draw(TQPainter p, int x, int y, TQRect clipRect, TQColorGroup cg, TQBrush paper);
	public native void draw(TQPainter p, int x, int y, TQRect clipRect, TQColorGroup cg);
	public native void draw(TQPainter p, int x, int y, TQRegion clipRegion, TQColorGroup cg, TQBrush paper);
	public native void draw(TQPainter p, int x, int y, TQRegion clipRegion, TQColorGroup cg);
	public native String context();
	public native String anchorAt(TQPoint pos);
	public native boolean inText(TQPoint pos);
	/** 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();
}
