ultimatepp/bazaar/BoostPyTest/SliderCtrlPy.h
kohait bbc2ef5b80 bazaar: BoostPyTest: Value export for the common types, including String and ValueArray
git-svn-id: svn://ultimatepp.org/upp/trunk@3340 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-04-13 21:12:59 +00:00

29 lines
564 B
C++

#ifndef _BoostPyTest_SliderCtrlPy_h_
#define _BoostPyTest_SliderCtrlPy_h_
#include <Py/Py.h>
using namespace boost::python;
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#include <ValueCtrl/ValueCtrl.h>
//A wrapped instance
struct SliderCtrlPy
{
SliderCtrlPy(SliderCtrl& o) : o(o) {}
void Set(const int& d) { o.SetData(d); }
int Get() const { return o.GetData(); }
SliderCtrl& o;
};
//fw
void export_UppCtrl();
void export_SliderCtrl(); //relys on Value export
void export_ValueCtrl(); //relys on Value export
#endif