mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
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. |
||
---|---|---|
.. | ||
container | ||
bboxwidget.lua | ||
button.lua | ||
buttondialog.lua | ||
buttontable.lua | ||
closebutton.lua | ||
configdialog.lua | ||
confirmbox.lua | ||
dictquicklookup.lua | ||
eventlistener.lua | ||
filechooser.lua | ||
fixedtextwidget.lua | ||
focusmanager.lua | ||
horizontalgroup.lua | ||
horizontalspan.lua | ||
iconbutton.lua | ||
imagewidget.lua | ||
infomessage.lua | ||
inputdialog.lua | ||
inputtext.lua | ||
linewidget.lua | ||
linkbox.lua | ||
logindialog.lua | ||
menu.lua | ||
multiinputdialog.lua | ||
notification.lua | ||
opdsbrowser.lua | ||
overlapgroup.lua | ||
pathchooser.lua | ||
progresswidget.lua | ||
rectspan.lua | ||
scrolltextwidget.lua | ||
textboxwidget.lua | ||
textwidget.lua | ||
toggleswitch.lua | ||
touchmenu.lua | ||
verticalgroup.lua | ||
verticalscrollbar.lua | ||
verticalspan.lua | ||
virtualkeyboard.lua | ||
widget.lua |