// This is the SIP interface definition for QFrame.
//
// Copyright (c) 2007
// 	Riverbank Computing Limited <info@riverbankcomputing.co.uk>
// 
// This file is part of PyQt.
// 
// This copy of PyQt 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, or (at your option) any later
// version.
// 
// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
// details.
// 
// You should have received a copy of the GNU General Public License along with
// PyQt; see the file LICENSE.  If not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


%ExportedDoc
<Sect2><Title>QFrame</Title>
<Para>
<Literal>QFrame</Literal> is fully implemented.
</Para>
</Sect2>
%End


class QFrame : QWidget
{
%TypeHeaderCode
#include <qframe.h>
%End

public:
%If (- Qt_3_0_0)
	QFrame(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0,
	       bool = 1);
%End
%If (Qt_3_0_0 -)
	QFrame(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
%End

	int frameStyle() const;
%If (- Qt_2_00)
	void setFrameStyle(int);
%End
%If (Qt_2_00 -)
	virtual void setFrameStyle(int);
%End

	int frameWidth() const;
	QRect contentsRect() const;

%If (- Qt_2_00)
	bool lineShapesOk() const;
%End

	QSize sizeHint() const;
%If (Qt_2_00 - Qt_3_0_0)
	QSizePolicy sizePolicy() const;
%End

%If (- Qt_2_00)
	enum {
		NoFrame,
		Box,
		Panel,
		WinPanel,
		HLine,
		VLine,
		MShape,
		Plain,
		Raised,
		Sunken,
		MShadow
	};
%End
%If (Qt_2_00 -)
	enum Shape {
		NoFrame,
		Box,
		Panel,
		WinPanel,
		HLine,
		VLine,
		StyledPanel,
		PopupPanel,
%If (Qt_3_0_0 -)
		MenuBarPanel,
		ToolBarPanel,
%End
%If (Qt_3_0_1 -)
		LineEditPanel,
		TabWidgetPanel,
%End
%If (Qt_3_1_0 -)
		GroupBoxPanel,
%End
		MShape
	};
%End

%If (Qt_2_00 -)
	enum Shadow {
		Plain,
		Raised,
		Sunken,
		MShadow
	};
%End

%If (- Qt_2_00)
	int frameShape() const;
%End
%If (Qt_2_00 -)
	Shape frameShape() const;
	void setFrameShape(Shape);
%End
%If (- Qt_2_00)
	int frameShadow() const;
%End
%If (Qt_2_00 -)
	Shadow frameShadow() const;
	void setFrameShadow(Shadow);
%End

	int lineWidth() const;
%If (- Qt_2_00)
	void setLineWidth(int);
%End
%If (Qt_2_00 -)
	virtual void setLineWidth(int);
%End

	int margin() const;
%If (- Qt_2_00)
	void setMargin(int);
%End
%If (Qt_2_00 -)
	virtual void setMargin(int);
%End

	int midLineWidth() const;
%If (- Qt_2_00)
	void setMidLineWidth(int);
%End
%If (Qt_2_00 -)
	virtual void setMidLineWidth(int);
%End

	QRect frameRect() const;
%If (Qt_2_00 -)
	virtual void setFrameRect(const QRect &);
%End

protected:
%If (- Qt_2_00)
	void setFrameRect(const QRect &);
%End
	void paintEvent(QPaintEvent *);
	void resizeEvent(QResizeEvent *);
	virtual void drawFrame(QPainter *);
	virtual void drawContents(QPainter *);
	virtual void frameChanged();
%If (Qt_2_00 - Qt_3_0_0)
	void updateMask();
	virtual void drawFrameMask(QPainter *);
	virtual void drawContentsMask(QPainter *);
%End
%If (Qt_3_1_0 -)
	void styleChange(QStyle &);
%End

private:
	QFrame(const QFrame &);
};
