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;
}
Exemple #3
0
void Entity::detachPrivateCallback(actions::ItemCallback* callback) {
	detachCallback(mCallbacksPrivate, callback);
}
Exemple #4
0
void Entity::detachHierarchyCallback(actions::ItemCallback* callback) {
	detachCallback(mCallbacksHierarchy, callback);
}