mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6793a4fee1
This serves as a good example for the way refreshes are done: setDirty("all", function() ... end) * the "all" will have all widgets on screen repainted. In this case that is needed because the config pane has different sizes, covering different parts of underlying widgets. So they need to be repainted every time. * the function will return the area to refresh and is evaluated after painting. In this example, we take the area that is covered by the config pane before switching it (if present at all), and hand it to the refresh area function as an upvalue. When the function is called later after painting, it will use that saved area and combine it with the area that is covered then by the widget. That way, parts that are covered no more are included in the refresh area, too. |
10 years ago | |
---|---|---|
.. | ||
apps | 10 years ago | |
device | 10 years ago | |
document | 10 years ago | |
ui | 10 years ago | |
JSON.lua | 11 years ago | |
MD5.lua | 10 years ago | |
cache.lua | 10 years ago | |
cacheitem.lua | 10 years ago | |
configurable.lua | 10 years ago | |
dbg.lua | 10 years ago | |
device.lua | 10 years ago | |
docsettings.lua | 10 years ago | |
dump.lua | 10 years ago | |
gettext.lua | 10 years ago | |
luxl.lua | 10 years ago | |
optmath.lua | 10 years ago | |
up_reg.list | 10 years ago |