| 1 | package LibUI::FontButton 0.02 { | ||
| 2 | 1 | ▶ | use 5.008001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Affix; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use parent 'LibUI::Control'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | use LibUI::FontDescriptor; | ||
| 8 | # | ||
| 9 | affix( LibUI::lib(), [ 'uiNewFontButton', 'new' ], [Void] => InstanceOf ['LibUI::FontButton'] ); | ||
| 10 | |||
| 11 | sub font($) { | ||
| 12 | CORE::state $affix //= wrap( LibUI::lib(), 'uiFontButtonFont', | ||
| 13 | [ InstanceOf ['LibUI::FontButton'], Pointer [LibUI::FontDescriptor] ] => Void, ); | ||
| 14 | my $desc; | ||
| 15 | $affix->( shift, $desc ); | ||
| 16 | return $desc; | ||
| 17 | } | ||
| 18 | affix( | ||
| 19 | LibUI::lib(), | ||
| 20 | [ 'uiFontButtonOnChanged', 'onChanged' ], | ||
| 21 | [ InstanceOf ['LibUI::FontButton'], | ||
| 22 | CodeRef [ [ InstanceOf ['LibUI::FontButton'], Any ] => Void ], Any | ||
| 23 | ] => Void | ||
| 24 | ); | ||
| 25 | affix( | ||
| 26 | LibUI::lib(), | ||
| 27 | [ 'uiFreeFontButtonFont', 'freeFont' ], | ||
| 28 | [ Pointer [LibUI::FontDescriptor] ] => Void | ||
| 29 | ); | ||
| 30 | }; | ||
| 31 | 1; | ||
| 32 | # | ||
| 33 | __END__ | ||