/***************************************************************************
                            QFontMetrics.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.qt;

import java.util.*;
import java.lang.Error;

public class  QFontMetrics implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected QFontMetrics(Class dummy){}

	private native void newQFontMetrics( QFont arg1);
	public QFontMetrics( QFont arg1) {
		newQFontMetrics( arg1);
	}
	private native void newQFontMetrics( QFontMetrics arg1);
	public QFontMetrics( QFontMetrics arg1) {
		newQFontMetrics( arg1);
	}
	protected native void finalize() throws InternalError;
	public native int ascent();
	public native int descent();
	public native int height();
	public native int leading();
	public native int lineSpacing();
	public native int minLeftBearing();
	public native int minRightBearing();
	public native int maxWidth();
	public native boolean inFont( char arg1);
	public native int leftBearing( char arg1);
	public native int rightBearing( char arg1);
	public native int width( String arg1, int len);
	public native int width( String arg1);
	public native int width( char arg1);
//	public native int width( char c);
	public native int charWidth( String str, int pos);
	public native QRect boundingRect( String arg1, int len);
	public native QRect boundingRect( char arg1);
//	public native QRect boundingRect( int x, int y, int w, int h, int flags, String str, int len, int tabstops, int[] tabarray, QTextParag intern);
//	public native QSize size( int flags, String str, int len, int tabstops, int[] tabarray, QTextParag intern);
	public native int underlinePos();
	public native int strikeOutPos();
	public native int lineWidth();
}
