Paul Evans > Tickit-Widget-Menu-0.08 > Tickit::Widget::Menu::Item

Download:
Tickit-Widget-Menu-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 0.08   Source  

NAME ^

Tickit::Widget::MenuItem - an item to display in a Tickit::Widget::Menu

DESCRIPTION ^

Objects in this class are displayed in menus. Each item has a name and a callback to invoke when the menu option is clicked on.

CONSTRUCTOR ^

$item = Tickit::Widget::Menu::Item->new( %args )

Constructs a new Tickit::Widget::Menu::Item object.

Takes the following named arguments:

name => STRING

Gives the name of the menu item.

on_activate => CODE

Callback to invoke when the menu item is clicked on.

AUTHOR ^

Paul Evans <leonerd@leonerd.org.uk>

syntax highlighting: