NeoNextion
Arduino library for the Nextion displays.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator
Public Types | Public Member Functions | List of all members
NextionCallbackFunctionHandler Class Reference

Event handler for function pointers. More...

#include <NextionCallbackFunctionHandler.h>

Inheritance diagram for NextionCallbackFunctionHandler:
Inheritance graph
[legend]
Collaboration diagram for NextionCallbackFunctionHandler:
Collaboration graph
[legend]

Public Types

typedef void(* NextionFunction )(NextionEventType, INextionTouchable *)
 Event handler function for display events.
 

Public Member Functions

 NextionCallbackFunctionHandler (NextionFunction f)
 Creates a new function pointer callback handler. More...
 
void handleNextionEvent (NextionEventType type, INextionTouchable *widget)
 Handle a callback. More...
 

Detailed Description

Event handler for function pointers.

Constructor & Destructor Documentation

NextionCallbackFunctionHandler::NextionCallbackFunctionHandler ( NextionFunction  f)
inline

Creates a new function pointer callback handler.

Parameters
fPointer to callback function

Member Function Documentation

void NextionCallbackFunctionHandler::handleNextionEvent ( NextionEventType  type,
INextionTouchable widget 
)
inlinevirtual

Handle a callback.

Parameters
typeEvent type
widgetPointer to the widget that fired the event

Displatches the event to the function.

Implements INextionCallback.


The documentation for this class was generated from the following file: