Btk
layout.hpp
1 #if !defined(_BTK_LAYOUT_HPP_)
2 #define _BTK_LAYOUT_HPP_
3 #include "rect.hpp"
4 #include "widget.hpp"
5 namespace Btk{
6  class Layout:public Widget,Container{
7  public:
8  void draw(Renderer &render);
9  bool handle(Event&) override;
10  //update each widgets postions
11  virtual void update() = 0;
12 
13  };
14  class BoxLayout:public Layout{
15 
16  };
17  class VBoxLayout:public BoxLayout{
18 
19  };
20  class HBoxLayout:public BoxLayout{
21 
22  };
23  class GridLayout:public Layout{
24 
25  };
26 };
27 
28 
29 #endif // _BTK_LAYOUT_HPP_
Definition: layout.hpp:20
Definition: widget.hpp:219
This header include many useful containers.
Definition: async.hpp:7
Definition: layout.hpp:23
Definition: layout.hpp:14
bool handle(Event &) override
Process event.
Definition: layout.cpp:39
Definition: layout.hpp:6
Definition: layout.hpp:17
A base event of all events.
Definition: event.hpp:17
A Container of Widget.
Definition: widget.hpp:108