mirror of
https://github.com/hyprwm/hyprwayland-scanner.git
synced 2025-01-09 21:59:48 +01:00
stuff
This commit is contained in:
parent
f58b7bb49e
commit
85f1334c51
1 changed files with 2 additions and 1 deletions
|
@ -661,6 +661,7 @@ void {}::{}({}) {{
|
||||||
)#",
|
)#",
|
||||||
IFACE_CLASS_NAME_CAMEL, EVENT_NAME, argsC, evid, argsN);
|
IFACE_CLASS_NAME_CAMEL, EVENT_NAME, argsC, evid, argsN);
|
||||||
} else {
|
} else {
|
||||||
|
std::string retType = ev.newIdType.empty() ? "void" : camelize("C_" + ev.newIdType);
|
||||||
std::string ptrRetType = ev.newIdType.empty() ? "void" : camelize("C_" + ev.newIdType) + "*";
|
std::string ptrRetType = ev.newIdType.empty() ? "void" : camelize("C_" + ev.newIdType) + "*";
|
||||||
std::string flags = ev.destructor ? "1" : "0";
|
std::string flags = ev.destructor ? "1" : "0";
|
||||||
SOURCE += std::format(R"#(
|
SOURCE += std::format(R"#(
|
||||||
|
@ -673,7 +674,7 @@ void {}::{}({}) {{
|
||||||
)#",
|
)#",
|
||||||
ptrRetType, IFACE_CLASS_NAME_CAMEL, EVENT_NAME, argsC, (ev.newIdType.empty() ? "" : " nullptr"), evid,
|
ptrRetType, IFACE_CLASS_NAME_CAMEL, EVENT_NAME, argsC, (ev.newIdType.empty() ? "" : " nullptr"), evid,
|
||||||
(ev.newIdType.empty() ? "nullptr" : "&" + ev.newIdType + "_interface"), flags, (!ev.newIdType.empty() ? ", nullptr" : ""), argsN,
|
(ev.newIdType.empty() ? "nullptr" : "&" + ev.newIdType + "_interface"), flags, (!ev.newIdType.empty() ? ", nullptr" : ""), argsN,
|
||||||
(ev.newIdType.empty() ? "" : "\n\n return (" + ptrRetType + ")wl_proxy_get_user_data(proxy);"));
|
(ev.newIdType.empty() ? "\n proxy;" : "\n\n return new " + retType + "(proxy);"));
|
||||||
}
|
}
|
||||||
|
|
||||||
evid++;
|
evid++;
|
||||||
|
|
Loading…
Reference in a new issue