/***************************************************************************
                            qt_QRect.h -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 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 QT_QRECT
#define QT_QRECT

#include <qtc/qtc_types.h>

/**

* $Id: qt_QRect.h,v 1.2 2001/11/21 23:26:17 rdale Exp $
*
* Definition of QRect class
*
* Created : 931028
*
* Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
*
* This file is part of the kernel module of the Qt GUI Toolkit.
*
* This file may be distributed under the terms of the Q Public License
* as defined by Trolltech AS of Norway and appearing in the file
* LICENSE.QPL included in the packaging of this file.
*
* This file may be distributed and/or modified under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation and appearing in the file LICENSE.GPL included in the
* packaging of this file.
*
* Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
* licenses may use this file in accordance with the Qt Commercial License
* Agreement provided with the Software.
*
* This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
* WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
*   information about Qt Commercial License Agreements.
* See http://www.trolltech.com/qpl/ for QPL licensing information.
* See http://www.trolltech.com/gpl/ for GPL licensing information.
*
* Contact info@trolltech.com if any conditions of this licensing are
* not clear to you.
*
********************************************************************
 @short 
* $Id:  qt/qrect.
*/
qt_QRect * qt_new_QRect();
qt_QRect * qt_new_QRect1(qt_QPoint* topleft, qt_QPoint* bottomright);
qt_QRect * qt_new_QRect2(qt_QPoint* topleft, qt_QSize * size);
qt_QRect * qt_new_QRect3(int left, int top, int width, int height);
int qt_QRect_isNull(qt_QRect* instPointer);
int qt_QRect_isEmpty(qt_QRect* instPointer);
int qt_QRect_isValid(qt_QRect* instPointer);
qt_QRect* qt_QRect_normalize(qt_QRect* instPointer);
int qt_QRect_left(qt_QRect* instPointer);
int qt_QRect_top(qt_QRect* instPointer);
int qt_QRect_right(qt_QRect* instPointer);
int qt_QRect_bottom(qt_QRect* instPointer);
short qt_QRect_rLeft(qt_QRect* instPointer);
short qt_QRect_rTop(qt_QRect* instPointer);
short qt_QRect_rRight(qt_QRect* instPointer);
short qt_QRect_rBottom(qt_QRect* instPointer);
int qt_QRect_x(qt_QRect* instPointer);
int qt_QRect_y(qt_QRect* instPointer);
void qt_QRect_setLeft(qt_QRect* instPointer,int pos);
void qt_QRect_setTop(qt_QRect* instPointer,int pos);
void qt_QRect_setRight(qt_QRect* instPointer,int pos);
void qt_QRect_setBottom(qt_QRect* instPointer,int pos);
void qt_QRect_setX(qt_QRect* instPointer,int x);
void qt_QRect_setY(qt_QRect* instPointer,int y);
qt_QPoint* qt_QRect_topLeft(qt_QRect* instPointer);
qt_QPoint* qt_QRect_bottomRight(qt_QRect* instPointer);
qt_QPoint* qt_QRect_topRight(qt_QRect* instPointer);
qt_QPoint* qt_QRect_bottomLeft(qt_QRect* instPointer);
qt_QPoint* qt_QRect_center(qt_QRect* instPointer);
void qt_QRect_rect(qt_QRect* instPointer,int* x, int* y, int* w, int* h);
void qt_QRect_coords(qt_QRect* instPointer,int* x1, int* y1, int* x2, int* y2);
void qt_QRect_moveTopLeft(qt_QRect* instPointer,qt_QPoint* p);
void qt_QRect_moveBottomRight(qt_QRect* instPointer,qt_QPoint* p);
void qt_QRect_moveTopRight(qt_QRect* instPointer,qt_QPoint* p);
void qt_QRect_moveBottomLeft(qt_QRect* instPointer,qt_QPoint* p);
void qt_QRect_moveCenter(qt_QRect* instPointer,qt_QPoint* p);
void qt_QRect_moveBy(qt_QRect* instPointer,int dx, int dy);
void qt_QRect_setRect(qt_QRect* instPointer,int x, int y, int w, int h);
void qt_QRect_setCoords(qt_QRect* instPointer,int x1, int y1, int x2, int y2);
void qt_QRect_addCoords(qt_QRect* instPointer,int x1, int y1, int x2, int y2);
qt_QSize * qt_QRect_size(qt_QRect* instPointer);
int qt_QRect_width(qt_QRect* instPointer);
int qt_QRect_height(qt_QRect* instPointer);
void qt_QRect_setWidth(qt_QRect* instPointer,int w);
void qt_QRect_setHeight(qt_QRect* instPointer,int h);
void qt_QRect_setSize(qt_QRect* instPointer,qt_QSize * s);
int qt_QRect_contains(qt_QRect* instPointer,qt_QPoint* p, int proper);
int qt_QRect_contains1(qt_QRect* instPointer,int x, int y, int proper);
int qt_QRect_contains2(qt_QRect* instPointer,qt_QRect* r, int proper);
qt_QRect* qt_QRect_unite(qt_QRect* instPointer,qt_QRect* r);
qt_QRect* qt_QRect_intersect(qt_QRect* instPointer,qt_QRect* r);
int qt_QRect_intersects(qt_QRect* instPointer,qt_QRect* r);

#endif
