NeoNextion
Arduino library for the Nextion displays.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator
NextionSlidingText.h
Go to the documentation of this file.
1 
3 #ifndef __NEONEXTION_NEXTIONSLIDINGTEXT
4 #define __NEONEXTION_NEXTIONSLIDINGTEXT
5 
6 #include "Nextion.h"
7 #include "INextionTouchable.h"
8 #include "INextionColourable.h"
9 #include "INextionStringValued.h"
10 #include "INextionFontStyleable.h"
11 
17  public INextionColourable,
18  public INextionStringValued,
20 {
21 public:
25  NextionSlidingText(Nextion &nex, uint8_t page, uint8_t component,
26  const char *name);
27 
28  bool setScrolling(bool scroll);
29  bool isScrolling();
30 
31  bool setScrollDirection(NextionScrollDirection direction);
32  NextionScrollDirection getScrollDirection();
33 
34  bool setScrollDistance(uint32_t distance);
35  uint32_t getScrollDistance();
36 
37  bool setScrollDelay(uint32_t delay);
38  uint32_t getScrollDelay();
39 };
40 
41 #endif
Interface for widgets that hold a string value.
Definition: INextionStringValued.h:16
Represents a sliding text widget.
Definition: NextionSlidingText.h:16
Interface for widgets that can be touched.
Definition: INextionTouchable.h:15
Interface for widgets that can be coloured.
Definition: INextionColourable.h:14
NextionSlidingText(Nextion &nex, uint8_t page, uint8_t component, const char *name)
Create a new widget adapter.
Definition: NextionSlidingText.cpp:8
NextionScrollDirection
Directions for scolling.
Definition: NextionTypes.h:87
Driver for a physical Nextion device.
Definition: Nextion.h:31
Interface for widgets that can have their fonts styled.
Definition: INextionFontStyleable.h:14