update
This commit is contained in:
parent
b6c2b7f164
commit
d7f1c66779
17 changed files with 118 additions and 65 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue