7 template <
typename Derived>
12 Derived& this_ = *
static_cast<Derived*
>(
this);
18 Derived& this_ = *
static_cast<Derived*
>(
this);
19 this_.
widget().children.insert(this_.widget().children.begin(),
child);
28 Derived& this_ = *
static_cast<Derived*
>(
this);
29 this_.
widget().children.insert(
30 this_.widget().children.end(),
38 Derived& this_ = *
static_cast<Derived*
>(
this);
45 Derived& this_ = *
static_cast<Derived*
>(
this);
52 Derived& this_ = *
static_cast<Derived*
>(
this);
53 return this_.widget().children.at(i);
91 using NoValueMixin::NoValueMixin;
98 using NoValueMixin::NoValueMixin;
102 :
public NoValueMixin<SimpleGridLayout, SimpleGridLayoutBuilder>
106 using NoValueMixin::NoValueMixin;
123 SimpleGridLayoutSpanningChildPtr
c =
new SimpleGridLayoutSpanningChild;
124 c->children.emplace_back(
child);
125 c->columns = colspan;
156 return addChild(
new HLine, colspan);
162 return addChild(
new VLine, colspan);
178 this->
widget().collapsed = isCollapsed;
187 using NoValueMixin::NoValueMixin;
191 this->
widget().children.emplace_back(child);
192 this->
widget().childrenLayoutInfo.push_back({row, col, spanRow, spanCol});
218 return addChild(
new HLine, row, col, spanRow, spanCol);
223 return addChild(
new VLine, row, col, spanRow, spanCol);