1// qgraphicslayoutitem.sip generated by MetaSIP 2// 3// This file is part of the QtWidgets Python extension module. 4// 5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com> 6// 7// This file is part of PyQt5. 8// 9// This file may be used under the terms of the GNU General Public License 10// version 3.0 as published by the Free Software Foundation and appearing in 11// the file LICENSE included in the packaging of this file. Please review the 12// following information to ensure the GNU General Public License version 3.0 13// requirements will be met: http://www.gnu.org/copyleft/gpl.html. 14// 15// If you do not wish to use this file under the terms of the GPL version 3.0 16// then you may purchase a commercial license. For more information contact 17// info@riverbankcomputing.com. 18// 19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21 22 23class QGraphicsLayoutItem /Supertype=sip.wrapper/ 24{ 25%TypeHeaderCode 26#include <qgraphicslayoutitem.h> 27%End 28 29public: 30 QGraphicsLayoutItem(QGraphicsLayoutItem *parent /TransferThis/ = 0, bool isLayout = false); 31 virtual ~QGraphicsLayoutItem(); 32 void setSizePolicy(const QSizePolicy &policy); 33 void setSizePolicy(QSizePolicy::Policy hPolicy, QSizePolicy::Policy vPolicy, QSizePolicy::ControlType controlType = QSizePolicy::DefaultType); 34 QSizePolicy sizePolicy() const; 35 void setMinimumSize(const QSizeF &size); 36 QSizeF minimumSize() const; 37 void setMinimumWidth(qreal width); 38 void setMinimumHeight(qreal height); 39 void setPreferredSize(const QSizeF &size); 40 QSizeF preferredSize() const; 41 void setPreferredWidth(qreal width); 42 void setPreferredHeight(qreal height); 43 void setMaximumSize(const QSizeF &size); 44 QSizeF maximumSize() const; 45 void setMaximumWidth(qreal width); 46 void setMaximumHeight(qreal height); 47 virtual void setGeometry(const QRectF &rect); 48 QRectF geometry() const; 49 virtual void getContentsMargins(qreal *left, qreal *top, qreal *right, qreal *bottom) const; 50 QRectF contentsRect() const; 51 QSizeF effectiveSizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const; 52 virtual void updateGeometry(); 53 QGraphicsLayoutItem *parentLayoutItem() const; 54 void setParentLayoutItem(QGraphicsLayoutItem *parent /TransferThis/); 55 bool isLayout() const; 56 void setMinimumSize(qreal aw, qreal ah); 57 void setPreferredSize(qreal aw, qreal ah); 58 void setMaximumSize(qreal aw, qreal ah); 59 qreal minimumWidth() const; 60 qreal minimumHeight() const; 61 qreal preferredWidth() const; 62 qreal preferredHeight() const; 63 qreal maximumWidth() const; 64 qreal maximumHeight() const; 65 QGraphicsItem *graphicsItem() const; 66 bool ownedByLayout() const; 67 68protected: 69 virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const = 0; 70 void setGraphicsItem(QGraphicsItem *item); 71 void setOwnedByLayout(bool ownedByLayout); 72 73private: 74 QGraphicsLayoutItem(const QGraphicsLayoutItem &); 75}; 76