bool INextionTouchable::attachCallback(INextionCallback *handler) { if (!handler) return false; if (m_callback != NULL) detachCallback(); m_callback = handler; return true; }
bool INextionTouchable::attachCallback( NextionCallbackFunctionHandler::NextionFunction function) { if (!function) return false; if (m_callback != NULL) detachCallback(); m_callback = new NextionCallbackFunctionHandler(function); return true; }
void Entity::detachPrivateCallback(actions::ItemCallback* callback) { detachCallback(mCallbacksPrivate, callback); }
void Entity::detachHierarchyCallback(actions::ItemCallback* callback) { detachCallback(mCallbacksHierarchy, callback); }