Paul Evans

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>