Renard::Curie::Component::PageDrawingArea - Component that implements document page navigation
version 0.001
Glib::Object::Subclass
Moo::Object
Gtk3::Bin
Glib::Object::_Unregistered::AtkImplementorIface
Gtk3::Buildable
Renard::Curie::Component::Role::FromBuilder
Renard::Curie::Component::Role::UIFileFromPackageName
The RenderableDocumentModel that this component displays.
A RenderablePageModel for the current page.
A PageNumber for the current page being drawn.
The Gtk3::DrawingArea that is used to draw the document on.
The Gtk3::ScrolledWindow container for the "drawing_area".
method BUILD
Initialises the component's contained widgets and signals.
method setup_button_events()
Sets up the signals for the navigational buttons.
method setup_text_entry_events()
Sets up the signals for the text entry box so the user can enter in page numbers.
method setup_drawing_area()
Sets up the "drawing_area" so that it draws the current page.
method setup_number_of_pages_label()
Sets up the label that shows the number of pages in the document.
method setup_keybindings()
Sets up the signals to capture key presses on this component.
method refresh_drawing_area()
This forces the drawing area to redraw.
method set_current_page_forward()
Increments the current page number if possible.
method set_current_page_back()
Decrements the current page number if possible.
method set_current_page_to_first()
Sets the page number to the first page of the document.
method set_current_page_to_last()
Sets the current page to the last page of the document.
method can_move_to_previous_page() :ReturnType(Bool)
Predicate to check if we can decrement the current page number.
method can_move_to_next_page() :ReturnType(Bool)
Predicate to check if we can increment the current page number.
set_navigation_buttons_sensitivity()
Enables and disables forward and back navigation buttons when at the end and start of the document respectively.
classmethod FOREIGNBUILDARGS(@)
Initialises the Gtk3::Bin super-class.
fun increment_scroll( (InstanceOf['Gtk3::Adjustment']) $current )
Helper function that scrolls down by the scrollbar's step increment.
fun decrement_scroll( (InstanceOf['Gtk3::Adjustment']) $current )
Helper function that scrolls up by the scrollbar's step increment.
fun on_clicked_button_first_cb($button, $self)
Callback for when the "First" button is pressed. See "set_current_page_to_first".
fun on_clicked_button_last_cb($button, $self)
Callback for when the "Last" button is pressed. See "set_current_page_to_last".
fun on_clicked_button_forward_cb($button, $self)
Callback for when the "Forward" button is pressed. See "set_current_page_forward".
fun on_clicked_button_back_cb($button, $self)
Callback for when the "Back" button is pressed. See "set_current_page_back".
fun on_key_press_event_cb($window, $event, $self)
Callback that responds to specific key events and dispatches to the appropriate handlers.
method on_draw_page_cb( (InstanceOf['Cairo::Context']) $cr )
Callback that draws the current page on to the "drawing_area".
fun on_activate_page_number_entry_cb( $entry, $self )
Callback that is called when text has been entered into the page number entry.
Project Renard
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.
To install Renard::Curie, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Renard::Curie
CPAN shell
perl -MCPAN -e shell install Renard::Curie
For more information on module installation, please visit the detailed CPAN module installation guide.