The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

LibUI::Area::Handler - Event Handler for the LibUI::Area Control

SYNOPSIS

    TODO

DESCRIPTION

A LibUI::Area::Handler is an object with several methods that LibUI::Area calls to do certain tasks.

To create an area handler, simply create a structure which contains the following keys:

draw

Provide a code reference which should expect...

$handler - pointer to the LibUI::Area::Handler object
$area - pointer to the LibUI::Area object
$drawParams - pointer to the LibUI::Area::DrawParams structure

...and return void.

mouseEvent

Provide a code reference which should expect...

$handler - pointer to the LibUI::Area::Handler object
$area - pointer to the LibUI::Area object
$event - pointer to the LibUI::Area::MouseEvent structure

...and return void.

mouseCrossed

Provide a code reference which should expect...

$handler - pointer to the LibUI::Area::Handler object
$area - pointer to the LibUI::Area object

...and return void.

dragBroken

Provide a code reference which should expect...

$handler - pointer to the LibUI::Area::Handler object
$area - pointer to the LibUI::Area object

...and return void.

Note that there is no support for this event on GTK+ or MacOS.

keyEvent

Provide a code reference which should expect...

$handler - pointer to the LibUI::Area::Handler object
$area - pointer to the LibUI::Area object
$event - pointer to the LibUI::Area::KeyEvent structure

...and return an integer.

LICENSE

Copyright (C) Sanko Robinson.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Sanko Robinson <sanko@cpan.org>