mirror of
https://github.com/itead/ITEADLIB_Arduino_Nextion.git
synced 2026-03-09 19:46:49 +01:00
Modified: class tree structure.
Signed-off-by: shennongmin <wupangfee@gmail.com>
This commit is contained in:
@@ -19,49 +19,8 @@
|
||||
* Constructor,inherited NexTouch's constructor function.
|
||||
*
|
||||
*/
|
||||
NexHotspot::NexHotspot(NexPid pid, NexCid cid, const char *name,
|
||||
NexTouchEventCb pop, void *pop_ptr,
|
||||
NexTouchEventCb push, void *push_ptr)
|
||||
:NexTouch(pid, cid, name, pop, pop_ptr, push, push_ptr)
|
||||
NexHotspot::NexHotspot(NexPid pid, NexCid cid, const char *name)
|
||||
:NexTouch(pid, cid, name)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Register hotspot push callback function.
|
||||
*
|
||||
* @param push - the pointer to hotspot push callback function.
|
||||
* @param ptr - the parameter to be transmitted to hotspot push callback function.
|
||||
*/
|
||||
void NexHotspot::attachPush(NexTouchEventCb push, void *ptr)
|
||||
{
|
||||
NexTouch::attachPush(push, ptr);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unload hotsopt push callback function.
|
||||
*
|
||||
*/
|
||||
void NexHotspot::detachPush(void)
|
||||
{
|
||||
NexTouch::detachPush();
|
||||
}
|
||||
|
||||
/**
|
||||
* Register hotspot pop callback function.
|
||||
*
|
||||
* @param pop - the pointer to hotspot pot callback function.
|
||||
* @param ptr - the parameter to be transmitted to hotspot pop callback function.
|
||||
*/
|
||||
void NexHotspot::attachPop(NexTouchEventCb pop, void *ptr)
|
||||
{
|
||||
NexTouch::attachPop(pop, ptr);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unload hotsopt pop callback function.
|
||||
*
|
||||
*/
|
||||
void NexHotspot::detachPop(void)
|
||||
{
|
||||
NexTouch::detachPop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user