Hint

Refer to QMK’s documentation for details on how to use community modules

scrolling_text

API to draw scrolling text on QP screens.

struct scrolling_text_config_t
[source]

Configuration for how to draw a scrolling text.

painter_device_t device
[source]

Screen where to draw.

uint16_t x
[source]

X coordinate where to draw.

uint16_t y
[source]

Y coordinate where to draw.

painter_font_handle_t font
[source]

Font to draw with.

size_t n_chars
[source]

Amount of chars being drawn each time.

uint32_t delay
[source]

Time between drawing steps.

size_t spaces
[source]

Spaces drawn before repetitions of the text.

hsv_t fg
[source]

Foreground color.

hsv_t bg
[source]

Background color.

const allocator_t *allocator
[source]

Allocator to be used.

deferred_token scrolling_text_start(const scrolling_text_config_t *config, const char *str)
[source]

Start a scrolling text.

Return: Token of the deferred executor taking care of drawing

void scrolling_text_stop(deferred_token scrolling_token)
[source]

Stop a scrolling text.

Parameters:
  • scrolling_token – Deferred token returned by the function that started this drawing.