StaticWidgets.h
Go to the documentation of this file.
1#pragma once
2
3#include "Basic.h"
4
6{
7 struct LabelBuilder :
8 public ValueMixin<Label, std::string, LabelBuilder>,
9 public ToolTipMixin<LabelBuilder>
10 {
11 using ValueMixin::ValueMixin;
12 };
13} // namespace armarx::RemoteGui::detail
14
15namespace armarx::RemoteGui
16{
18 makeLabel(std::string const& name)
19 {
20 return detail::LabelBuilder(name);
21 }
22
23 inline detail::LabelBuilder
24 makeTextLabel(std::string const& text)
25 {
26 return detail::LabelBuilder("").value(text);
27 }
28} // namespace armarx::RemoteGui
detail::LabelBuilder makeTextLabel(std::string const &text)
detail::LabelBuilder makeLabel(std::string const &name)
Derived & value(ValueT const &value)
Definition Basic.h:84