GraphicsLayout.hpp
1 #pragma once
2 #include <score/graphics/RectItem.hpp>
3 
4 namespace score
5 {
6 struct BrushSet;
7 class SCORE_LIB_BASE_EXPORT GraphicsLayout : public score::BackgroundItem
8 {
9 public:
10  explicit GraphicsLayout(QGraphicsItem* parent);
11  ~GraphicsLayout();
12 
13  virtual void layout();
14  virtual void centerContent();
15 
16  void setBrush(score::BrushSet& b);
17  void setBackground(const QString& b);
18  void setMargin(qreal m);
19  void setPadding(qreal p);
20 
21  void updateChildrenRects(const QList<QGraphicsItem*>&);
22 
23  void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
24  override;
25 
26 protected:
27  score::BrushSet* m_bg{};
28  QPixmap* m_pix{};
29 
30  qreal m_margin{};
31  qreal m_padding{};
32 };
33 
34 }
Definition: RectItem.hpp:96
Definition: GraphicsLayout.hpp:8
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: Skin.hpp:19