Module apps.reader.modules.readerview

ReaderView module handles all the screen painting for document browsing.

Functions

ReaderView:registerViewModule (name, widget) Register a view UI widget module for document browsing.
ReaderView:onRotationUpdate (rotation)

Issues

ReaderView:onRotationUpdate-fixme1 : The awful readerhighlight_spec test relies on this pointer being left dangling...


Functions

ReaderView:registerViewModule (name, widget)
Register a view UI widget module for document browsing.

Parameters:

  • name string module name, registered widget can be accessed by readerui.view.view_modules[name].
  • widget ui.widget.widget.Widget paintable widget, i.e. has a paintTo method.

Usage:

    local ImageWidget = require("ui/widget/imagewidget")
    local dummy_image = ImageWidget:new{
        file = "resources/koreader.png",
    }
    -- the image will be painted on all book pages
    readerui.view:registerViewModule('dummy_image', dummy_image)
ReaderView:onRotationUpdate (rotation)

Parameters:

  • rotation

Issues

ReaderView:onRotationUpdate-fixme1
: The awful readerhighlight_spec test relies on this pointer being left dangling...
generated by LDoc 1.5.0 Last updated 2024-12-19 07:44:17