forked from DanNixon/NeoNextion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNextionSlidingText.h
41 lines (33 loc) · 1.02 KB
/
NextionSlidingText.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*! \file */
#ifndef __NEONEXTION_NEXTIONSLIDINGTEXT
#define __NEONEXTION_NEXTIONSLIDINGTEXT
#include "Nextion.h"
#include "INextionTouchable.h"
#include "INextionColourable.h"
#include "INextionStringValued.h"
#include "INextionFontStyleable.h"
/*!
* \class NextionSlidingText
* \brief Represents a sliding text widget.
*/
class NextionSlidingText : public INextionTouchable,
public INextionColourable,
public INextionStringValued,
public INextionFontStyleable
{
public:
/*!
* \copydoc INextionWidget::INextionWidget
*/
NextionSlidingText(Nextion &nex, uint8_t page, uint8_t component,
const char *name);
bool setScrolling(bool scroll);
bool isScrolling();
bool setScrollDirection(NextionScrollDirection direction);
NextionScrollDirection getScrollDirection();
bool setScrollDistance(uint32_t distance);
uint32_t getScrollDistance();
bool setScrollDelay(uint32_t delay);
uint32_t getScrollDelay();
};
#endif