Python: crude, non typesafe enum bindings.
[fail.git] / scenegraph / Frame.h
blob6b4782acd5998d1dd11f06322af0824e59709846
1 #ifndef AWFUL_SCENEGRAPH_FRAME_H_
2 #define AWFUL_SCENEGRAPH_FRAME_H_
4 #include "core/core.h"
5 #include <vector>
7 namespace awful { namespace scenegraph
9 class Frame : public Serializable
11 public:
12 Frame() : m_Lulz( 0 ), m_LolWut( e_Fail ) {}
13 Frame( const Serialization_tag& ) {}
15 const GenericPointer& getpBlah() const { return m_pBlah; }
16 void setpBlah( const GenericPointer& x ) { m_pBlah = x; }
18 typedef std::vector< std::string > test_type;
20 const test_type& getLulz() const { return m_Lulz; }
21 void setLulz( const test_type& x ) { m_Lulz = x; }
23 enum test_enum
25 e_Fail,
26 e_Win,
27 e_LolWut
30 const test_enum& getLolWut() const { return m_LolWut; }
31 void setLolWut( const test_enum& x ) { m_LolWut = x; }
33 private:
34 template< class C, typename T > friend struct awful::attribute_traits;
35 GenericPointer m_pBlah;
36 test_type m_Lulz;
37 test_enum m_LolWut;
41 #endif