Warning, /education/marble/src/bindings/python/sip/FrameGraphicsItem.sip is written in an unsupported language. File is not indexed.
0001 // Copyright 2009 Simon Edwards <simon@simonzone.com>
0002
0003 // Generated by twine2
0004
0005 // This program is free software; you can redistribute it and/or modify
0006 // it under the terms of the GNU Library General Public License as
0007 // published by the Free Software Foundation; either version 2, or
0008 // (at your option) any later version.
0009
0010 // This program is distributed in the hope that it will be useful,
0011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
0012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0013 // GNU General Public License for more details
0014
0015 // You should have received a copy of the GNU Library General Public
0016 // License along with this program; if not, write to the
0017 // Free Software Foundation, Inc.,
0018 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0019
0020 namespace Marble
0021 {
0022 class FrameGraphicsItem : Marble::ScreenGraphicsItem
0023 {
0024 %TypeHeaderCode
0025 #include <FrameGraphicsItem.h>
0026 %End
0027
0028 public:
0029 enum FrameType
0030 {
0031 NoFrame,
0032 RectFrame,
0033 RoundedRectFrame,
0034 ShadowFrame
0035 };
0036 explicit FrameGraphicsItem (Marble::MarbleGraphicsItem* parent = 0);
0037 virtual ~FrameGraphicsItem ();
0038 void setFrame (Marble::FrameGraphicsItem::FrameType type);
0039 qreal margin () const;
0040 void setMargin (qreal margin);
0041 qreal marginTop () const;
0042 void setMarginTop (qreal marginTop);
0043 qreal marginBottom () const;
0044 void setMarginBottom (qreal marginBottom);
0045 qreal marginLeft () const;
0046 void setMarginLeft (qreal marginLeft);
0047 qreal marginRight () const;
0048 void setMarginRight (qreal marginRight);
0049 qreal borderWidth () const;
0050 void setBorderWidth (qreal width);
0051 qreal padding () const;
0052 void setPadding (qreal width);
0053 QBrush borderBrush () const;
0054 void setBorderBrush (const QBrush& brush);
0055 Qt::PenStyle borderStyle () const;
0056 void setBorderStyle (Qt::PenStyle style);
0057 QBrush background () const;
0058 void setBackground (const QBrush& background);
0059 QRectF paintedRect () const;
0060 QRectF contentRect () const;
0061 QSizeF contentSize () const;
0062 void setContentSize (const QSizeF& size);
0063 protected:
0064 virtual QPainterPath backgroundShape () const;
0065 public:
0066 Marble::FrameGraphicsItem::FrameType frame () const;
0067 protected:
0068 virtual void paint (QPainter* painter);
0069 virtual void paintContent (QPainter* painter);
0070 virtual void paintBackground (QPainter* painter);
0071 };
0072 };