Author image Zakariyya Mughal
and 4 contributors

NAME

Renard::Curie::Component::PageDrawingArea - Component that implements document page navigation

VERSION

version 0.005

EXTENDS

CONSUMES

ATTRIBUTES

view_manager

The view manager model for this application.

drawing_area

The Gtk3::DrawingArea that is used to draw the document on.

scrolled_window

The Gtk3::ScrolledWindow container for the "drawing_area".

CLASS METHODS

FOREIGNBUILDARGS

  classmethod FOREIGNBUILDARGS(@)

Initialises the Gtk3::Bin super-class.

METHODS

BUILD

  method BUILD

Initialises the component's contained widgets and signals.

setup_drawing_area

  method setup_drawing_area()

Sets up the "drawing_area" so that it draws the current page.

refresh_drawing_area

  method refresh_drawing_area()

This forces the drawing area to redraw.

update_view

  method update_view($new_view)

Sets up the signals for a new view.

CALLBACKS

on_draw_page_cb

  method on_draw_page_cb( (InstanceOf['Cairo::Context']) $cr )

Callback that draws the current page on to the "drawing_area".

AUTHOR

Project Renard

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Project Renard.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.