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.


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/icons/appbar.control.expand.png",
    }
    -- the image will be painted on all book pages
    readerui.view:registerViewModule('dummy_image', dummy_image)
generated by LDoc 1.4.6 Last updated 2017-10-08 14:57:40