| 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 |