This commit is contained in:
Nishi 2026-09-27 07:21:54 +09:00
commit d7f1c66779
17 changed files with 118 additions and 65 deletions

View file

@ -76,10 +76,10 @@ static std::string get_type(typeinfo type) {
if(type.type == "integer") {
return "Integer";
} else if(type.type == "string") {
return "Text";
return "String";
}
return "Void";
return "Pointer";
}
static std::string uppercase(std::string str) {
@ -184,7 +184,7 @@ static std::string widget_property_source(std::string widget, std::string name)
if(props[name].type.type == "string") {
strm << "#ifndef MWCXX_USE_C_STRING" << std::endl;
strm << " MwSetText(this->widget, MwN" + name + ", value.c_str());" << std::endl;
strm << " MwSetString(this->widget, MwN" + name + ", value.c_str());" << std::endl;
strm << "#else" << std::endl;
}
@ -912,7 +912,7 @@ int main(int argc, char** argv) {
name = xl_get_attribute(child, "name");
if(name == "OpenGL" || name == "Vulkan") continue;
if(name == "OpenGL" || name == "Vulkan" || name == "Direct3D9") continue;
OFS << "#include <MwCXX/Widget/" + name + ".h>" << std::endl;
}
}