15 function(
"_privateFunction2", optional_override([](
int x,
int y)->
size_t {
23 TS_EXPORT(
"publicFunction2(input: string): void")
24 function(
"publicFunction2", optional_override([](std::string
s)->
void {
25 printf(
"Hello %s\n",
s.c_str());
31 class_<Something>(
"Something")
37 .constructor<std::string>()
49 class_<AnotherClass>(
"AnotherClass")
57 TS_EXPORT(
"new(name: string, thing: Something): AnotherClass")
63 .function(
"get", &AnotherClass::get);
65 value_object<SomeValueObject>(
"SomeValueObject")
70 .field(
"columns", &SomeValueObject::columns)
75 .field(
"object", &SomeValueObject::object)
77 .field(
"name", &SomeValueObject::slot)
81 .field(
"isInteger", &SomeValueObject::isInteger);
84 function(
"_privateFunction1", &SkCanvas::whatever);
91 function(
"publicFunction1", &SkCanvas::blerg);
96 constant(
"hasBird",
true);
103 constant(
"SOME_FLAG", 0x2);
105#ifdef SK_EXTRA_FEATURE
110 constant(
"optionalConst",
"foo");