The ScrollableText class scrolls the text if the required space of the string is less than the available.
More...
#include <modm/ui/menu/scrollable_text.hpp>
The ScrollableText class scrolls the text if the required space of the string is less than the available.
- Author
- Thorsten Lajewski
- Warning
- This class only works in combination with modm::font::FixedWidth5x8
modm::ScrollableText::ScrollableText |
( |
const char * |
text, |
|
|
uint16_t |
space |
|
) |
| |
- Parameters
-
text | string which should be displayed on the Graphic Display |
space | number of letters, which can be displayed at once |
const char * modm::ScrollableText::getText |
( |
| ) |
|
getText return the part of the text which should be displayed next
If the text needs scrolling and the scrolling is not paused, each call to this function returns another part of the text which is displaced by one letter.
- Returns
- part of the text
bool modm::ScrollableText::isPaused |
( |
| ) |
|
|
inline |
isPaused determines if the text is currently scrolling.
- Returns
bool modm::ScrollableText::needsScrolling |
( |
| ) |
|
|
inline |
determines if the text can be displayed without scrolling
The documentation for this class was generated from the following files:
- scrollable_text.hpp
- scrollable_text.cpp