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

Create a new, self-drawing widget in Perl code. This example shows how to subclass Glib::Object/Gtk2::Widget types, how to override class closures, how to define how much size you want to request for yourself, how to draw shapes and text with Gdk, how to handle mouse events, why you'd want to implement SET_PROPERTY for yourself, and how to emit signals. And the widget is actually functional, too. :-)

1 POD Error

The following errors were encountered while parsing the POD:

Around line 27:

Unknown directive: =doc