/***************************************************************************
                            QFrame.m -  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.                       *
 *                                                                         *
 ***************************************************************************/

#include <qtc/qt_QString.h>
#include <qtc/qt_QCString.h>
#include <qtc/qt_QFrame.h>
#include <qtobjc/QFrame.h>
#include <qtobjc/QRect.h>

#include <qtobjc/QPainter.h>

@implementation  QFrame


- initWithWidget: (QWidget *)parent name: (NSString *)name f: (int)f
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QFrame((qt_QWidget *) [parent qt], (char*) [name cString], (int)f)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- init
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QFrame(0, 0, 0)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- (int) frameStyle
{
	return (int) qt_QFrame_frameStyle((qt_QFrame *)[self qt]);
}

- setFrameStyle: (int)arg1
{
	qt_QFrame_setFrameStyle((qt_QFrame *)[self qt], (int)arg1);
	return self;
}

- (int) frameWidth
{
	return (int) qt_QFrame_frameWidth((qt_QFrame *)[self qt]);
}

- (QRect*) contentsRect
{
	return (QRect*) [QtSupport objectForQtKey: qt_QFrame_contentsRect((qt_QFrame *)[self qt]) withClass: [QRect class] allocatedInObjcWorld: YES];
}

- (BOOL) lineShapesOk
{
	return (BOOL) qt_QFrame_lineShapesOk((qt_QFrame *)[self qt]);
}

- (QSize*) sizeHint
{
	return (QSize*) [QtSupport objectForQtKey: qt_QFrame_sizeHint((qt_QFrame *)[self qt]) withClass: [QSize class] allocatedInObjcWorld: YES];
}

- (int) frameShape
{
	return (int) qt_QFrame_frameShape((qt_QFrame *)[self qt]);
}

- setFrameShape: (int)arg1
{
	qt_QFrame_setFrameShape((qt_QFrame *)[self qt], (int)arg1);
	return self;
}

- (int) frameShadow
{
	return (int) qt_QFrame_frameShadow((qt_QFrame *)[self qt]);
}

- setFrameShadow: (int)arg1
{
	qt_QFrame_setFrameShadow((qt_QFrame *)[self qt], (int)arg1);
	return self;
}

- (int) lineWidth
{
	return (int) qt_QFrame_lineWidth((qt_QFrame *)[self qt]);
}

- setLineWidth: (int)arg1
{
	qt_QFrame_setLineWidth((qt_QFrame *)[self qt], (int)arg1);
	return self;
}

- (int) margin
{
	return (int) qt_QFrame_margin((qt_QFrame *)[self qt]);
}

- setMargin: (int)arg1
{
	qt_QFrame_setMargin((qt_QFrame *)[self qt], (int)arg1);
	return self;
}

- (int) midLineWidth
{
	return (int) qt_QFrame_midLineWidth((qt_QFrame *)[self qt]);
}

- setMidLineWidth: (int)arg1
{
	qt_QFrame_setMidLineWidth((qt_QFrame *)[self qt], (int)arg1);
	return self;
}

- (QRect*) frameRect
{
	return (QRect*) [QtSupport objectForQtKey: qt_QFrame_frameRect((qt_QFrame *)[self qt]) withClass: [QRect class] allocatedInObjcWorld: YES];
}

- setFrameRect: (QRect*)arg1
{
	qt_QFrame_setFrameRect((qt_QFrame *)[self qt], (qt_QRect*) [arg1 qt]);
	return self;
}

- drawFrame: (QPainter *)arg1
{
	qt_QFrame_drawFrame((qt_QFrame *)[self qt], (qt_QPainter *) [arg1 qt]);
	return self;
}

- drawContents: (QPainter *)arg1
{
	qt_QFrame_drawContents((qt_QFrame *)[self qt], (qt_QPainter *) [arg1 qt]);
	return self;
}

- frameChanged
{
	qt_QFrame_frameChanged((qt_QFrame *)[self qt]);
	return self;
}

+ (int) NoFrame
{
	return (int) QFRAME_NoFrame;
}

+ (int) Box
{
	return (int) QFRAME_Box;
}

+ (int) Panel
{
	return (int) QFRAME_Panel;
}

+ (int) WinPanel
{
	return (int) QFRAME_WinPanel;
}

+ (int) HLine
{
	return (int) QFRAME_HLine;
}

+ (int) VLine
{
	return (int) QFRAME_VLine;
}

+ (int) StyledPanel
{
	return (int) QFRAME_StyledPanel;
}

+ (int) PopupPanel
{
	return (int) QFRAME_PopupPanel;
}

+ (int) MenuBarPanel
{
	return (int) QFRAME_MenuBarPanel;
}

+ (int) ToolBarPanel
{
	return (int) QFRAME_ToolBarPanel;
}

+ (int) MShape
{
	return (int) QFRAME_MShape;
}

+ (int) Plain
{
	return (int) QFRAME_Plain;
}

+ (int) Raised
{
	return (int) QFRAME_Raised;
}

+ (int) Sunken
{
	return (int) QFRAME_Sunken;
}

+ (int) MShadow
{
	return (int) QFRAME_MShadow;
}

@end
