GraphicsGridLayout.hpp
1 #pragma once
2 
3 #include <score/graphics/GraphicsLayout.hpp>
4 
5 namespace score
6 {
7 
8 class SCORE_LIB_BASE_EXPORT GraphicsGridColumnsLayout : public GraphicsLayout
9 {
10 public:
11  using GraphicsLayout::GraphicsLayout;
13 
14  void setColumns(int columns);
15 
16  void layout() override;
17 
18 private:
19  int m_columns{5};
20 };
21 
22 class SCORE_LIB_BASE_EXPORT GraphicsGridRowsLayout : public GraphicsLayout
23 {
24 public:
25  using GraphicsLayout::GraphicsLayout;
27 
28  void setRows(int rows);
29 
30  void layout() override;
31 
32 private:
33  int m_rows{5};
34 };
35 
36 class SCORE_LIB_BASE_EXPORT GraphicsDefaultLayout : public GraphicsLayout
37 {
38 public:
39  using GraphicsLayout::GraphicsLayout;
41 
42  void layout() override;
43 };
44 
45 }
Definition: GraphicsGridLayout.hpp:37
Definition: GraphicsGridLayout.hpp:9
Definition: GraphicsGridLayout.hpp:23
Definition: GraphicsLayout.hpp:10
Base toolkit upon which the software is built.
Definition: Application.cpp:90