| 1 | package Term::Fabulous::Event::ColumnsChange; | ||
| 2 | |||
| 3 | use v5.32; | ||
| 4 | use warnings; | ||
| 5 | use feature 'signatures'; | ||
| 6 | no warnings 'experimental::signatures'; | ||
| 7 | |||
| 8 | our $VERSION = '0.05'; | ||
| 9 | |||
| 10 | use Object::Pad 0.825; | ||
| 11 | |||
| 12 | use Clay::UI::Events::Event; | ||
| 13 | |||
| 14 | class Term::Fabulous::Event::ColumnsChange :isa(Clay::UI::Events::Event) :strict(params) { | ||
| 15 | field $visible :param; | ||
| 16 | |||
| 17 | ADJUST { | ||
| 18 | die "Term::Fabulous::Event::ColumnsChange: visible must be an array reference" unless ref $visible eq 'ARRAY'; | ||
| 19 | $visible = [@$visible]; | ||
| 20 | } | ||
| 21 | |||
| 22 | method event_name :common { 'ColumnsChange' } | ||
| 23 | |||
| 24 | method visible () { return [@$visible] } | ||
| 25 | } | ||
| 26 | |||
| 27 | 1; | ||
| 28 | |||
| 29 | __END__ |