mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
18 lines
375 B
C++
18 lines
375 B
C++
#include "Common.h"
|
|
using namespace boost::python;
|
|
|
|
NAMESPACE_UPP
|
|
|
|
void SwitchSetLabel(Switch& c, const String& s) { c.SetLabel(s); }
|
|
|
|
void export_Switch()
|
|
{
|
|
ONCELOCK
|
|
{
|
|
class_<Switch, bases<Ctrl>, boost::noncopyable>("Switch", "Upp Switch")
|
|
.add_property("label", (String (Switch::*)() const)&Switch::GetLabel, &SwitchSetLabel)
|
|
;
|
|
}
|
|
}
|
|
|
|
END_UPP_NAMESPACE
|