CanvasCV: CanvasCV-doxygen/src/canvascv/widgets/layoutbase.h Source File
CanvasCV  1.0.0
layoutbase.h
1 #ifndef LAYOUTBASE_H
2 #define LAYOUTBASE_H
3 
4 #include "layout.h"
5 
6 namespace canvascv
7 {
8 
14 class LayoutBase : public Layout
15 {
16 protected:
17  LayoutBase();
18  virtual ~LayoutBase();
19 
20  virtual bool addDirtyWidget(Widget *widget);
21  virtual void rmvDirtyWidget(Widget *widget);
22  virtual void updateDirtyWidgets();
23  virtual bool hasDirtyWidgets();
24  bool isDuringUpdate() const;
25 
26 private:
27  virtual bool setDirtyLayout() = 0;
28 
29  bool duringDirtyHandling;
30  std::list<Widget*> dirtyWidgets;
31 };
32 
33 }
34 #endif // LAYOUTBASE_H
The LayoutBase class.
Definition: layoutbase.h:14
This namespace holds all the classes of the CanvasCV library.
Definition: canvas.h:20
The Layout class.
Definition: layout.h:17
The Widget class.
Definition: widget.h:28