blob: 9e596bf84ccad0f09f4c2a4ae556315ee167d665 (
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
|
#ifndef __FLAT_COMPONENT_H__
#define __FLAT_COMPONENT_H__
#include "object.h"
#include <string>
class Component : virtual public flat::core::object
{
Component * 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 setParent(Component*);
Component * getParent();
virtual void render() = 0;
};
#endif
|