mirror of
https://github.com/itead/ITEADLIB_Arduino_Nextion.git
synced 2026-03-03 16:54:00 +01:00
39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
/**
|
|
* @file NexText.h
|
|
*
|
|
* API of NexText.
|
|
*
|
|
* @author Wu Pengfei (email:<pengfei.wu@itead.cc>)
|
|
* @date 2015/7/10
|
|
* @copyright
|
|
* Copyright (C) 2014-2015 ITEAD Intelligent Systems Co., Ltd. \n
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License as
|
|
* published by the Free Software Foundation; either version 2 of
|
|
* the License, or (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef __NEXTEXT_H__
|
|
#define __NEXTEXT_H__
|
|
#ifdef __cplusplus
|
|
#include "NexTouch.h"
|
|
|
|
/**
|
|
* NexText,subclass of NexTouch,provides simple methods to control text component.
|
|
*
|
|
*/
|
|
class NexText: public NexTouch
|
|
{
|
|
public: /* methods */
|
|
NexText(NexPid pid, NexCid cid, char *name, NexTouchEventCb pop = NULL, void *pop_ptr = NULL);
|
|
|
|
void attachPop(NexTouchEventCb pop, void *ptr = NULL);
|
|
void detachPop(void);
|
|
|
|
uint16_t getText(char *buffer, uint16_t len);
|
|
bool setText(const char *buffer);
|
|
};
|
|
|
|
#endif /* #ifdef __cplusplus */
|
|
#endif /* #ifndef __NEXTEXT_H__ */
|