MakeGuiConfig.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace armarx::RemoteGui
6{
7 template <class T>
8 RemoteGui::WidgetPtr
9 MakeGuiConfig(const std::string& name, const T& val)
10 {
13 static_assert(maker::value, "This type can't be used");
14 if (name.empty())
15 {
16 return maker::template create<RemoteGui::SimpleGridLayout>(val, "", name);
17 }
18 return maker::create(val, "", name);
19 }
20} // namespace armarx::RemoteGui
RemoteGui::WidgetPtr MakeGuiConfig(const std::string &name, const T &val)
#define ARMARX_TRACE
Definition trace.h:77