diff --git a/api/sixtyfps-cpp/include/sixtyfps_interpreter.h b/api/sixtyfps-cpp/include/sixtyfps_interpreter.h index 85245cc78..554b4bd6f 100644 --- a/api/sixtyfps-cpp/include/sixtyfps_interpreter.h +++ b/api/sixtyfps-cpp/include/sixtyfps_interpreter.h @@ -38,44 +38,6 @@ struct ErasedComponentBox : vtable::Dyn /// The entry point for this namespace is the \ref ComponentCompiler, which you can /// use to create \ref ComponentDefinition instances with the ComponentCompiler::build_from_source() /// or ComponentCompiler::build_from_path() functions. -/// -/// Example: -/// -/// This example loads a `.60` dynamically from a path: -/// -/// ``` -/// #include -/// -/// sixtyfps::interpreter::ComponentCompiler compiler; -/// auto definition = -/// compiler.build_from_path("hello.60"); -/// if (definition) { -/// auto instance = definition->create(); -/// instance->run(); -/// } -/// ``` -/// -/// This example loads a `.60` from a string and set some properties: -/// -/// ``` -/// #include -/// -/// std::string code = R"( -/// MyWin := Window { -/// property my_name; -/// Text { -/// text: "Hello, " + my_name; -/// } -/// } -/// )"; -/// -/// sixtyfps::interpreter::ComponentCompiler compiler; -/// auto definition = -/// compiler.build_from_source(code, ""); -/// auto instance = definition->create(); -/// instance->set_property("my_name", -/// sixtyfps::interpreter::Value(sixtyfps::SharedString("World"))); instance->run(); -/// ``` namespace sixtyfps::interpreter { class Value;