Rockbox General > Rockbox General Discussion

List viewports

(1/1)

bzavala:
Pardon my ignorance... but what exactly is List Viewports?

I know and have used viewports on a WPS. But, is list viewports also for defining WPS? if so, how does it work?

Or is this something only internal for defining the rockbox menus?


Thanks!

Ben

linuxstb:
"viewports" are just a new feature internal to the Rockbox LCD drivers that allow other parts of Rockbox to draw in self-contained rectangles (i.e. things like scrolling and colours only apply within that rectangle), rather than the entire screen.

The "list viewports" change that was committed recently was just an change to how the "list widget" (which is used by the menus and file/database browsers) works internally - splitting the list into separate components (title, icons, scrollbar list items etc), each drawn in its own viewport.

The intention is that viewports is going to allow better screen layouts, with more user-configurability, but currently it's just an internal thing.

bzavala:
cool... thank you Linuxstb!

mschneider:
is viewports committed to svn? I've been looking for the tags to use it but i can't find  them.

Llorean:
"Viewports as a feature" is separate from "Viewport tags in the WPS". One is a behind-the-scenes requirement for the other one to be implemented properly.

Viewports is in SVN. Visible viewports in WPSes are not yet.

Navigation

[0] Message Index

Go to full version