/***************************************************************************
                            kde_KWordWrap.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, 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.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "kde_KWordWrap.h"
}

#include <kwordwrap.h>

qt_QRect* kde_KWordWrap_boundingRect( kde_KWordWrap* instPointer){
	QRect _r= ((KWordWrap*)instPointer)->boundingRect();
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
qt_QString * kde_KWordWrap_wrappedString( kde_KWordWrap* instPointer){
	return (qt_QString *)new QString(((KWordWrap*)instPointer)->wrappedString());
}
qt_QString * kde_KWordWrap_truncatedString( kde_KWordWrap* instPointer,int dots){
	return (qt_QString *)new QString(((KWordWrap*)instPointer)->truncatedString((bool)dots));
}
void kde_KWordWrap_drawText( kde_KWordWrap* instPointer,qt_QPainter * painter, int x, int y, int flags){
	((KWordWrap*)instPointer)->drawText((QPainter*)painter, (int)x, (int)y, (int)flags);
	return;
}
kde_KWordWrap* kde_KWordWrap_formatText( qt_QFontMetrics * fm, qt_QRect* r, int flags, qt_QString * str, int len){
	return (kde_KWordWrap*) KWordWrap::formatText((QFontMetrics&)* (QFontMetrics*)fm, (QRect&)* (QRect*)r, (int)flags, (QString&)* (QString*)str, (int)len);
}
