tilde~
Puredata Qt-based GUI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Grid.h
Go to the documentation of this file.
1 // (c) 2017 Alex Nadzharov
2 // License: GPL3
3 
4 #ifndef GRID_H
5 #define GRID_H
6 
7 #include "UIItem.h"
8 
9 namespace tilde {
10 
14 class Grid : public UIItem {
15  int _gridStep;
16 
17 public:
18  Grid();
19 
20  void setGridStep(int gs) { _gridStep = gs; }
21  int gridStep() { return _gridStep; }
22 
23  void paint(QPainter* p, const QStyleOptionGraphicsItem*, QWidget*);
24 };
25 }
26 
27 #endif // GRID_H
int gridStep()
Definition: Grid.h:21
UIItem QGraphicsObject class.
Definition: UIItem.h:15
void setGridStep(int gs)
Definition: Grid.h:20
Grid for the canvas.
Definition: Grid.h:14
void paint(QPainter *p, const QStyleOptionGraphicsItem *, QWidget *)
Definition: Grid.cpp:15
Grid()
Definition: Grid.cpp:10