20 |
#include <string> |
#include <string> |
21 |
#include "usata.hpp" |
#include "usata.hpp" |
22 |
|
|
23 |
|
|
24 |
|
// these need to go somewhere else |
25 |
|
#define USATA_DRAW_ORDER_LAST 255 |
26 |
|
#define USATA_DRAW_ORDER_DEFAULT 100 |
27 |
|
#define USATA_DRAW_ORDER_FIRST 0 |
28 |
|
|
29 |
namespace usata |
namespace usata |
30 |
{ |
{ |
31 |
|
|
47 |
virtual ResourceList |
virtual ResourceList |
48 |
construct(const ObjectProperties&) = 0; |
construct(const ObjectProperties&) = 0; |
49 |
}; |
}; |
50 |
|
|
51 |
|
struct Node |
52 |
|
{ |
53 |
|
enum ChildOp{ CHILD_SHOW, CHILD_HIDE }; |
54 |
|
enum Query { QUERY_DRAW_ORDER }; |
55 |
|
}; |
56 |
|
|
57 |
class NodeInterface |
class NodeInterface |
58 |
{ |
{ |
61 |
virtual void add_child(const Object_sp&, std::string& path){}; |
virtual void add_child(const Object_sp&, std::string& path){}; |
62 |
virtual void add_child(const Object_sp&){}; |
virtual void add_child(const Object_sp&){}; |
63 |
virtual Object_sp get_child(const std::string&)=0; |
virtual Object_sp get_child(const std::string&)=0; |
64 |
|
virtual bool child_op(Node::ChildOp,Object*){return false;} |
65 |
|
virtual bool query(Node::Query, int& i){return false;} |
66 |
}; |
}; |
67 |
|
|
68 |
class Object |
class Object |