Lomse library. API documentation
0.30.0
|
#include <lomse_graphic_view.h>
SinglePageView is a GraphicView for rendering documents in a single page as high as necessary. It is similar to a VerticalBookView but using a paper size of infinite height, so that only paper width is meaningful and the document has just one page (e.g., an HTML page having a body of fixed size)
Margins
The document is displayed on a white paper and the view has no margins, that is, the default view origin point is (0.0, 0.0). Therefore, document content will be displayed with the margins defined in the document.
Background color
The white paper is surrounded by the background, that will be visible only when the user application changes the viewport (e.g., by scrolling right). In SinglePageView the default background color is white and, as with all Views, the background color can be changed by invoking Interactor::set_view_background().
AutoScroll
When this View is used for rendering a music score, during playback auto-scroll will be, by default, enabled. This implies that as playback advances the View will generate EventUpdateViewport events so that measure being played is always totally visible.