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.

Issues

ReaderView:registerViewModule-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)

Issues

ReaderView:registerViewModule-fixme1
: The awful readerhighlight_spec test relies on this pointer being left dangling...
generated by LDoc 1.5.0 Last updated 2024-06-18 19:23:59