path: root/apps/screen_access.h
diff options
authorThomas Martitz <>2013-12-20 23:34:28 +0100
committerThomas Martitz <>2014-01-07 14:13:17 +0100
commit5d6974641b14ef81396e8deebcc65a87c07334e5 (patch)
treea3c12feecc5ae2007d71be2fb383ea7047c87f11 /apps/screen_access.h
parent5752d029fd80e87fe522d7d5e952a56dc371d65e (diff)
Introduce put_line().
This function is a fully-fletched, high-level pixel-based line printer, that combines functionality of several firmware and list functions. It can draw spacing, icons and text in a single call, in any order and each multiple times. It can also apply line decorations at the same time. It features printf-like semantics by accepting a format string that contain format tags as well as inline text. It's accessible directly, but also through the multi-screen api for plugins. Change-Id: I70f5a77bbf4b0252521f2e47ead377b9d6d29b54
Diffstat (limited to 'apps/screen_access.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/screen_access.h b/apps/screen_access.h
index 26c9977bf2..7bc9c35237 100644
--- a/apps/screen_access.h
+++ b/apps/screen_access.h
@@ -26,6 +26,7 @@
#include "buttonbar.h"
#include "scroll_engine.h"
#include "backdrop.h"
+#include "line.h"
#if defined(HAVE_REMOTE_LCD) && !defined (ROCKBOX_HAS_LOGF)
#define NB_SCREENS 2
@@ -177,6 +178,7 @@ struct screen
void (*nine_segment_bmp)(const struct bitmap* bm, int x, int y,
int width, int height);
+ void (*put_line)(int x, int y, struct line_desc *line, const char *fmt, ...);
#if defined(HAVE_LCD_BITMAP) || defined(HAVE_REMOTE_LCD)