mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 22:02:58 -06:00
29 lines
564 B
C++
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
|