Renard::Curie::Component::PageDrawingArea::Role::MouseScrollBindings - A role to setup the bindings for mouse wheel scrolling for a page drawing area
version 0.005
A constant for the minimum zoom level possible so that the zoom level never becomes negative.
method setup_scroll_bindings()
Sets up the signals to capture scroll events on this component.
method compute_zoom_out( (ZoomLevel) $zoom_level, $amount = 0.05 )
Computes the new zoom level in order to zoom out.
method compute_zoom_in( (ZoomLevel) $zoom_level, $amount = 0.05 ) :ReturnType(ZoomLevel) {
Computes the new zoom level in order to zoom in.
callback on_scroll_event_cb($window, $event, $self)
Callback that responds to specific scroll events and dispatches the associated handlers.
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.