7 template <
typename Derived>
13 Derived& this_ = *
static_cast<Derived*
>(
this);
21 Derived& this_ = *
static_cast<Derived*
>(
this);
22 this_.
widget().children.insert(this_.widget().children.begin(),
child);
35 Derived& this_ = *
static_cast<Derived*
>(
this);
36 this_.
widget().children.insert(
44 Derived& this_ = *
static_cast<Derived*
>(
this);
52 Derived& this_ = *
static_cast<Derived*
>(
this);
60 Derived& this_ = *
static_cast<Derived*
>(
this);
61 return this_.widget().children.at(i);
105 using NoValueMixin::NoValueMixin;
112 using NoValueMixin::NoValueMixin;
116 public NoValueMixin<SimpleGridLayout, SimpleGridLayoutBuilder>,
120 using NoValueMixin::NoValueMixin;
141 SimpleGridLayoutSpanningChildPtr
c =
new SimpleGridLayoutSpanningChild;
142 c->children.emplace_back(
child);
143 c->columns = colspan;
184 return addChild(
new HLine, colspan);
192 return addChild(
new VLine, colspan);
209 this->
widget().collapsed = isCollapsed;
217 using NoValueMixin::NoValueMixin;
222 this->
widget().children.emplace_back(child);
223 this->
widget().childrenLayoutInfo.push_back({row, col, spanRow, spanCol});
228 addTextLabel(std::string
const& text,
int row,
int col,
int spanRow = 1,
int spanCol = 1)
234 addHSpacer(
int row,
int col,
int spanRow = 1,
int spanCol = 1)
240 addVSpacer(
int row,
int col,
int spanRow = 1,
int spanCol = 1)
252 addHLine(
int row,
int col,
int spanRow = 1,
int spanCol = 1)
254 return addChild(
new HLine, row, col, spanRow, spanCol);
258 addVLine(
int row,
int col,
int spanRow = 1,
int spanCol = 1)
260 return addChild(
new VLine, row, col, spanRow, spanCol);
267 inline detail::HBoxLayoutBuilder
273 inline detail::SimpleGridLayoutBuilder
279 inline detail::GridLayoutBuilder
285 inline detail::VBoxLayoutBuilder
291 inline detail::GroupBoxBuilder