Tickit::Widget::Breadcrumb - render a breadcrumb trail
Version 0.001
use Tickit; use Tickit::Widget::Breadcrumb; my $bc = Tickit::Widget::Breadcrumb->new; $bc->adapter->push([ qw(home perl site-lib) ]); Tickit->new(root_widget => $bc)->run;
Provides a widget for showing "breadcrumbs".
Accepts focus.
Use left/right to navigate, enter to select.
Render looks something like:
first < second | current | next > last
Returns the number of lines this widget would like.
Returns the number of columns this widget would like.
Perform rendering.
Renders the separator between two items.
Pass the index of the item on the left.
There are 3 cases:
inactive to inactive
inactive to active
active to inactive
Returns the adapter responsible for dealing with the underlying data.
If called with no parameters, will return the current adapter (creating one if necessary).
If called with a parameter, will set the adapter to that value, assigning a new default adapter if given undef. Will then return $self to allow for method chaining.
Tickit::Widgets - the standard Tickit widgetset.
Tickit
get_style_pen, get_style_text, get_style_values, key_focus_next_after, key_focus_next_before, new, on_pen_changed, parent, pen, redraw, requested_cols, requested_lines, requested_size, reshape, resized, set_parent, set_pen, set_requested_size, set_style, set_style_tag, set_window, style_classes, take_focus, window, window_lost
Tom Molesworth <cpan@perlsite.co.uk>
Copyright Tom Molesworth 2014. Licensed under the same terms as Perl itself.
To install Tickit::Widget::Breadcrumb, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tickit::Widget::Breadcrumb
CPAN shell
perl -MCPAN -e shell install Tickit::Widget::Breadcrumb
For more information on module installation, please visit the detailed CPAN module installation guide.