MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / createChild

Method createChild

forms/control.h:165–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 bool isPointInsideControlBounds(Event *e, sp<Control> c) const;
164
165 template <typename T, typename... Args> sp<T> createChild(Args &&...args)
166 {
167 sp<T> newControl = mksp<T>(std::forward<Args>(args)...);
168 newControl->setParent(shared_from_this());
169 return newControl;
170 }
171
172 void addCallback(FormEventType event, std::function<void(FormsEvent *e)> callback);
173

Callers

nothing calls this directly

Calls 1

setParentMethod · 0.80

Tested by

no test coverage detected