blob: fdde28dec1685eca5097821ad2153abe41f04cf3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef __FLAT_COMPONENT_H__
#define __FLAT_COMPONENT_H__
#include "object.hpp"
#include "core/labelled.hpp"
#include <string>
namespace flat {
class component : virtual public object, virtual public core::labelled
{
component * m_parent;
public:
/* Zero means attach to main window layer */
/* Send a 'created' signal in component reserved channel */
component(component *parent = 0, const std::string& id = "");
/* Send a 'deleted' signal in component reserved channel */
virtual ~component();
void set_parent(component*);
component * parent();
virtual void render() = 0;
};
}
#endif
|