1// qframe.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 QFrame : QWidget
24{
25%TypeHeaderCode
26#include <qframe.h>
27%End
28
29public:
30    enum Shadow
31    {
32        Plain,
33        Raised,
34        Sunken,
35    };
36
37    enum Shape
38    {
39        NoFrame,
40        Box,
41        Panel,
42        WinPanel,
43        HLine,
44        VLine,
45        StyledPanel,
46    };
47
48    enum StyleMask
49    {
50        Shadow_Mask,
51        Shape_Mask,
52    };
53
54    QFrame(QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags());
55    virtual ~QFrame();
56    int frameStyle() const;
57    void setFrameStyle(int);
58    int frameWidth() const;
59    virtual QSize sizeHint() const;
60    QFrame::Shape frameShape() const;
61    void setFrameShape(QFrame::Shape);
62    QFrame::Shadow frameShadow() const;
63    void setFrameShadow(QFrame::Shadow);
64    int lineWidth() const;
65    void setLineWidth(int);
66    int midLineWidth() const;
67    void setMidLineWidth(int);
68    QRect frameRect() const;
69    void setFrameRect(const QRect &);
70
71protected:
72    virtual bool event(QEvent *e);
73    virtual void paintEvent(QPaintEvent *);
74    virtual void changeEvent(QEvent *);
75    void drawFrame(QPainter *);
76%If (Qt_5_5_0 -)
77    void initStyleOption(QStyleOptionFrame *option) const;
78%End
79};
80