13 auto [text, pathToImage, imageResource, resourceModuleName, imageWidth, imageHeight, dType, iType, onClick, onClickFunctionName, onClickFunctionModule] =
14 any_cast<tuple<wstring, filesystem::path, uint32_t, string, uint16_t, uint16_t,
ImageButton::drawingType,
ImageButton::imageType, function<void()>, string,
string>>(additionalData);
16 if (pathToImage.empty())
18 return onClickFunctionName.empty() ?
19 new ImageButton(windowName, imageResource, dType, iType, imageWidth, imageHeight, settings, parent, onClick, resourceModuleName) :
20 new ImageButton(windowName, imageResource, dType, iType, imageWidth, imageHeight, settings, parent, onClickFunctionName, onClickFunctionModule, resourceModuleName);
23 return onClickFunctionName.empty() ?
24 new ImageButton(windowName, pathToImage, dType, iType, imageWidth, imageHeight, settings, parent, onClick) :
25 new ImageButton(windowName, pathToImage, dType, iType, imageWidth, imageHeight, settings, parent, onClickFunctionName, onClickFunctionModule);