This function does a public thing.
- Parameters
-
The Something class is quite something. See SkSomething.h for more.
Returns a Something with the provided name.
- Parameters
-
Returns the associated name.
The AnotherClass class is another class.
Returns a Something with the provided name.
- Parameters
-
name | |
thing | - will be used, I promise. |
Returns the associated thing.
The number of columns that the frobulator needs. @type @optional number
The object associated with the frobulator. @type AnotherClass
@type string
@type boolean
This function does another public thing.
- Parameters
-
@type boolean
This is the flag which is a lot of fun. It is used in a variety of ways. #funwithflags @type number
Definition at line 13 of file bindings1.cpp.
13 {
15 function("_privateFunction2", optional_override([](
int x,
int y)->
size_t {
17 }));
18
19
20
21
22
23 TS_EXPORT(
"publicFunction2(input: string): void")
24 function("publicFunction2", optional_override([](
std::
string s)->
void {
25 printf(
"Hello %s\n",
s.c_str());
26 }));
27
28
29
30
31 class_<Something>("Something")
32
33
34
35
37 .constructor<
std::
string>()
38
39
40
45
46
47
48
49 class_<AnotherClass>("AnotherClass")
51 .constructor<>()
52
53
54
55
56
59
60
61
64
65 value_object<SomeValueObject>("SomeValueObject")
66
67
68
69
70 .field("columns", &SomeValueObject::columns)
71
72
73
74
75 .field("object", &SomeValueObject::object)
76
77 .field("
name", &SomeValueObject::slot)
78
79
80
81 .field("isInteger", &SomeValueObject::isInteger);
82
85
86
87
88
89
92
93
94
95
96 constant("hasBird",
true);
97
98
99
100
101
102
103 constant("SOME_FLAG", 0x2);
104
105#ifdef SK_EXTRA_FEATURE
106
107
108
109
110 constant("optionalConst", "foo");
111#endif
112}
#define TS_PRIVATE_EXPORT(ts_code)
#define TS_EXPORT(ts_code)
Dart_NativeFunction function
std::string printf(const char *fmt,...) SK_PRINTF_LIKE(1
DEF_SWITCHES_START aot vmservice shared library name
const myers::Point & get(const myers::Segment &)