/***************************************************************************
                            QFontMetrics.h -  description
                             -------------------
    begin                : Wed Nov 21 12:08:37 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 12:08:37 2001, using kalyptus 0.9.
 ***************************************************************************/

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

#ifndef QFONTMETRICS_H
#define QFONTMETRICS_H

#include <Foundation/NSObject.h>
#include <Foundation/NSString.h>
#include <qtobjc/QtSupport.h>
#include <qtobjc/QFont.h>
#include <qtobjc/QRect.h>
#include <qtobjc/QSize.h>

@class QTextParag; 

@interface  QFontMetrics : NSObject <QtSupport>
{
@private
	void * _qt;
	BOOL  _allocatedInObjcWorld;
}
- initWithFont: (QFont *)arg1;
- copyWithZone: (NSZone *) zone;
- (void) dealloc;
- (int) ascent;
- (int) descent;
- (int) height;
- (int) leading;
- (int) lineSpacing;
- (int) minLeftBearing;
- (int) minRightBearing;
- (int) maxWidth;
- (BOOL) inFont: (unichar *)arg1;
- (int) leftBearing: (unichar *)arg1;
- (int) rightBearing: (unichar *)arg1;
- (int) width: (NSString *)arg1 len: (int)len;
- (int) width: (NSString *)arg1 ;
- (int) unicharWidth: (unichar *)arg1;
- (int) charWidth: (char)c;
- (int) charWidth: (NSString *)str pos: (int)pos;
- (QRect*) boundingRect: (NSString *)arg1 len: (int)len;
- (QRect*) boundingRect: (NSString *)arg1 ;
- (QRect*) unicharBoundingRect: (unichar *)arg1;
//- (QRect*) boundingRect: (int)x y: (int)y w: (int)w h: (int)h flags: (int)flags str: (NSString *)str len: (int)len tabstops: (int)tabstops tabarray: (int*)tabarray intern: (QTextParag**)intern;
//- (QRect*) boundingRect: (int)x y: (int)y w: (int)w h: (int)h flags: (int)flags str: (NSString *)str ;
//- (QSize*) size: (int)flags str: (NSString *)str len: (int)len tabstops: (int)tabstops tabarray: (int*)tabarray intern: (QTextParag**)intern;
//- (QSize*) size: (int)flags str: (NSString *)str ;
- (int) underlinePos;
- (int) strikeOutPos;
- (int) lineWidth;
@end

#endif
