qgraphicslayoutitem.sip 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. // qgraphicslayoutitem.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtWidgets Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  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. class QGraphicsLayoutItem /Supertype=PyQt6.sip.wrapper/
  22. {
  23. %TypeHeaderCode
  24. #include <qgraphicslayoutitem.h>
  25. %End
  26. public:
  27. QGraphicsLayoutItem(QGraphicsLayoutItem *parent /TransferThis/ = 0, bool isLayout = false);
  28. virtual ~QGraphicsLayoutItem();
  29. void setSizePolicy(const QSizePolicy &policy);
  30. void setSizePolicy(QSizePolicy::Policy hPolicy, QSizePolicy::Policy vPolicy, QSizePolicy::ControlType controlType = QSizePolicy::DefaultType);
  31. QSizePolicy sizePolicy() const;
  32. void setMinimumSize(const QSizeF &size);
  33. QSizeF minimumSize() const;
  34. void setMinimumWidth(qreal width);
  35. void setMinimumHeight(qreal height);
  36. void setPreferredSize(const QSizeF &size);
  37. QSizeF preferredSize() const;
  38. void setPreferredWidth(qreal width);
  39. void setPreferredHeight(qreal height);
  40. void setMaximumSize(const QSizeF &size);
  41. QSizeF maximumSize() const;
  42. void setMaximumWidth(qreal width);
  43. void setMaximumHeight(qreal height);
  44. virtual void setGeometry(const QRectF &rect);
  45. QRectF geometry() const;
  46. virtual void getContentsMargins(qreal *left, qreal *top, qreal *right, qreal *bottom) const;
  47. QRectF contentsRect() const;
  48. QSizeF effectiveSizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const;
  49. virtual void updateGeometry();
  50. QGraphicsLayoutItem *parentLayoutItem() const;
  51. void setParentLayoutItem(QGraphicsLayoutItem *parent /TransferThis/);
  52. bool isLayout() const;
  53. void setMinimumSize(qreal aw, qreal ah);
  54. void setPreferredSize(qreal aw, qreal ah);
  55. void setMaximumSize(qreal aw, qreal ah);
  56. qreal minimumWidth() const;
  57. qreal minimumHeight() const;
  58. qreal preferredWidth() const;
  59. qreal preferredHeight() const;
  60. qreal maximumWidth() const;
  61. qreal maximumHeight() const;
  62. QGraphicsItem *graphicsItem() const;
  63. bool ownedByLayout() const;
  64. virtual bool isEmpty() const;
  65. protected:
  66. virtual QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const = 0;
  67. void setGraphicsItem(QGraphicsItem *item);
  68. void setOwnedByLayout(bool ownedByLayout);
  69. private:
  70. QGraphicsLayoutItem(const QGraphicsLayoutItem &);
  71. };