mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
21 lines
451 B
C++
21 lines
451 B
C++
#include "CtrlCore.h"
|
|
using namespace boost::python;
|
|
|
|
NAMESPACE_UPP
|
|
|
|
Value CtrlGetData(const Ctrl& c) { return c.GetData(); }
|
|
void CtrlSetData(Ctrl& c, const Value& data) { c.SetData(data); }
|
|
|
|
void export_CtrlCore()
|
|
{
|
|
ONCELOCK
|
|
{
|
|
scope().attr("__doc__") = "Ctrl's docstring";
|
|
class_<Ctrl, boost::noncopyable>("Ctrl", "An Upp Ctrl", no_init)
|
|
.def("getdata", CtrlGetData)
|
|
.def("setdata", CtrlSetData)
|
|
;
|
|
}
|
|
}
|
|
|
|
END_UPP_NAMESPACE
|