Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: RFC new line API

Re: RFC new line API

From: Thomas Martitz <kugel_at_rockbox.org>
Date: Sun, 14 Apr 2013 19:46:42 +0200

Am 15.02.2013 22:30, schrieb Thomas Martitz:
>
> My idea is a having a single function:
>
> put_line(int x, int y, struct line_desc *desc, const char *fmt, ...).

I've worked on this further, and it's coming along nicely. I've put my
current work to gerrit [1].

There is still a lot of work:
  - I guess charcell is completely broken, havent bothered with that yet
(I'm disappointed that I even still need too...)
  - this awkward list (mis-)feature of pushing all items to the left
isn't working yet
  - RTL

What works already:
  - put_line() as a line-printer: this function draws text icons and
line decorations in a single call and in arbitrary order. it has
printf-like semantics with a format string and a variable parameter list
  - pixel based scrolling: put_line() is all pixel based, and so needs
the underlying scroll engine to be. I have implemented just that
  - line decorations in apps/: Due to this, the line selector is now
drawn in apps, along with icons. this means that it now can extend to
the icons in list (i.e. the list icons are drawn on top of the line
selector). the line selector is actually extended to the full width,
which the scrollbar and line cursors are drawn above it
  - Lots of code cleaned up, especially the lcd_puts* monster is largely
reduced

Please have a look and make comments!

[1]: http://gerrit.rockbox.org/r/#/c/437/ through
http://gerrit.rockbox.org/r/#/c/454/

Best regards.
Received on 2013-04-14


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa